Sinsing organizing Linux Parts common commands

Source: Internet
Author: User

Linux commands too many, here to temporarily tidy up a part, here we for the sake of practicality, did not list the specific parameters.


Part I: File operations

ll view directories and files in long format

LS to view directories and files in a short format

Df-h Viewing disk size information

mkdir Dir_name Creating a folder

RM-RF file_name Deleting a directory

rm-f file_name Deleting files

MV file path to move files to the path directory

CP file path copies files to the path directory

Cat File View File contents

Vi/vim File View Files

PWD View the file system path currently in place

Uniq a.txt > B.txt redo the A.txt and write the results to B.txt

Sort a.txt > B.txt to a.txt Sort results write to B.txt

Uniq a.txt|sort > B.txt to a.txt First to reorder and then write the results to B.txt

Wc-l a.txt Statistics a.txt Row count

Find Path-name file in the path directory, you can use * as a wildcard character

Find Path-name file_name | Xargs GREP-NH content finds the specified contents in the specified file


Part II: Process information

Ps-aux Viewing process information

PS | grep Java Lookup Process

kill-9 PID Follow process number strong kill process

Killall-9 Java kills all Java processes

Free View Memory

Top View CPU Information


Part III: RPM Package Management

Rpm-qa List all RPM software

Rpm-qa | grep name to see if a software named name is installed


Part IV: Restarting the shutdown

Reboot restart

Shutdown-h now shutdown

Part V: Other parts

passwd Change Password

& Background startup process

Service Network restart Restart networking service






















Sinsing organizing Linux Parts common commands

Related Article

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.