52-which Concise Notes

Source: Internet
Author: User

Displays the directory where the system commands are located

Which command-list

Parameters

command-list is one or more commands that are searched by which (utility)

Examplewhich single command
1 which ls 2 /bin/ls
which multiple commands
1 which grep Cat Cut 2 /bin/grep3 /bin/cat4 /usr/bin/cut

Tips

1.which can only be used to search the directory where the command is located, if this command has an alias also displays aliases (depending on the release version)

2.whereis can search not only the directory where the command is located, but also the path to its help document store

3. Typically, the/sbin and/usr/sbin directories store root user commands,/bin and/usr/bin directories store ordinary user commands

4.whatis can display a short message of the command, what can be done

52-which Concise Notes

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.