- Echo Output command
- echo [options] [Output CONTENT]
- -E: Character conversions that support backslash control
- Echo Write script
- Do not assign execute permissions with bash Shellshname
- Assigning execute permissions requires changing execution permissions chmod 755 shellshname execution: Path/shellshname
- Alias: Alias ls= "ls--Color=auto" is alias aliases = formerly #临时生效
- You can also view the aliases that are in effect
- For permanent entry: VI ~/.BASHRC #写入环境变量配置文件
- Unalias aliases #删除别名
- History command
- History [Options] [Historical command Save file]
- -C: Empty history command
- -W: Write History command in cache to history command to save file ~/.bash_history
- TAB key to complete command completion
- Input redirect
- #wc [Options] [file name]
- -C Statistics byte number
- -W statistical number of words
- -L count rows
Common shortcut keys
CTRL + C: Forced termination
Ctrl+l: Clear Screen
Ctrl+u: Delete from the line where the cursor is located to the beginning
CTRL + A: Cursor moves to the beginning of the command
Ctrl+e: Cursor moves to the end of the command line
CTRL + Z: Put commands into the background
Ctrl+r: Searching in the history command
Commands commonly used in Linux (2)