linux第一次实验

[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
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值