Home

Linux. Location of the executable files

In Linux, application executables can be placed in several standard directories, depending on their intended use and scope. Here are some common locations:

System-wide executables:

  • /bin: Essential command binaries (e.g., ls, cp).
  • /sbin: System binaries, usually for system administration (e.g., shutdown, mount).
  • /usr/bin: Non-essential user binaries and applications (e.g., user-installed applications).
  • /usr/sbin: Non-essential system binaries (e.g., server daemons).
  • /usr/local/bin: Binaries for user-installed applications that are not managed by the package manager.
  • /usr/local/sbin: System administration binaries for locally installed software.

Will output the directories in which the shell looks for executable files:

echo $PATH 
# For example:
# /home/username/.local/bin
# /usr/local/bin
# /usr/bin

Install/compile software globally:

/usr/local/src/

Install/compile software locally

~/.local

Finding Executables

You can locate executables using the which command:

which <executable_name>

Or use the whereis command for more comprehensive results:

whereis <executable_name>

Date:

Screen Dimensions