File contents which tend to grow are located in this directory. The variable data files such as log files are located in the /var directory. The system libraries are stored in /usr/lib.Įxample: useradd, atd, cron, userdel. The binary files of a user is stored in /usr/bin and the binary files of the system are stored in /usr/sbin. This directory contains libraries, source code, binaries and documentation required for second-level programs. So do not store files in this directory that you want to store for a long time. But remember that the contents of this directory are deleted whenever the system reboot or restarts. A user can also store files under this directory. 6) /tmpĪll the temporary files created by the system and the user are stored under this directory. For example, Google Earth application doesn’t come under Linux distribution and it is installed in the /opt/google/earth directory.
LINUX COMMANDS LIST DIRECTORY CONTENTS SOFTWARE
Usually, the software code is stored in the opt directory and the binary code is linked to the bin directory so that all users can run that software. The opt directory is used for installing the application software from third-party vendors that are not available in the Linux distribution. A subdirectory is nothing but a directory that resides inside another directory. Here the john directory is known as a subdirectory. For example, if the user name of the account is john then the home directory will be /home/john. The home directory allows the users to separate their data from other users in the Linux Operating System. Linux system often contains multiple user accounts.
The user’s home directory is stored under /home directory. This directory also contains startup and shutdown program scripts that are used to start or stop individual programs.Įxample: /etc/nf, /etc/nf. It controls the behavior of an operating system or application. The core configuration files are stored in /etc directory. Another important thing is that applications, programs, and commands that we use are sometimes located in the /bin directory. The binary file is nothing but strings of zeroes and ones. This source is converted into a machine-readable code. All the source code that we write is in a human-readable form. This directory contains all the binary or executable program files. If someone says to look into the slash directory then they referring to the root directory. It is represented by a forward slash (/). Every directory arises from the root directory. Web development, programming languages, Software testing & others 1) / – Root
LINUX COMMANDS LIST DIRECTORY CONTENTS FREE
Start Your Free Software Development Course