Linux学习7天(文件管理)------days02

(1).   查看命令帮助方法

1-1)  command   --help

 

1-2) man {command | configuration file | 针对函数帮助 }

man一共分为9个章节,按照查询的时候从小到大进行查询。这9个章节分别如下:

       1   Executable programs or shell commands              /用户命令
       2   System calls (functions provided by the kernel)             /内核系统调用
       3   Library calls (functions within program libraries)           /库函数
       4   Special files (usually found in /dev)                               /特殊文件和设备
       5   File formats and conventions eg /etc/passwd                       /文件格式和规范
       6   Games           /游戏
       7   Miscellaneous (including macro packages and conventions), e.g. man(7), groff(7)        /规范、标准和其他页面
       8   System administration commands (usually only for root)                /系统管理命令
       9   Kernel routines [Non standard]                                 /linux内核、api(内核调用)

man 一般不使用章节号查看

Linux学习7天(文件管理)------days02

man  -f 是列出所有章节中的手册信息,man -a  是列出所以章节手册的内容

1-3)官方手册(系统层面的帮助信息)

Linux学习7天(文件管理)------days02

 

(2).  centos7的目录结构

Linux学习7天(文件管理)------days02

一些重点的目录简介:

Linux学习7天(文件管理)------days02

Linux学习7天(文件管理)------days02

Linux学习7天(文件管理)------days02

Linux学习7天(文件管理)------days02

Linux学习7天(文件管理)------days02

Linux学习7天(文件管理)------days02

全局可写: 谁都可以写

Linux学习7天(文件管理)------days02

如果/usr 是安装时会占用较大硬盘容量的目录,那么/var 就是在系统运作后才会渐渐占用硬盘容量的目录。 因为/var 目录主要针对常态性变动的文件,包括快取(cache)、登录档(log file)以及某些软件运作所产生的文件, 包括程序文件(lock file, run file),或者例如 MySQL 数据库的文件等等。

CentOS 的网络设定数据放在
/etc/sysconfig/network-scripts/ 目录下,但是 SuSE 则是将网络放置在 /etc/sysconfig/network/ 目录下

(3).  文件定位、路径