Linux Common Commands--which

Source: Internet
Author: User
which 显示命令的全路径(查看二进制命令的所在位置,从 PATH 变量所在的路径查找)

Syntax format: which "option" "Prcgramname" echo [options] [command name]
Attention:
The 1.which command and the following options and command names must have at least one space between each element
The 2.which command is used to find the specified command in the PATH environment variable
Common parameters:-A
Description: The default after PATH after the summary and go to find the command if the search found, stop matching. Use the-a option to traverse all PATH commands and output all occurrences.
Case one:
Finds the full path of the specified command


Note: The which command can also display the alias of its find command and whether it is a built-in command

Linux Common Commands--which

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.