Greg's Bash & Linux Commands |
|
|
|
Bash Commands |
Linux Programs |
Miscellaneous Things |
|
Bash Commands |
|
|
Kills current process Print (a2ps [file]) One page per sheet Do not print header Creates command alias (alias [new alias]='command') Displays calendar (cal [[month] year]) Concatenate files (cat [file1] [file2] > [new file]) Change directory One level up Previous directory Clears terminal screen Copy (cp [file] [to]) Forces action, ignoring errors and warnings Asks for confirmation Displays date and time Displays drives and free disk space Useful dictionary (dict [word]) Outputs the difference between two files (diff [file1] [file2]) Displays disk usage in current directory and subfolders Exits Bash Outputs prime factors (factor [number]) Displays memory usage Searches files with text (grep "text" [file1] [file2]...) Compresses file (gzip [file]) Decomresses zipped file (gzip [file]) Displays first 10 lines of file (head [file]) Displays your command history Displays last # commands in history Clears command history Stop a process from running (kill [process]) Displays file with ability to move around (less [file]) List files Show all files (including hidden files) Same as -a but without implied . and .. List entries in columns Use a long listing format Do not show group info in long listing format Reverse order when sorting List subdirectories recursively Sort by file size Sort by modification time Use colors to distinguish file types Displays help manual about command (man [command]) Make new directory (mkdir [dir name]) Displays file (more [file]) Mount a file system (floppy: mount /floppy) Move (mv [file] [to]) Forces action, ignoring errors and warnings Asks for confirmation View file with lines numbered (nl [file]) Modify a user password Displays current directory Removes file (rm [file]) Forces action, ignoring errors and warnings Asks for confirmation Removes directory Securely copies files (scp [from] [to]:[file name]) Displays last 10 lines of file (tail [file]) Unmounts a file system (undoes mount command) Removes an alias (unalias [alias name]) Displays time since system last booted Print byte, word, and line counts (wc [file]) |
Top |
|
Linux Programs |
|
|
Advanced text editor Postscript and PDF viewer Text editor Text editor Vector drawing program Calculator Displays clock Displays in digital format Updates display every XX seconds (-update [XX]) PDF viewer Picture editor |
Top |
|
Miscellaneous Things |
|
|
Wildcard for a set of characters Wildcard for a single character Specifies a user's home directory (~[user]) Runs program in background ([program] &) NB: This allows continued use with Bash while program runs Used between commands ([command1];[commmand2];...) Inserts output into file Concatenates output into file Pipes screen output to command (such as more, less, wc, etc.) |
Top |
|
|
|
Greg Caravelli gjc at jhu.edu |
Home Page Laser Teaching Center |