Command Fundamentals
- general form : command options arguments
- option: change the manner of operation of a command
- start with – or —
- argument: object of command
- option: change the manner of operation of a command
- command is a build program / built-in operation
Help with command
- man command
- apropos
- whatis
- info command
- khelpcenter
Program Execution Environment
- HOME:your home directory
- PATH: directories that are automatically searched
- control where to look for commands
- TERM your output (display) device
- more…
- env / printenv / set : print all environment variable
- export EnvVar=Value (change value of environment variable)(persist)
Useful Directories
- /bin “minimal set” commands
- /usr/bin most user commands
- /usr/local/bin local versions of commands
Locate a command
- which/ whereis
History Buffer: record of the last command
- history command: print 1000 command used before
- !!: repeat the last command used
- !number: repeat last number
- !string: repeat last string
Command/Filename Completion
- character + TAB to get all possibility of completion of the command
- ^X/ possible file name
- ^X! possible command
- use FIGNORE shell variable to check additionally function
Variable SHELLOPTS shows a list of enabled shell options
Control terminal setting by stty command
Set shortcut of command: alias Var =”command”
- see all alias by alias
- remove by unalias