[[email protected] 01]# cd ~jack #进入指定用户的家目录
[[email protected] jack]# cd - #切回上一次目录
[[email protected] home]# cd .. #返回上一级目录 。。 “。”代表当前目录
环境变量:命名的内存值空间 变量赋值
[[email protected] 01]# env #打印所有的环境变量
[[email protected] 01]# hash #缓存 缓存是实现系统加速的
[[email protected] ~]$ hostname #查主机名
01
[[email protected] ~]$ cat /etc/sysconfig/network #修改主机名
NETWORKING=yes
HOSTNAME=01
[[email protected] ~]$ whatis date #查看date命令章节
date (1) - print or set the system date and time
date (1p) - write the date and time
[[email protected] ~]$ which is date
/usr/bin/which: no is in (/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/jack/bin)
/bin/date
[[email protected] ~]# man 5 passwd #解释配件文件的语法
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2-2