Linux Commands

Get familiar with the environment

Listing some useful ones:
β€’ id: know yourself
β€’ w: who is logged in (-f to find where they are logging in from)
β€’ lsblk: list block storage devices β€’ lscpu: display info about the CPUs
β€’ lstopo: display hardware topology (need hwloc, hwloc-gui packages)
β€’ free: free and used memory (try free -g)

Command Navigation

β€’ lsb_release: distribution info (try -a)
Be nice and fly under the radar, eg.: nice -n 19 tar cvzf archive.tgz large_dir

Saving some time and hair follicles

!! repeats the last command
β€’ !$ change command keep last argument: β€’ cat states.txt # file too long to fit screen β€’ less !$ #reopen it with less
β€’ !* change command keep all arguments: β€’ head states.txt | grep '^Al' #should be tail β€’ tail !* #no need to type the rest of the command

Find Command

Find Command Structure

Scheduling Tasks

Anatomy of crontab entry