• 18 | Chapter 1: Foundations of Kali Linux
  • Linux Filesystem Structure




    Download 22,59 Mb.
    Pdf ko'rish
    bet24/225
    Sana14.05.2024
    Hajmi22,59 Mb.
    #232856
    1   ...   20   21   22   23   24   25   26   27   ...   225
    Bog'liq
    learningkalilinux

    Linux Filesystem Structure
    The Linux filesystem, just as the Unix filesystem before it, has a common layout. No
    matter how many disks you have installed in your system, everything will fall under /
    (the root folder). The common directories you will see in a Linux system are as fol‐
    lows:
    /bin
    Commands/binary files that have to be available when the system is booted in
    single-user mode.
    18 | Chapter 1: Foundations of Kali Linux


    /boot
    Boot files are stored here, including the configuration of the boot loader, the ker‐
    nel, and any initial ramdisk files needed to boot the kernel.
    /dev
    A pseudofilesystem that contains entries for hardware devices for programs to
    access.
    /etc
    Configuration files related to the operating system and system services.
    /home
    The directory containing the user’s home directories.
    /lib
    Library files that contain shared code and functions that any program can use.
    /opt
    Optional, third-party software is loaded here.
    /proc
    A pseudofilesystem that has directories containing files related to running pro‐
    cesses, including memory maps, the command line used to run the program, and
    other essential system information related to the program.
    /root
    The home directory of the root user.
    /sbin
    System binaries that also need to be available in single-user mode.
    /tmp
    Temporary files are stored here.
    /usr
    Read-only user data (includes bin, doc, lib, sbin, and share subdirectories).
    /var
    Variable data including state information about running processes, log files, run‐
    time data, and other temporary files. All of these files are expected to change in
    size or existence during the running of the system.
    You can also see the owner (user) and group, both of which are root in these cases.
    This is followed by the file size, the last time the file or directory was modified, and
    then the name of the file or directory. You may notice at the top that there are files
    that start with a dot, or period. The dot files and directories store user-specific set‐
    tings and logs. Because they are managed by the applications that create them, as a
    general rule, they are hidden from regular directory listings.

    Download 22,59 Mb.
    1   ...   20   21   22   23   24   25   26   27   ...   225




    Download 22,59 Mb.
    Pdf ko'rish