Archive

Articles taggués ‘master your linux shell’

A Shell Primer: Master Your Linux, OS X, Unix Shell Environment

18/09/2015 Comments off

On a Linux or Unix-like systems each user and process runs in a specific environment. An environment includes variables, settings, aliases, functions and more. Following is a very brief introduction to some useful shell environment commands, including examples of how to use each command and setup your own environment to increase productivity in the command prompt.

bash-shell-welcome-image

Finding out your current shell

Type any one of the following command at the Terminal app:

ps $$
ps -p $$

OR

echo "$0"

Sample outputs:

finding-your-shell-like-a-pro
Lire la suite…