Features of this Learning bash
Bash and its features:
Shell: Shell
GUI Gnome KDE XFCE
Shell types: CLI sh csh ksh bash tcsh zsh
Process: From each process it appears that only the kernel and the current process exist on the current host. A process is a copy of a program, and a process is a program execution instance
Bash Features:
1. Command history, Command completion
2, Pipeline, redirect
3. Command aliases
4. Command line editing
5. Command line expansion
6. File name Wildcard
7. Variables
8. Programming
command-line editing:
Cursor Jump: Ctrl +a header, CTRL +e end of line
Ctrl+u Delete the cursor to the beginning of the command line
Ctrl+k Delete the cursor to the end of the command line
CTRL + direction left and right remote terminal does not support character jumps
Ctrl+l Clear Screen
Command history:
View command history: Historical
-C: Empty command history
-d:offset [n] Delete the specified location command
History-d 510 3 is to delete three rows from 510
-W: Save the Command history to the history file
Environment variables:
Path: Command Search Path
Histsize: Command history buffer size
echo $HISTSIZE Query buffering
The use of command history tips:
! N: the nth command that executes the command history
! -N: Executes the last nth command in the command history
!! : Executes the previous command
! String: The most recent command in the command history that starts with the specified string
! $: Reference the last parameter of the previous command
ESC + Direction
ALT + Direction
Two command terminals not supported, local only
Command completion:
Path:tab Key
Path Completion: Tab key
Command completion: Search the PATH environment variable specified by each of the paths given by our own string at the beginning of the executable file, if the extra one, two times tab, you can give the list, otherwise it will be directly complete.
Path completion: Searches for each filename under the starting path we give, and tries to complement it.
Command aliases:
Alias (alias) cmdalias= ' COMMAND [options] [arguments]
Example: Alias Cls=clear
The definition alias is valid only for the current life cycle, and the valid range of aliases is the current shell process.
Alias: List all aliases
Ualias Cmdalias
Example: Ualias CLS
\cmd
Linux Learning Essay Seven