06.linux Management Commands

Source: Internet
Author: User

◊ Basic framework:

DF du disk or directory-related commands

Free to view memory usage

Ps Viewing process

Top shows the dynamic changes of the current process

Kill Killall sends a signal to the process

RPM installation Package Command

Tar Backup and Restore commands for documents

1. DF du

Df-h Querying disk partition usage

DF + directory queries which partition the directory belongs to

Du-h usage of the query directory (including sub-folders below)

Du-sh only show this folder

2. Ps

Ps the process started by the current user

Ps–aux Show all processes in the system

Ps-ef more than aux show ppid

3. Top

Shows the dynamic change of the current process, equivalent to the Task Manager under Windows

4. Kill Killall

Kill sends a signal to a process

Kill–l List of signals

Kill-9 PID kills a process (signal No. 9th cannot be captured by other processes)

Killall process name kills all processes associated with the process name

5. Rpm

RPM-IVH (Install, display installation information, show installation progress)

RPM-UVH (U: Update installation) (U to capitalize)

Rpm-e + ... Uninstall, do not need to develop the package version number when uninstalling

Rpm–qa querying which packages are currently installed on the system

Rpm-q + ... Query the version number of a package

6. Tar (backup file)

1) TAR-CVF + Filename.tar + filename

Create a backup archive (c: Create V: Show a list of files during execution)

TAR-XVF + Filename.tar +-C + Directory

Recover files from a backup archive to a directory

2) Simultaneous compression and decompression of backup files

filename.tar.gz Format

Tar-cvzf TAR-XVZF

filename.tar.bz2 Format

TAR-CVJF TAR-XVJF

The compression rate of the BZ2 format is larger than the GZ format, and if the compressed file is larger, the compressed file in the bz2 format is smaller.

06.linux Management 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.