Linux常用目录作用

一 常用一级目录



 


 
注意:
1、根目录下的bin和sbin,usr目录下的bin和sbin,这四个目录都是用来保存系统命令的。
2、bin目录下的命令时任何用户都能执行,sbin目录下的命令只有超级用户才能执行。
3、media用来挂载光盘,misc挂载磁带机,mnt挂载U盘。它们都是空目录。
4、proc和sys目录不能直接操作,这两个目录保存的是内存挂载点。
5、可以在家目录root或home,以及tmp目录下随便放内容。
二 实战
  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

猜你喜欢

转载自cakin24.iteye.com/blog/2391225