Common commands and Linux common sense
Version number analysis
2.6.32-220
2 Major Version number
6 minor version number even for stable version odd for dev version
32 Derived version number
220 modification Times
Root Super Admin home directory equivalent to Windows-My Documents
Home Common User Home directory
Show Machine Name
#hostname
LSPCI: Viewing PCI information
LSUSB: viewing USB information
Cat/proc/cpuinfo: Viewing CPU information
Free: View memory
DMESG: View drivers for all devices in the system
Split-screen command more or less
Understanding the meaning of pipelines |
View command ls
I often use the LS query
Ls-a
Ls-lh
Ls-la
Go to Folder command CD
Restart command reboot init 6 shutdown-r
Shutdown command Halt init 0 shutdown-h
Logout Command Exit Logout
Clear Screen Command Clear Ctrl+d
The help command Man command can be appended with a numeric parameter that indicates the specific range positioning:
The number "1" represents a user command
The number "2" indicates a system call
The number "3" represents the C library function
The number "4" indicates a device or special file
The number "5" represents the file format and rules
The number "6" means games and other
The number "7" represents macros, packages, and other miscellaneous
The number "8" indicates system administrator-related commands
Folder Management mkdir (new folder) rmdir (delete empty directory)
File Management Touch (new file) RM (delete file) rm-rf (delete folder) Cat (query file)
File folder mv (cut file) CP (copy file)
Hang/unload Command Mount/umount
Clear Clear Screen command
PWD Displays the current path
Date Modified Day Day of the month year
Cal Calendar Example Cal 05 2005 Show May 2005
Displays information about the current operating system and machine
#uname-a display all information
#uname-P Display processor type
#uname-M Display machine hardware information
#uname-r Display kernel version
Mount/dev/cdrom/mnt/cdroom
Mount/dev/sdb1/mnt/sdb
Umunt/dev/sdb1/mnt/sdb
Common commands and Linux common sense