Summary of Common commands in linux and summary of Common commands in linux
Clear terminal screen
Clear terminal screen usageClearCommand orCtrl + LCombination of shortcut keys. However, this operation does not actually clear the screen. If you scroll up, you can still see the previous output.
So you can also useResetCommand to truly clear the terminal screen.
Definition of the command line Environment
[Root @ localhost:/etc #
Root username localhost Host Name
: Current Directory
Normal user prompt is $
Wc, statistical command
The wc (word count) command can be used to count the number of lines, words, and characters of a file.
Wc command execution method:
Wc [-Option] File Name
For example, you need to count the number of users in the current system. Because the/etc/passwd file stores all users and each user has one row of information, you can execute the command
Wc-l/etc/passwd
Wc Command Option
-L number of lines displayed-w Number of words displayed-m number of characters displayed
Dpkg command
The dpkg command is a utility used to install, create, and manage software packages in Debian Linux.
Syntax:
Dpkg (option) (parameter)
Options:
-I install the software package-r Delete the software package-P Delete the software package while deleting its configuration file-L display in the file associated with the software package-configure configuration package