---恢复内容开始---

cd <directory>

  Short for "change directory".

  The shorthand name for the current directory is  .

  The shorthand name for the parent directory is ..

pwd

  present working directory

ls

  list the contents of the present directory

mkdir <directory>  //<directory> is the represent for the name of the directory

  Short for "make directory",this command will create a new subdirectory called <directory> located in the current directory

cp <source> <destination>  // 仅复制单个文件,不能复制文件夹

  Short for "copy",this command will allow you to create a duplicate of the file you specify as <source>,whichi it will save in <destination>

  eg.  cp hello.c hi.c  // copy hello.c and rename the copyfile as hi.c in the present directory

  

  -r <directory> <destinction>  //加了参数 -r 表示复制文件夹

    Short for "recursive",copy the directory recursively.copy the <directory> and copy every folder that exists inside of it and every file that exists inside of it.In other words, It need to recursively dive down into <destincton> and make a copy of everything in there

rm <file>  // 仅删除单个文件,不能删除文件夹

  Short for "remove",this command will delete<file> after it asks you to confirm (y/n) you want to delete it.

  -f <file>

    Short for "force",foce rm to do exactly what we're telling it to do.  

    but use at your own peri!there's no undo.

  -r <directory>

    to delete entire directories you need to use the -r flag,just as was the case with cp.

  -rf  

    combine the -r and -f flags into -rf .Again,careful!There's no undo!

mv  // 移动文件

  Short for "move",this command will allow you to effectively rename a file,moving it from <source> to <destination>. 

  Rename Source to DEST,or move SOURCE(s)to DIRECTORY.

problem: su command cannot use

  sudo passwd  // set root password;and then you can use su command  

---恢复内容结束---

最新文章

  1. HTML5 localStorage本地存储
  2. Hibernate之QBC查询与本地SQL查询
  3. VS2010开发环境最佳字体及配色方法
  4. bzoj 1226 [SDOI2009]学校食堂Dining(状压DP)
  5. mysql常用操作 mysql备份与恢复
  6. MAC上python环境搭建
  7. 能加载文件或程序集“XXX”或它的某一个依赖项,系统找不到指定的文件
  8. ITU-T G.1080 IPTV的体验质量(QoE)要求 (Quality of experience requirements for IPTV services)
  9. C语言中指针变量的加减运算
  10. poj 2226 Muddy Fields(水二分图)
  11. 牛客小白月赛12C (线性筛积性函数)
  12. SQL Server - 索引详细教程 (聚集索引,非聚集索引)
  13. 性能测试四十八:Jenkins+Ant+Jmeter系统部署
  14. MVC 的 Razor引擎显示代码表达式与隐式代码表达式
  15. Atcoder D - Knapsack 1 (背包)
  16. 地理空间数据云--TM影像下载
  17. windows下的redis集群搭建的艰辛历程
  18. Ansible Playbook Variables
  19. Redis笔记(五):Redis发布订阅
  20. start-stop-daemon自动启动、关闭后台程序参数传递

热门文章

  1. C++标准库里面没有字符分割函数split,自己编写函数实现字符串分割功能
  2. try catch和if else
  3. Codeforces 1313C.Skyscrapers
  4. 炼金术(2): 为什么要用issue管理软件
  5. Codeforces Round #620 (Div. 2) A. Two Rabbits
  6. c#活动目录操作
  7. GitHub vs. Bitbucket 不只是功能不同
  8. [原]Greenplum failed segment的恢复方法
  9. [追热点]学习Rust之选择IDE
  10. 软件工程 - 防御式编程EAFP vs LBYL