题目:利用linux系统实现下列操作:
解答如下:
1,
[root@localhost ~]# mkdir -p /ceshi/user
[root@localhost ~]# cp /etc/passwd /etc/shadow /ceshi/user/
[root@localhost ~]# ln /ceshi/user/passwd /ceshi/user/passwd.bak
[root@localhost ~]# ln -s /ceshi/user/shadow /sh.link
[root@localhost ~]# cp /etc/ssh/sshd_config /ceshi/sshd
[root@localhost ~]# find / -name passwd -type f
[root@localhost ~]# find / -name passwd -type f > /passwd.txt
[root@localhost ~]# mkdir test
[root@localhost ~]# mv /ceshi/sshd /ceshi/user/passwd.bak ./test