How does "Linux learning" know about a strange command?

Source: Internet
Author: User

How to understand a strange command?

Some commands can be used to understand the situation of a command itself, such as the absolute path of the command.

$which ls

Which searches for a command in the default path , returning the absolute path to the command.

$whereis ls

Whereis searches for a command in a relatively large range , returning the absolute path to the command .

$whatis ls

Whatis used a short sentence to introduce the order.

$man ls

Man queries a concise help manual . For most Linux-brought commands, when the author writes it, it comes with a help document that tells the user how to use the command.

(man can be said to be the best encyclopedia we know about Linux, it can not only tell you the features of Linux commands, but also query Linux system files and system calls.) If you want to learn more about Linux, you have to know how to use man to query related documents. )

$info ls

Info query For more detailed help information

In addition, in the shell, you can also use the UP arrow to view previously entered commands that were run.

You can also use

$history

To query the previous operation on the command line.

When a command runs, you can use Ctrl + C when you want to stop it halfway . If you just want to stop temporarily, use Ctrl + Z.

How does "Linux learning" know about a strange command?

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.