Linux.com

Answers
  • The opt directory is used for optional software, in most cases proprietary and binary based software is installed there to differentiate them from standard open source software.

    Answered by mfillpot
    3 years ago
    0 1
  • For programs following the Unix conventions, a program is split into parts put in different subdirectories of /usr. The programs themselves are placed in /usr/bin, super-user applications in /usr/sbin, software libraries in /usr/lib, source code in /usr/src, header files in /usr/include and anything else (documentation, plugins, themes, graphics, sounds, etc) is placed in a subdirectory of /usr/share. The most important system commands are instead placed in /bin and /sbin, with the corresponding libraries in /lib. Programs you compile yourself usually go in /usr/local/bin to separate them from the programs in /usr handled by the package manager.

    On the other hand, lots of software - especially multi-platform and possibly commercial software (matlab, maple, dropbox and several games come to mind) don't follow the Unix convention of splitting software in subdirectories called bin, sbin, lib and share, and thus don't "fit" into the directory structure in /usr. They instead expect to have their own folder, equivalent to the program folders in C:\Program Files\ on a Windows system. The solution is thus to just give those pieces of software such subdirectories in /opt, and e.g. link any useful binaries into /usr/local/bin for easy access from the command line.

    Answered by Jabir Ali Ouassou
    3 years ago
    1 2
  • Accepted Answer

    The rules where files should be stored in a Linux-system can be found in the Filesystem Hierarchie Standard:
    http://www.pathname.com/fhs/

    Answered by Christian Rose
    3 years ago
    0 1
Similar Questions Found
Questions from category Systems Management

Community Answers - Search


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board