Brief Linux Command Line notes: Which

Source: Internet
Author: User
ArticleDirectory
    • Parameters
    • Example
    • Tips

Display the directory of the system command

WhichCommand-list

 

Parameters

Command-listYesWhichOne or more search commands (practicalProgram)

 

Example Which single command
 
$Which Ls/Bin/Ls
Which multiple commands
$Which Grep Cat Cut/Bin/Grep/Bin/Cat/Usr/bin/Cut

 

Tips

1. which can only be used to search for the directory where the command is located. If the command has an alias, the alias will be displayed (depending on the release version)

2. whereis not only searches for the directory where the command is located, but also searches for the path to help document storage

3. Normally, the/sbin and/usr/sbin directories store root user commands, and the/bin and/usr/bin directories store common user commands.

4. Whatis can display brief information about the command and what can be used?

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.