Linux Common commands

Source: Internet
Author: User

1.1 mkdir Command

Make directory abbreviation, which indicates the creation of a directory

Common parameter-p indicates cascading creation

For example: Mkdir-p bjsxt/01/02

1.2 ls command

is the list's abbreviation, which indicates the list file

1.3 CD command

The abbreviation for change directory, which indicates the switch directory

The path after the CD command can be a relative path, or it can be an absolute path

1.4 MV Command

Move word abbreviation, which indicates moving or renaming a file or directory

1.5 pwd command

Print working directory abbreviation, indicating the current path is displayed

1.6 Touch Command

Used to create a file touch 1.txt

1.7 RM Command

Remove is written to delete the file or directory

Delete file rm + file name

Delete directory RM + directory name + parameters (-RF)

Where RF represents cascading forced removal of RM-RF AAA

1.8 VI Editor

VI is a text editor with very powerful features

VI + file name

After opening the file, press "a" or "I" to enter edit mode

Esc key to exit edit mode

In non-edit mode "Shift" + ":", enter Wq save and exit

1.9 Cat Command:

Used to view the contents of a file

1.10 Tar command

For extracting or compressing files

Unzip the tar zxvf

Compress tar ZCVF

1.11 PS-EF View Process

Example: View Tomcat's Process Ps-ef | grep Tomcat

View Nginx Process Ps-ef | grep nginx

grep is the keyword that filters the folder names of Tomcat and Nginx for the installation path

Kill process: Kill-9 123123 ()

1.12 Firewall configuration

Vi/etc/sysconfig/iptables

1.2 Firewall configuration

Vi/etc/sysconfig/iptables

Linux Common commands

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.