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.


Finding out your current shell

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

ps $$
ps -p $$


echo "$0"

Sample outputs:

Lire la suite…