/usr/share directory. The /usr/share directory contains architecture-independent shareable text files. The contents of this directory can be shared by all machines, regardless of hardware architecture. Some of the files in the /usr/share directory include the directories and files shown in the following diagram.
The directory /var/lib/rpm is a RPM database holds information about all the RPM packages installed on the system.
Purpose. /usr/lib includes object files and libraries. On some systems, it may also include internal binaries that are not intended to be executed directly by users or shell scripts. Applications may use a single subdirectory under /usr/lib .
The /usr directory consists of several subdirectories that contain additional UNIX commands and data files. It is also the default location of user home directories. The /usr/bin directory contains more UNIX commands. The /usr/include directory contains header files for compiling C programs.
The lib folder is a library files directory which contains all helpful library files used by the system. In simple terms, these are helpful files which are used by an application or a command or a process for their proper execution. The commands in /bin or /sbin dynamic library files are located just in this directory.
According to Linux FHS, /usr is the location where Distribution-based items are placed and /usr/local is the location where you'd place your own localized changes ( /usr/local will be empty after a base install). EDIT: Short answer, yes, put your code in /usr/local/src .
A temporary store for RPM binary files that are being built from source code. Contains the source code for the Linux kernel. /usr/src/linux/.config. The last kernel source configuration.
How to reduce or free space in /usr partition
- Restart the httpd service.
- Check for apache logs like error_log, access_log , suexec_log in /usr/local/apache/logs .
- Same can be done for the files in cPanel logs (/usr/local/cpanel/logs) as well .
- Domlogs – Get into the /usr/local/apache/domlogs/ directory.
Absolute and relative paths
An absolute or full path points to the same location in a file system, regardless of the current working directory. To do that, it must include the root directory. By contrast, a relative path starts from some given working directory, avoiding the need to provide the full absolute path.Each VM looks like an application running on top of the Host OS. Each Guest OS runs concurrently and can be the same or different (Windows, Linux or other). The Bins/Libs layer supplies software libraries and services needed by the top layer apps. VM servers are easy to instantiate, destroy, move or scale.
Filesystem Hierarchy Standard (FHS)
- /boot – contains files related to the initial booting of the computer.
- /bin – contains certain critical executable files, such as ls, cp, and mount.
- /dev – contains device files like hard disks or CD-ROMs.
- /sbin – similar to /bin, but it contains programs that are normally run only by the system administrator.
The Filesystem Hierarchy Standard (FHS) defines the directory structure and directory contents in Linux distributions. It is maintained by the Linux Foundation. The latest version is 3.0, released on 3 June 2015.
Linux directory structure explained:/etc folder
ETC is a folder which contain all your system configuration files in it. “etc” is an English word which means etcetera i.e in layman words it is “and so on”. The naming convention of this folder is having some interesting history.GID The fourth field is the group identifier. This number identifies the primary group of the user; all files that are created by this user will initially belong to this group.
The UID of the administrator user refers to a unique positive integer that is assigned by the system to each user. It is the user identity definition that is used by the system to identify each user. On the other hand, the username is an interface for the humans to recognize their account and login to the system.
The Filesystem Hierarchy Standard (FHS) defines the directory structure and directory contents in Linux distributions. It is maintained by the Linux Foundation. The latest version is 3.0, released on 3 June 2015.
A home directory, also called a login directory, is the directory on Unix-like operating systems that serves as the repository for a user's personal files, directories and programs. It is also the directory that a user is first in after logging into the system.
Linux Directories
- / is the root directory.
- /bin/ and /usr/bin/ store user commands.
- /boot/ contains files used for system startup including the kernel.
- /dev/ contains device files.
- /etc/ is where configuration files and directories are located.
- /home/ is the default location for users? home directories.
A file system is the way in which files are named, stored, retrieved as well as updated on a storage disk or partition; the way files are organized on the disk. In this guide, we will explain seven ways to identify your Linux file system type such as Ext2, Ext3, Ext4, BtrFS, GlusterFS plus many more.