-
Notifications
You must be signed in to change notification settings - Fork 1
Intro Command Line
Emery Premeaux edited this page Mar 23, 2023
·
1 revision
Commands are 1) executed 2) in a shell 3) with options
How to check options:
- man
- info
- hierarchy starts with /
- any path starting with / starts from the root
- any path starts with not / starts from the current directory
- pwd
- cd
- ls ( and options)
- find
- echo
- cat
- less
- tail -f
- grep
- sort
- uniq
- bash
- sh, csh, cmd.exe
- variables and export
- stdin, stdout, stderr
- Redirection with < > |
- shell builtins (type -f cd)
- tab completion
- history, !2, !!
- key shortcuts: alt-. ctrl-r ^^ ctrl-a, ctrl-e
- shell scripting, "shebang"
- echo $$ (pid), $? (exit code)
- jobs and processes
- device files