$ command -opts arguments
A command is a small program that you run, which performs a specific task.
Options are optional parameters that get passed in to modify the operation and/or output of the program. Options can be passed in as one or more single characters (-l
, -alGFz
) and/or as words (--format=pretty
). Options are specific to each program.
Arguments may be passed in to the program to specify values to perform the program on. ls
(without arguments) lists the contents of the current directory; ls /usr/local
lists the contents of the /usr/local directory.
man
- Shows manual for argumentpwd
- Prints current folderls
- Lists files and foldercd
- Change directorymkdir
- Creates new foldertouch
- Creates new (empty) filecat
- Prints contents of filehead
- Print top lines of filetail
- Print bottom lines of filerm
- Delete (don't be dumb)mv
- Movecp
- Copygrep
- Search for contentspbcopy
- Copy onto clipboardpbpaste
- Pastes from clipboard
~
- Home directory/
- Root..
- Up one level|
- "Pipe," passes result from left into right>
- Pipe, but left side is added to a file on right<
- Pipe, but right side is a file input to left