Tips and tricks
Useful commands in Mac OS X Terminal
How to add to path variable
The name of the PATH
variable is case-sensitive and must be all-uppercase.
export PATH=$PATH:/folder/you/want
To verify your change, run:
echo $PATH
Listing all the groups to which a user belongs in macOS
id -Gn [user]
find files with a specific name in a directory
find /opt -name httpd.conf
connect to ssh server
if you have an authorised .ssh
key in the ~/.ssh
folder, you can do
ssh {{user}}@{{ip-or-domain}}