◊ 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