The role of common directories in Linux

A common first-level directory



 


 
Notice:
1. Bin and sbin in the root directory, bin and sbin in the usr directory, these four directories are used to save system commands.
2. The commands in the bin directory can be executed by any user, and the commands in the sbin directory can only be executed by the super user.
3. Media is used to mount CDs, misc mounts tape drives, and mnt mounts U disks. They are all empty directories.
4. The proc and sys directories cannot be operated directly. These two directories store memory mount points.
5. You can put content in the home directory root or home, as well as in the tmp directory.
Two actual combat
  1. [root@localhost test]# cd /
  2. [root@localhost /]# ls
  3. bin dev home lib media mydata proc run srv tmp var
  4. boot etc japan lib64 mnt opt root sbin sys usr
  5. [root@localhost /]# ls /usr
  6. bin games lib libexec sbin src
  7. etc include lib64 local share tmp
  8. [root@localhost /]# cd /dev
  9. [root@localhost dev]# ls
  10. autofs mqueue stdout tty35 tty63
  11. block net tty tty36 tty7
  12. bsg network_latency tty0 tty37 tty8
  13. btrfs-control network_throughput tty1 tty38 tty9
  14. bus null tty10 tty39 ttyS0
  15. cdrom nvram tty11 tty4 ttyS1
  16. char oldmem tty12 tty40 ttyS2
  17. console port tty13 tty41 ttyS3
  18. core ppp tty14 tty42 uhid
  19. cpu ptmx tty15 tty43 uinput
  20. cpu_dma_latency pts tty16 tty44 urandom
  21. crash random tty17 tty45 usbmon0
  22. disk raw tty18 tty46 usbmon1
  23. fd rtc tty19 tty47 vcs
  24. full rtc0 tty2 tty48 vcs1
  25. fuse sda tty20 tty49 vcs2
  26. hidraw0 sda1 tty21 tty5 vcs3
  27. hpet sda2 tty22 tty50 vcs4
  28. hugepages sda3 tty23 tty51 vcs5
  29. initctl sda4 tty24 tty52 vcs6
  30. input sda5 tty25 tty53 vcsa
  31. kmsg sda6 tty26 tty54 vcsa1
  32. log sda7 tty27 tty55 vcsa2
  33. loop-control sg0 tty28 tty56 vcsa3
  34. lp0 sg1 tty29 tty57 vcsa4
  35. lp1 shm tty3 tty58 vcsa5
  36. lp2 snapshot tty30 tty59 vcsa6
  37. lp3 snd tty31 tty6 vfio
  38. mapper sr0 tty32 tty60 vga_arbiter
  39. mcelog stderr tty33 tty61 vhost-net
  40. mem stdin tty34 tty62 zero
  41. [root@localhost dev]# ls /lib
  42. alsa grub kbd sendmail
  43. binfmt.d java kdump sendmail.postfix
  44. cpp java-1.5.0 kernel sse2
  45. crda java-1.6.0 locale sysctl.d
  46. cups java-1.7.0 modprobe.d systemd
  47. debug java-1.8.0 modules tmpfiles.d
  48. dracut java-ext modules-load.d tuned
  49. firewalld jvm mozilla udev
  50. firmware jvm-commmon polkit-1 udisks2
  51. games jvm-exports python2.7 x86_64-redhat-linux6E
  52. gcc jvm-private rpm yum-plugins
  53. [root@localhost dev]# cd /
  54. [root@localhost /]# ls
  55. bin dev home lib media mydata proc run srv tmp var
  56. boot etc japan lib64 mnt opt root sbin sys usr

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326146332&siteId=291194637