1.查看/etc/passwd文件第三行
[root@localhost ~]# cat /etc/passwd -n | head -n +3 | tail -n -1
3 daemon:x:2:2:daemon:/sbin:/sbin/nologin
2.在/test目录下创建一个子目录dir,将/etc/passwd复制到该目录
[root@localhost test]# mkdir dir
[root@localhost test]# cp /etc/passwd /test/dir/
[root@localhost test]# ls /test/dir/
passwd
将/test/sshd config.文件移动到/test/dir目录下并改名为sshd.conf
用mv命令