Some commands that are not commonly used but are useful in Linux systems.

Source: Internet
Author: User

Some commands that are not commonly used but are useful in Linux systems.

 

Which command

It is used to find and display the absolute PATH of the given command. The environment variable PATH stores the directory to be traversed when searching the command. The which command searches for files that meet the conditions in the directory set by the Environment Variable PATH. That is to say, by using the which command, you can see whether a system command exists and where the command is executed.

 

Whereis command

It is used to locate the path of the binary program, source code file, man manual page, and other related files of the command.

 

Locate/slocate command

Used to find files or directories.

 

Type COMMAND

Displays the type of a specified command and determines whether the command is an internal command or an external command.

 

Getconf command

Get the configuration value for variable VAR, or for variable PATH_VAR for path PATH. If SPEC is given, give values for compilation environment SPEC.

Getconf LONG_BIT # view the number of digits of the current operating system

 

Lsb_release command

LSB is short for Linux Standard Base. The lsb_release command is used to display information about LSB and specific versions. If this command is used without parameters, the-v parameter is added by default.

 

Uname command

Prints information about the current system (kernel version number, hardware architecture, host name, and operating system type ).

 

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.