Environment variable:/etc/profile
System Version:/etc/RedHat-release
Locale command to view the system code
Modify/ECT/sysconfig/i18n to: lang = "zh_CN.UTF-8"
Ifconfig
Wget
Curl
Command Line curl tutorial (almost simulating browsers and cookies)
Http://ldtrain.blog.163.com/blog/static/7998617520098262221411/
Tar
By default, tar does not compress files.
To create a file that uses tar and bzip for archiving and compression, use the-J option:
To create a file archived and compressed with tar and gzip, use the-Z option:
Tar-CZF all. tgz *. jpg
Tar-xzf all. tgz
The basic usage of the zip command is: Zip [parameter] [file 1] [file 2]
The basic syntax of the unzip command is: unzip [parameter] ZIP file
Tail-F
File Operations:
CP: copy file-r directory
\ CP: overwrite the Directory
MV: Move a file
RM: delete-r directory-F force
View the number of files in the folder (number of files in the current directory)
Ls-L | grep "^-" | WC-l
View the folder size
Du-SH node *
Permission:
Chmod 777 filenames
Chmod-r 774 foldname
Disk:
DF-lH
Fdisk-l
List Disk Partitions
Chkconfig -- list
You can list the default startup statuses of sysv and xinet services at each runlevel.
PS-Aux is used to view all processes, including services.
Some services are monitored by the inetd super server. You need to mark/etc/inetd. conf to disable these services.
# Netstat-ln
View system listening services
Displays the current running level
Runlevel
This level ranges from 1 to 6 and has different functions. These levels are specified in the/etc/inittab File
You can also use the command init to change the running level.
Init [0123456]
In this case, if you enter:
Init 0, indicating immediate shutdown
Init 6, indicating restarting