Linux operations and notes

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.