Ps-ef Show all processes, output in full format
Kill PID kills process by process number
Killall http* End all HTTP start processes
Mount File System:
The MOUNT-T type device directory-t parameter specifies the file system type to which the disk is formatted.
Vfat:windows long File system.
Ntfs:windows High-level file systems widely used in NT, XP, Vista and Win7.
ISO9660: Standard CD-ROM file system.
To unmount the file system:
Umount [Directory | device]
Example: umount/home/rich/mnt
DF-H Displays the disk's remaining space information in a human-readable way
Example:
Filesystem Size used Avail use% mounted on
/DEV/SDB2 18G 7.4G 9.2G 45%/
Du shows the space the disk has used
Common parameter collocation:
-C Displays the total size of all listed files
-H output parameter size in human-readable mode
-S shows the total of each output parameter
Sort sorted data
-N identifies a number as a number rather than as a character
-M sort by month
Additional parameters are viewed with the sort--help command
grep [options] pattern [file] finds a row of data in a large file
GREP-E pattern filename-e specifying a matching pattern
Grep-n pattern Filename-n Displays the line number where the matching row is located
More parameters, input grep--help for display
Compress data:
1. Compressed data, commonly used tools are bzip2, gzip, zip:
BZIP2: Used to compress files.
Bzcat: The file content used to display compressed text.
BUNZIP2: Used to decompress the compressed bz2 file.
Bzip2recover: Used to attempt to recover corrupted compressed files.
Example:
BZIP2 Myprog Compressed Myprog file, compressed file myprog.bz2
BUNZIP2 myprog.bz2 Decompression bz2 compressed file
Bzcat myprog.bz2 Viewing compressed file contents
GZIP: Use to compress files
Gzcat: Used to view compressed files
Gunzip: Used to extract files.
Example:
Gzip myfile Compressed MyFile file, compressed file is myfile.gz
Gzip my* compress multiple files at once
Gunzip myfile.gz Extract Files
Gzcat myfile.gz used to view compressed files
Zip: Creates a compressed file that contains the specified files and directories.
Zipcloak: Creates an encrypted compressed file that contains the specified files and directories.
Unzip: Extracts files and directories from compressed ZIP files.
Example:
Zip-r testzip Test creates a compressed file called Testzip.zip, and the recursive test directory adds each file and directory found to the zip file.
Archived Data: Tar
Example:
TAR-CVF Test.tar test/test2/Create an archive file Test.tar, the file contains the test, Test2 directory.
TAR-TF Test.tar Lists the contents of the Test.tar file, but does not decompress
TAR-XVF Test.tar extracts content from the Test.tar file.
TAR-ZXVF Fiename if it is a. tar.gz or. tgz file, unzip the archive with TAR-ZXVF Fiename.
Note: This blog post is for individual study notes only
Linux monitoring program, disk space management, compressed data and archived data