08 查看系统合法shell
[root@localhost ~]# cat /etc/shells
09 查看系统发行版版本
[root@localhost ~]# cat /etc/redhat-release
10 查看系统内核版本
[root@localhost ~]# uname -a
11 临时修改主机名
[root@localhost ~]# hostname haha
12 查看系统指令的查找路径
[root@haha ~]# echo $PATH
13 查看passwd指令的执行路径
[root@haha ~]# which passwd
14 为/yasuo/ssh_config文件在/mulu目录下创建软链接,软链接名为ssh_config.link
[root@haha ~]# ln -s /yasuo/ssh_config /mulu/ssh_config.link
15 创建目录/mulu,并将/mulu下的软链接重命名并移动/ssh_config.link
[root@haha ~]# mv /mulu/ssh_config.link /ssh_config
16 找到你的根目录下的所有块设备文件
[root@haha ~]# find / -type b
17 将/etc/passwd和/etc/ssh/sshd_config文件复制到/root/etc目录下
[root@haha ~]# mkdir /root/etc/
[root@haha ~]# cp /etc/passwd /etc/ssh/ssh_config /root/etc/
18 复制/var/log/messages到/root目录下
[root@haha ~]# cp /var/log/messages /root
[root@haha ~]# ll /yasuo/dir1
[root@haha ~]# mkdir -p /yasuo/dir1
[root@haha ~]# cp /etc/hostname /yasuo/dir1/
[root@haha ~]# cp /etc/hostname /yasuo/dir1/hostname02
[root@haha ~]# cp /etc/passwd /yasuo/dir1/
[root@haha ~]# cp /etc/ssh/ssh_config /yasuo/dir1/sshd
[root@haha ~]# cp /yasuo/dir1/* /yasuo/
[root@haha ~]# tree /yasuo