Take CentOS as an example
1. Current User
$ represents the normal user state, #表示超级用户状态
-bash-4.2$
-bash-4.2$ su
Password:
[Email protected] myhaspl]#
2. Order Basics
command name [command options] [command arguments]
System Information
CommandDescription
# ArchDisplay the processor architecture of the machine (1) [Man]
# cal 2007Show 2007 Calendar table [Man]
# Cat/proc/cpuinfoDisplaying information about CPU info [man]
# cat/proc/interruptsShow interrupts [man]
# Cat/proc/meminfoVerifying memory usage [man]
# Cat/proc/swapsShow which swap is used [man]
# cat/proc/versionDisplays the version of the kernel [man]
# Cat/proc/net/devDisplaying network adapters and statistics [man]
# cat/proc/mountsDisplaying the loaded file system [man]
# clock-wSave time changes to BIOS [man]
# dateDisplay system date [man]
# date 041217002007.00Set date and time-month day year. seconds [man]
# Dmidecode-qDisplay hardware system Components-(SMBIOS/DMI) [Man]
# hdparm-i/dev/hdaList the architecture characteristics of a disk [man]
# HDPARM-TT/DEV/SDAPerform a test read operation on disk [man]
# LSPCI-TVList PCI devices [man]
# LSUSB-TVDisplay USB device [man]
# uname-mDisplay the processor architecture of the machine (2) [Man]
# Uname-rShow the kernel version being used [man]
Shutdown
CommandDescription
# init 0Shut down System (2) [Man]
# LogoutLogout [Man]
# rebootRestart (2) [Man]
# shutdown-h NowShut down System (1) [Man]
# shutdown-h 16:30 &Shut down the system at a predetermined time [man]
# shutdown-cCancel to shut down the system at a predetermined time [man]
# Shutdown-r NowRestart (1) [Man]
# Telinit 0Shut down System (3) [Man]
Wait a minute
Like what:
bash-4.2$ ls
hadoop-2.4.1 hadoop-2.4.1-src.tar.gz hadoop-2.4.1.tar.gz numpy pypy-2.3.1-src
bash-4.2$ Ls-la ~
Total dosage 150484
DRWX------. 6 MYHASPL myhaspl 4096 September 10 16:55.
Drwxr-xr-x. 3 root root 20 September 10 08:23..
-RW-------. 1 MYHASPL MYHASPL 220 September 17:59 bash_history
Drwxr-xr-x. 9 MYHASPL myhaspl 4096 June 14:38 hadoop-2.4.1
-rw-r--r--. 1 myhaspl myhaspl 15417097 June 14:42 hadoop-2.4.1-src.tar.gz
-rw-r--r--. 1 myhaspl myhaspl 138656756 June 14:42 hadoop-2.4.1.tar.gz
Drwxr-xr-x. 8 MYHASPL myhaspl 4096 September 17:02 numpy
DRWXR-----. 3 MYHASPL myhaspl 18 September 16:21. PKI
Drwxrwxr-x. Root root 4096 September 16:25 pypy-2.3.1-src
bash-4.2$
This blog all content is original, if reproduced please indicate sourcehttp://blog.csdn.net/myhaspl/
Multiple commands can be written on the same line, used once, separated by semicolons
bash-4.2$ Ls-la; CD Numpy;ls
Total dosage 150484
DRWX------. 6 MYHASPL myhaspl 4096 September 10 16:55.
Drwxr-xr-x. 3 root root 20 September 10 08:23..
-RW-------. 1 MYHASPL MYHASPL 220 September 17:59 bash_history
Drwxr-xr-x. 9 MYHASPL myhaspl 4096 June 14:38 hadoop-2.4.1
-rw-r--r--. 1 myhaspl myhaspl 15417097 June 14:42 hadoop-2.4.1-src.tar.gz
-rw-r--r--. 1 myhaspl myhaspl 138656756 June 14:42 hadoop-2.4.1.tar.gz
Drwxr-xr-x. 8 MYHASPL myhaspl 4096 September 17:02 numpy
DRWXR-----. 3 MYHASPL myhaspl 18 September 16:21. PKI
Drwxrwxr-x. Root root 4096 September 16:25 pypy-2.3.1-src
Bento_build.txt BUILDINSTALL.txt pavement.py setupegg.pyTHANKS.txt
Bento.infoCompatibilityLICENSE.txt README.txt setup.pyTools
BrandingDev_readme.txt manifest.in release.sh site.cfg.example Tox.ini
BscriptDocNumPyruntests.py Test_commit
bash-4.2$
The road to mathematics-the basic technology of Distributed Computing-linux/unix (1)