Showing posts with label #environment. Show all posts
Showing posts with label #environment. Show all posts

Monday, June 2, 2014

[Solved] Linux Commands Challenge : 004

Fancy your Linux skills ? Take this challenge and answer what these 5 commonly used abbreviations of Linux stand for

Winner : Congratulations to Sankar P for getting the highest number [ 4 ] of correct solutions.


  1. What does the Linux command TAR stand for ?
      • Tape ARchive

  2. What does the Linux command GREP stand for ?
      • Global ( search for ) Regular Expressions and Print

  3. What does the Linux command CHMOD stand for ?
      • CHange MODe

  4. What does the Linux command BC stand for ?
      • Basic Calculator

  5. What does the Linux command AWK stand for ?
      • Aho, Weinberger and Kernighan. It is named after the names of its authors : Al Aho, Peter Weinberger and Brian Kernighan

Monday, May 19, 2014

[Solved] Linux Commands Challenge : 002

Fancy your Linux skills ? Take this challenge and answer these simple 5 questions on Linux Environment variables.

Update : Added Solutions


  1. How can variables defined in one Bash Shell script be made visible in its child Bash Shell script ?
      • You need to export the variable in the parent Bash Shell Script, for the variables to be visible in its child Bash Shell script.

  2. How can one find out the type of the Shell he/she is using ?
      • echo $SHELL

  3. Name the C function call that can be used in a C program to fetch the value of a Shell Environment variable
      • getenv()

  4. One can use "printenv" command to list all the Global Environment variables, but what command can we use to list the Local Environment Variables ?
      • You can use "set". But, it list all the environment variables, global and local. You will have to write a Shell Script to prune out Global environment variables from the output of "set" to derive the final list of Local Environment variables. Local environment variables are the variables that are local to the current shell.

  5. How can you find out the current Bash Shell's parent process id ?
      • echo $PPID