List of commands and arguments: - cd: change directory * cd [with no arguments] ---> change to user home directory * cd / ---> root directory - ls: list directory contents * -a : all * --color * -h : print file sizes in human-readable format (using K,M,G,etc for KB,MB,GB,etc) * -l : long listing format * -n : numeric uid/gid (this way, students can find others' STUDENT IDs) * --sort - cp: copy, mv: move (can be used to rename files, too) * -r : recursive * -f : force * -v : verbose - rm: remove * -d : directory * -f : force * -r : recursive - mkdir: make directory - pwd: print working directory - ln: make links between files * -s : make symbolic links instead of hard links - touch: update file timestamp * touch can create new files * -t : change a file to any desired time - tail: output the last part of files * -f : follow the last changes to a file - cat: concatenate and write files - vim * Different modes of operation (Command Mode, Insert Mode) * How to create a file * How to save a file (using :w) * How to exit (using :q) * How to save a file and exit (using :wq) * How to exit without saving (using :q!) * How to search for texts (using / operator) - locate * -i : case-insensitive search - find * Sample usages: # find . -name "*.txt" ----> finds all files with txt extension in current (.) directory # find / ! -user dousti ----> finds all files in the root directory whose owner is not dousti # find . -size +10M ----> find all files in the current directory whose size are beyond 1MB - whereis: locate the paths for a command's executable, source files, and man pages * -b : locate binary files * -m : locate man pages * -s : locate source files - which: find out which version of a command will run - ps: report process status * Common usages: # ps aux ------> view all currently running processes # ps auxf ------> view a process tree - df, du * -h : print file sizes in human-readable format (using K,M,G,etc for KB,MB,GB,etc) - who: print who is currently logged in * -a : all (detailed)