这个命令个人觉得比较方便。记下来方便下次忘记时使用

[root@Client ~]# ls
43_12.txt  anaconda-ks.cfg  ce.sh
[root@Client ~]# 
[root@Client ~]# cp ce.sh{,.bak}       #备份成.bak模式
[root@Client ~]# ls
43_12.txt  anaconda-ks.cfg  ce.sh  ce.sh.bak
[root@Client ~]# 
[root@Client ~]# cp ce.sh{,-beifen}    #备份成-bak模式
[root@Client ~]# ls
43_12.txt  anaconda-ks.cfg  ce.sh  ce.sh.bak  ce.sh-beifen

 [root@Client ~]# mv ce.sh{,-bak}    #用来重命名
  [root@Client ~]# ls
  43_12.txt anaconda-ks.cfg ce.sh-bak

 

相关文章:

  • 2021-12-20
  • 2021-07-04
  • 2022-12-23
  • 2022-02-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-21
  • 2022-02-19
  • 2021-06-12
  • 2021-10-13
  • 2022-12-23
相关资源
相似解决方案