Linux 基础(鸟哥 Linux 私房菜)

2019-03-22  本文已影响0人  YoungTr

根目录(root directory)用一条斜线 “/” 表示

目录树相关性

“挂载”就是利用一个目录当成进入点,将磁盘分区的数据放置在该目录下,也就是说,进入该目录就可以读取该分区的意思。这个动作称为“挂载”,那个进入点的目录称为“挂载点”。由于整个 Linux 系统最重要的是根目录,因此根目录一定要挂载到某个分区。

挂载

图中假设我的硬盘分为两个分区,partition 1是挂载到根目录,至于partition 2则是挂载到/home这个目录。 这也就是说,当我的数据放置在/home内的各次目录时,数据是放置到partition 2的,如果不是放在/home下面的目录, 那么数据就会被放置到partition 1了!

几个快捷键

Linux 文件属性

[root@study ~]# ls -al
total 48
dr-xr-x---.  5    root     root    4096  May 29 16:08 .
dr-xr-xr-x. 17    root     root    4096  May  4 17:56 ..
-rw-------.  1    root     root    1816  May  4 17:57 anaconda-ks.cfg
-rw-------.  1    root     root     927  Jun  2 11:27 .bash_history
-rw-r--r--.  1    root     root      18  Dec 29  2013 .bash_logout
-rw-r--r--.  1    root     root     176  Dec 29  2013 .bash_profile
-rw-r--r--.  1    root     root     176  Dec 29  2013 .bashrc
drwxr-xr-x.  3    root     root      17  May  6 00:14 .config               <=范例说明处
drwx------.  3    root     root      24  May  4 17:59 .dbus
-rw-r--r--.  1    root     root    1864  May  4 18:01 initial-setup-ks.cfg  <=范例说明处
[    1    ][  2 ][   3  ][  4 ][    5   ][    6     ] [       7          ]
[  权限   ][链接 ][拥有者][群组 ][文件大小][  修改日期 ] [      文件名       ]
文件属性示意图

文件类型

文件权限

上一篇 下一篇

猜你喜欢

热点阅读