1.在/目录下创建一个临时目录test; mkdir -pv /root/test 2.在临时目录test下创建五个文件,文件名分别为passwd,group,bashrc,profile,sshd config; touch /root/test/passwd touch /root/test/group touch /root/test/bashrc touch /root/test/profile touch /root/test/ssh_config 3.在/test创建/etc/motd的软链接,文件名为motd.soft; ln -s /etc/motd(源文件) /root/test/motd.soft(软链接文件) 4.创建/etc/motd的硬链接为motd.hard ln /etc/motd /root/test/motd.hard 5.将/etc/hosts文件复制到/test目录 cp /etc/hosts(复制的文件) /root/test(目标文件) 6.给/test/sshd config改名为sshd mv /root/test/ssh_config (原文件)/root/test/sshd(改名后文件)