...
- cd <dir> - change directory, takes a path
- mv <src> <dest> - moves a file from src to dest, -R will move a folder
- cp <src> <dest> - like move, but copies
- ps - see current processes running, suspended, or terminated (but not yet harvested)
- rm <fileOrDirName> - remove file, -R for directories. BE CAREFUL, there is no recovering what you delete. If you use the -f flag, rm will not ask confirmation about deleting each file. rm -Rf / will wipe the computer (hopefully you don't have permissions to do that)
- mkdir <dirname> - creates a directory of the name given
*chmod* \chmod [args\] <filename>\- changes permissionsWiki Markup - touch <filename> - changes modification and access times if the file already exists, creates a new file otherwise
- ls - list contents of current directory
- pwd - display path to working directory (current directory)
- echo <string> - prints the string to the screen.
- cat <filename> - prints the contents of file to the screen
- grep <string> <filename> - prints the lines in file that contain the string
- printenv - prints out all the environment variables and their values
- man <cmdname> will display info regarding the specified command
...
- ctrl-C will interrupt the current running program, and get you back to the shell
- ctrl-D sends EOF
-IO Redirection
- <cmd> < <filename> operator redirects stdin from the command line to file
- <cmd> > <filename> operator redirects stdout from the command line to file
- <cmd1> | <cmd2> 'pipe' operator redirects output of cmd1 as input to cmd2
- the operators can be combined