If you are not familiar with the UNIX (Linux or OsX) shell, here are some links in no particular order:

If you search for

(Linux OR UNIX) shell terminal filetype:pdf

you will find a huge number of additional (and maybe more up-to-date) tutorials and documentation.