linux php ext目录,Linux中常用目录作用有哪些

本文主要介绍了详解 Linux 常用目录的作用的相关资料,这里列举常用目录并附实例帮助大家理解这部分内容,需要的朋友可以参考下,希望能帮助到大家。

详解 Linux 常用目录的作用

一 常用一级目录

9bf234308121d24b7d11506880c6ea23.png

b343631edd248152a08d9091469c60a6.png

注意:

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值