Summary of Common commands in linux and summary of Common commands in linux

Source: Internet
Author: User

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

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.