Directories and their role

2 minutes read

Linux_logo_errorbits.com

As you already know, in Windows just after the install there are a few standard directories like: Windows, Program Files, Documents and Settings/Users. In Linux a similar structure exists but with much more directories. I will present you below the most important ones:

/home = contains user’s personal folders and files

/root = contains the files and folders of root user

/dev = special files for system hardware devices

/etc = system configuration files for operating system and applications

/tmp = here are stored the temporary files

/opt = additional installed software which is not part of the operating system – 3rd party software

/boot = contains a minimum number of files needed by the operating system to boot – a part of bootloader, bootmanager and the kernel

/proc = contains a pseudo file system which does not exists on the harddisk, all the resources under /proc are information that the kernel presents to the user as files, this way the user can access information about hardware, processes, settings and so on. Some of the files can be modified and the effect is replicated directly into the Kernel

/var = contains variable data/data that changes very often

/var/mail = contains the mailboxes if a webserver is installed

/var/log = log files created by the system or other applications

/bin = files that can be executed (binary files) used to troubleshot or debug the operating system.

/sbin = binary files that are used for system administration (can be used by root user)

/lib = libraries of data used by the kernel and Linux OS (Operating System), needed to boot and to run commands from /bin and /sbin

/mnt = used to temporary mount other file systems

/usr = the place where user’s applications are installed. This folder also contains a file structure.

/usr/bin = commands available for the user

/usr/lib = libraries available for the user

/usr/local = used to install available software only on the local machine

/usr/share = architecture independent data that is not modifying

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

Related Posts:

Managing Linux users with Kubernetes involves several steps and configurations. Here's an overview of the process:Authentication: Kubernetes supports various authentication mechanisms like X.509 certificates, static passwords, or token-based authentication...
Here is a list that contains one of the most used Linux commands, and a short explanation for them: ls – list – lists files and directories, can be used with a lot of options like: -a, -R, -l, -g, -r; pwd – print working directory – shows the path of the curre...
Metacharacters We often want to refer to a group of files or directories that have a common characteristic. To do this, there are some small constructs which helps the user to filter the needed files. For example if in a folder we have a lot of jpg, mp3 and do...
To list all files in a directory in Linux, you can use the ls command. By default, when you enter ls followed by a directory path, it will display a list of all files and directories within that specified directory.For example, to list files in the current dir...
To set up a basic Erlang project structure, you typically follow these steps:Start by creating a root directory for your project. Choose a meaningful name for your project and create a new directory with that name. Inside the project's root directory, crea...
To uninstall Golang in Kali Linux, you can follow these steps:Open the terminal by clicking on the terminal icon in the desktop or pressing Ctrl+Alt+T. Use the following command to navigate to the Go installation directory: cd /usr/local/go Remove all the inst...