您的位置:首页 > 运维架构 > Linux

Linux常用目录作用

2017-11-22 11:54 507 查看
一 常用一级目录



 



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

[root@localhost test]# cd /


[root@localhost /]# ls


bin   dev  home   lib    media  mydata  proc  run   srv  tmp  var


boot  etc  japan  lib64  mnt    opt     root  sbin  sys  usr


[root@localhost /]# ls /usr


bin  games    lib    libexec  sbin   src


etc  include  lib64  local    share  tmp


[root@localhost /]# cd /dev


[root@localhost dev]# ls


autofs           mqueue              stdout  tty35  tty63


block            net                 tty     tty36  tty7


bsg              network_latency     tty0    tty37  tty8


btrfs-control    network_throughput  tty1    tty38  tty9


bus              null                tty10   tty39  ttyS0


cdrom            nvram               tty11   tty4   ttyS1


char             oldmem              tty12   tty40  ttyS2


console          port                tty13   tty41  ttyS3


core             ppp                 tty14   tty42  uhid


cpu              ptmx                tty15   tty43  uinput


cpu_dma_latency  pts                 tty16   tty44  urandom


crash            random              tty17   tty45  usbmon0


disk             raw                 tty18   tty46  usbmon1


fd               rtc                 tty19   tty47  vcs


full             rtc0                tty2    tty48  vcs1


fuse             sda                 tty20   tty49  vcs2


hidraw0          sda1                tty21   tty5   vcs3


hpet             sda2                tty22   tty50  vcs4


hugepages        sda3                tty23   tty51  vcs5


initctl          sda4                tty24   tty52  vcs6


input            sda5                tty25   tty53  vcsa


kmsg             sda6                tty26   tty54  vcsa1


log              sda7                tty27   tty55  vcsa2


loop-control     sg0                 tty28   tty56  vcsa3


lp0              sg1                 tty29   tty57  vcsa4


lp1              shm                 tty3    tty58  vcsa5


lp2              snapshot            tty30   tty59  vcsa6


lp3              snd                 tty31   tty6   vfio


mapper           sr0                 tty32   tty60  vga_arbiter


mcelog           stderr              tty33   tty61  vhost-net


mem              stdin               tty34   tty62  zero


[root@localhost dev]# ls /lib


alsa       grub         kbd             sendmail


binfmt.d   java         kdump           sendmail.postfix


cpp        java-1.5.0   kernel          sse2


crda       java-1.6.0   locale          sysctl.d


cups       java-1.7.0   modprobe.d      systemd


debug      java-1.8.0   modules         tmpfiles.d


dracut     java-ext     modules-load.d  tuned


firewalld  jvm          mozilla         udev


firmware   jvm-commmon  polkit-1        udisks2


games      jvm-exports  python2.7       x86_64-redhat-linux6E


gcc        jvm-private  rpm             yum-plugins


[root@localhost dev]# cd /


[root@localhost /]# ls


bin   dev  home   lib    media  mydata  proc  run   srv  tmp  var


boot  etc  japan  lib64  mnt    opt     root  sbin  sys  usr






大小: 139.6 KB





大小: 145 KB

查看图片附件
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: