博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Linux-使用之vim编译安装出现的问题
阅读量:4614 次
发布时间:2019-06-09

本文共 1867 字,大约阅读时间需要 6 分钟。

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

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  

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

转载于:https://www.cnblogs.com/jllin/p/9957648.html

你可能感兴趣的文章
我的友情链接
查看>>
RedHat6 管理应用服务【11】
查看>>
stm32F10x复习-1
查看>>
redis的学习使用(ubuntu系统下)
查看>>
20135226黄坤信息安全系统设计基础期末总结
查看>>
轻松快捷创建VSFTP虚拟用户
查看>>
[转]Javascript原型继承
查看>>
[转] vue异步处理错误
查看>>
CSS 3D动画概述菜鸟级解读之一
查看>>
分布式系列文章 —— 从 ACID 到 CAP / BASE
查看>>
方法签名与方法重载
查看>>
cmake 变量
查看>>
[Programming Entity Framework] 第2章 探究实体数据模型(EDM)(一)
查看>>
shell环境
查看>>
Java调用C++类库--JNI
查看>>
gles和opengl版本对照表
查看>>
微信开发(二)自己的代码
查看>>
python netwokx环境搭建
查看>>
面向空实现类继承
查看>>
1303: Decimal
查看>>