1、ubuntu 目录
Ubuntu 中,以树状结构表示文件夹与文件,没有盘符的概念。比如:/abc/def/hello.txt,
这表示在根目录下有 abc 子目录,而 abc 下又有 def 目录;def 中有 hello.txt 文件。
从名字“/abc/def/hello.txt”中你无法知道 hello.txt 文件位于磁盘哪一个分区
注意:要想查看某个分区挂载在哪一个目录下,可以执行命令:df -h
对于普通用户,在 Ubuntu 下不再关心分区、盘符。需要关心的是哪个目录存什么:
root@linux-compiler:/usr_dhs# df -h
Filesystem Size Used Avail Use% Mounted on
udev 2.0G 4.0K 2.0G 1% /dev
tmpfs 394M 1.4M 393M 1% /run
/dev/sda3 42G 8.0G 32G 21% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 2.0G 596K 2.0G 1%