Home > Operation and Maintenance > Linux Operation and Maintenance > Linux commands that are not commonly used but are very useful

Linux commands that are not commonly used but are very useful

大家讲道理
Release: 2017-05-28 10:37:59
Original
1920 people have browsed it

which command

is used to find and display the absolute path of a given command, environmentvariablePATH stores the directories that need to be traversed when searching for commands. The which command will search for files that meet the conditions in the directory set by the environment variable PATH. In other words, using the which command, you can see whether a certain system command exists and where the command is executed.


whereis command

is used to locate the binary program and source of the command Paths to related files such as code files and man pages.


locate/slocate command

is used to find files or directories.


type command

is used to display the type of the specified command and judge Whether the command given is an internal or 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 # Check the current operating system The number of bits


lsb_release command

LSB isLinux Abbreviation for Standard Base, the lsb_release command is used to display LSB and specific version-related information. If this command is used without parameters, the -v parameter is added by default.


uname command

is used to print current system related information (kernel Version number, hardwarearchitecture, host name and operating system type, etc.).


The above is the detailed content of Linux commands that are not commonly used but are very useful. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template