ubuntu:filesystem
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:filesystem [2019/11/24 18:33] – peter | ubuntu:filesystem [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 8: | Line 8: | ||
{{: | {{: | ||
- | ---- | + | {{: |
- | + | ||
- | ===== /bin ===== | + | |
- | + | ||
- | It contains the binaries, or executables of the various programs installed in your machine. | + | |
- | + | ||
- | In many systems, this doesn’t exist as a real directory but serves as a symlink to the **/ | + | |
---- | ---- | ||
- | ===== /boot ===== | + | [[Ubuntu: |
- | All essential files required for the system startup are located here. | + | [[Ubuntu: |
- | You should not experiment with the contents of this directory unless you know what you’re doing. Else, you might corrupt the system itself and disrupt functionality. | + | [[Ubuntu:Filesystem: |
- | + | ||
- | ---- | + | |
- | + | ||
- | ===== /dev ===== | + | |
- | + | ||
- | The **/dev** directory contains the device files of your system. | + | |
- | + | ||
- | These are the file representations of your USB drives, hard-disk drives, Webcam, and so on. | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ===== /etc ===== | + | |
- | + | ||
- | Historically, | + | |
- | + | ||
- | Information like your username/ | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ===== /home ===== | + | |
- | + | ||
- | This is the personal directory of the each user. | + | |
- | + | ||
- | It can house multiple sub-directories based on the number of users in your machine. | + | |
- | + | ||
- | Say you’re user “peter”, | + | |
- | + | ||
- | It is also denoted as :~$ in the Bash shell. | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ===== /lib ===== | + | |
- | + | ||
- | System libraries are located here. | + | |
- | + | ||
- | These are the snippets of code used by your applications to perform some task. | + | |
- | + | ||
- | Their example includes code snippets that draw windows or send files. | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ===== /media ===== | + | |
- | + | ||
- | This directory is the mount-point of plug and play devices such as external storage. | + | |
- | + | ||
- | It is a relatively newer addition to the Linux file system. | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ===== /mnt ===== | + | |
- | + | ||
- | The old and grumpy Unix admins used this directory to mount on-demand devices or partitions manually. | + | |
- | + | ||
- | Although used infrequently, | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ===== /opt ===== | + | |
- | + | ||
- | Stands for optional and meant to hold optional system files. | + | |
- | + | ||
- | Admins often use it to host third-party applications that they installed from source. | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ===== /proc ===== | + | |
- | + | ||
- | It hosts the process files, kernel modules, and similar dynamic data. | + | |
- | + | ||
- | You should not interfere with this else you may render your system obsolete. | + | |
- | + | ||
- | + | ||
- | ===== /root ===== | + | |
- | + | ||
- | Like **/home** but for the superuser of the system. | + | |
- | + | ||
- | It is the directory you’ll be presented with when you switch to the root account. | + | |
- | + | ||
- | + | ||
- | ===== /run ===== | + | |
- | + | ||
- | This is used for holding temporary data used by Linux system processes. | + | |
- | + | ||
- | <WRAP alert> | + | |
- | Don’t mess here unless you know what you’re up for. | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | ---- | + | |
- | + | ||
- | ===== /sbin ===== | + | |
- | + | ||
- | Like **/bin** but holds only system essential binaries. | + | |
- | + | ||
- | Various everyday used utilities like ls, cd, cp, etc are located here. | + | |
- | + | ||
- | <WRAP center round alert 60%> | + | |
- | Do not manipulate them. | + | |
- | </ | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ===== /usr ===== | + | |
- | + | ||
- | + | ||
- | A ‘use it for all kind’ location where various information is stored. They can include binaries, libraries, icons, manuals, and so on. | + | |
- | /srv | + | |
- | + | ||
- | The server directory. It contains the source files of web apps and houses other communication protocols. | + | |
- | /sys | + | |
- | + | ||
- | Another virtual directory, such as /dev. It contains sensitive information and shouldn’t be experimented unless the user knows what he’s up to. | + | |
- | /tmp | + | |
- | + | ||
- | It is used for holding temporary values that will be deleted during system reboot. | + | |
- | /var | + | |
- | + | ||
- | The original purpose of this directory was to host all variable files. Nowadays, it contains several sub-directories for storing things like logs, caches, and such. | + | |
- | + | ||
- | There might be some additional directories in your root. It is usually subject to the specific Linux distribution and can vary across systems. | + | |
- | + | ||
- | + | ||
- | ---- | + | |
- | [[Filesystem: | + | [[Ubuntu:Filesystem: |
- | [[Filesystem: | + | [[Ubuntu:Filesystem: |
- | [[Filesystem: | + | [[Ubuntu:Filesystem: |
ubuntu/filesystem.1574620436.txt.gz · Last modified: 2020/07/15 09:30 (external edit)