[root@localhost ~]# pwd
/root
[root@localhost ~]# mkdir -p ~/home/jxnc
[root@localhost ~]# cd home
[root@localhost home]# ls
jxnc
[root@localhost home]# cd ~
[root@localhost ~]# ls
dos hello.c home
[root@localhost ~]# cp -r dos /home/jxnc
[root@localhost ~]# ls
dos hello.c home
[root@localhost ~]# cd /home/jxnc
[root@localhost jxnc]# ls
asm-1.9 asm.com debug.com hpigot.com hpigot.s
[root@localhost jxnc]# cd ~
[root@localhost ~]# mv /home/jxnc /root
[root@localhost ~]# cd /home
[root@localhost home]# ls
[root@localhost home]# cd /root
[root@localhost ~]# ls
dos hello.c home jxnc
[root@localhost ~]# ls -l
total 16
drwxr-xr-x 3 root root 163 Aug 21 2011 dos
-rw-r--r-- 1 root root 242 Jul 15 2017 hello.c
drwxr-xr-x 3 root root 58 Oct 29 11:27 home
drwxr-xr-x 3 root root 163 Oct 29 11:28 jxnc
[root@localhost ~]# mv jxnc happy
[root@localhost ~]# ls
dos happy hello.c home
[root@localhost ~]# mkdir dos
mkdir: can't create directory 'dos': File exists
[root@localhost ~]# rm -l dos
rm: invalid option -- l
BusyBox v1.24.2 (2019-04-14 15:55:47 CEST) multi-call binary.
Usage: rm [-irf] FILE...
Remove (unlink) FILEs
-i Always prompt before removing
-f Never prompt
-R,-r Recurse
[root@localhost ~]# ls
dos happy hello.c home
linux第一次实验
最新推荐文章于 2023-06-17 17:32:33 发布