Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7494597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T17:39:33+00:00 2026-05-29T17:39:33+00:00

In bash, one can use env printev to print environment(global) variables, or use set

  • 0

In bash, one can use

env
printev

to print environment(global) variables, or use

set

to print local variables.
However, how could one know, if this variable is from bash scripting environment, or, from the unix operation system?

similar questions to the commands, how could one know

ls
grep
od

etc, is from the Ubuntu OS or from the bash environment?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T17:39:39+00:00Added an answer on May 29, 2026 at 5:39 pm

    You can use the type builtin.

    [cnicutar@fresh ~]$ type ps
    ps is /bin/ps
    [cnicutar@fresh ~]$ type type
    type is a shell builtin
    [cnicutar@fresh ~]$ type ls
    ls is aliased to `ls --color=auto'
    [cnicutar@fresh ~]$ type if
    if is a shell keyword
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wanted to use one of the Git-completion.bash features but I can't customize the
In bash one can escape arguments that contain whitespace. foo a string This also
how can one turn off the error messages of a bash script? I want
I made this bash one-liner which I use to list Weblogic instances running along
Possible Duplicate: Deflate command line tool Yes, I know I can use PHP itself
Can you use the bash getopts function twice in the same script? I have
How can one handle email related communications pragmatically in Erlang/OTP? Using bash, python or
I need to remove one directory (the leftmost) from variables in Bash. I found
When working an interactive bash session, one aspect from the Windows shell I miss
in bash I need to compare two float numbers, one which I define in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.