“This is the 18th day of my participation in the August Gwen Challenge.

The vast sea of millions, thank you for this second you see here. Hope my article is helpful to you!

May you keep your love and go to the mountains and seas in the coming days!

Linux Basics

Yesterday we got to know about Linux, but just knowing about Linux is still not useful for our development.

So today we start to learn some Linux directory structure, command learning and so on!

The directory structure

In the Linux world, everything is a file.

In a Linux file system, there is no drive letter and everything starts at the root directory /, followed by a hierarchical tree directory structure.

So what are they?

  1. /bin :(/usr/bin, /usr/oca/bin)

    Binary is short for Binary, the directory where the most frequently used commands are stored.

  2. (/ usr/sbin/sbin/usr/local/sbin)

    S stands for Super User, which stores the system management program used by the system administrator.

  3. /home Is the home directory for common users. In Linux, each user has his/her own directory, which is usually named after the user’s account.

  4. /root This directory is the primary directory of the system administrator, also known as the super permission user.

  5. /boot stores some core files used to start Linux, including some connection files and image files

  6. /proc

    This directory is a virtual directory that is a map of system memory and is accessed to obtain system information.

  7. / SRV –> service

    This directory holds some data that needs to be extracted after the service is started.

  8. /tmp

    This directory is used to store temporary files.

  9. /dev

    Winhows-like device manager stores all hardware as files.

  10. /meda The Linux system automatically identifies some devices, such as USB flash drives, CD/DVD drives, etc. After identifying the devices, Linux will mount them to this directory.

  11. / MNT system provides this directory for users to temporarily mount other file systems, we can mount external storage on/MNT /, and then enter this directory to view the contents of the directory. – > d; /myshare

  12. /opt

    This is the directory for additional software installation on the host. If the ORACLE database is installed, you can save it to this directory. The default value is null.

  13. /usr/local This is another directory to install additional software for the host. It is usually installed by compiling source code.

  14. The /var directory is where things are constantly being expanded. It is customary to put frequently modified directories in this directory. Includes various log files.

  15. / SELinux [Security-Enhanced Linux]360 Selinux is a security subsystem that controls application access to specific files

What to know in particular:

directory meaning
Bin order record Holds executable file commands for all Linux systems
The root directory Home directory of the super administrator root
Home directory The location of the home directory for all common users
Usr directory Unix shared resources (usr/local) — Unix shared resources (usr/local) — Unix shared resources
The etc directory The directory for storing configuration files, network card configuration files, and permission configuration files are all here

summary

  1. Linux directories have and only need a root directory /
  2. The contents of each Linux directory are planned so that files are not misplaced.
  3. Linux manages our devices as files, so with Linux, everything is a file.
  4. There are a few well-known directories to keep in mind: /bin, /root, /home, /usr, etc

conclusion

I believe that you all have a certain understanding of the Linux system directory results, looking forward to waiting for the next chapter in Linux network IP learning!

Of course, there are more commands to watch next time! Welcome to the next chapter!

Let’s refuel together, too! I am not just, if there is any missing, wrong place, also welcome you to criticize in the comments of talent leaders! Of course, if this article is sure to help you a little, please kindly and lovely talent leaders to give a thumb-up, favorites, one key three even, thank you very much!

Here, the world is closed for today, good night! Although this article is over, I am still here, never finished. I will try to keep writing articles. The coming days are long, why fear the car yao ma slow!

Thank you all for seeing this! May you live up to your youth and have no regrets!