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 ).