"Bash shell built-in Commands"
Type-a:
File: Represents an external command
Alias: The name set by the command alias
Buildin: Internal command
Note: The execution of a command can be performed using both absolute and relative paths (./).
"Directories and Files"
mkdir: Create directory mkdir ~/sbin
Touch: Create a file Touch test.c
File: View files Type
ln: for file links
LN-SF: Symbolic link. link files and source files use different inode numbers
Ln-f: Hard links. Link file and source file use the same inode number
Note:
Summary of the various directories under Linux:
~/: The current user's home directory
./: Current directory
.. /: Previous level Directory
The file name is added "." to indicate that it is a hidden file
"File content View"
Cat: Start from the first line
TAC: Start viewing from the last line
NL: When viewed, shows travel number NL test.c
MORE: Page by page, cannot forward View more test.c spacebar to page back
Less: Similar to more, but can view the less test.c spacebar to page back
Head: View the first few lines head-n test.c
Tail: View the following lines Tail-n test.c
"System-related"
DF: View Hard disk usage
Free: Memory usage
Uname: Viewing the kernel
Uptime: Start time, workload
Netstat: Network view
DMESG: Analysis kernel, and other hardware
Vmstat: Detecting the status of CPU, memory, hard disk
Ps-l: View processes under the current user
PS aux: View all Processes
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Shell Command Summary