Ssh, System Info & Network Commands
ssh user@host # connects to host as user ssh -p
ssh user@host # connects to host as user ssh -p
# set an alias cd; nano .bash_profile > alias gentlenode='ssh admin@gentlenode.com -p 3404' # add your alias in .bash_profile # to quickly go to a specific directory cd; nano .bashrc > shopt -s cdable_vars > export websites='/Users/mac/Documents/websites' source .bashrc cd $websites
varname=value # defines a variable varname=value command # defines a variable to be in the environment of a particular subprocess echo $varname # checks a variable's value echo $$ # prints process ID of the current shell echo $! # prints process ID of the most recently invoked background job