- 表示上一次所在目录,~ 通常表示当前用户的"home"目录。使用 pwd 命令可以获取当前所在路径(绝对路径)。


新建文件:touch test
创建目录:mkdir -p father/son/grandson
复制文件:cp test father/son/grandson
复制目录:cp -r father family
删除文件:rm test
删除目录:rm -f test
移动文件:mv file1 Documents
重命名文件:mv file1 myfile
输出文件内容:cat -n passwd、nl passwd
查看文件:more、less 、head -n 10 passwd、tail -n 10 -f passwd
查看文件类型:file passwd

相关文章:

  • 2022-12-23
  • 2021-11-20
  • 2021-06-10
  • 2021-12-18
  • 2021-11-04
猜你喜欢
  • 2021-12-03
  • 2021-04-06
  • 2021-07-13
  • 2021-05-21
  • 2022-01-17
  • 2022-02-14
  • 2021-12-28
相关资源
相似解决方案