Linux-使用之vim编译安装出现的问题
---恢复内容开始---
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
---恢复内容结束---
最新文章
- HTML5 localStorage本地存储
- Hibernate之QBC查询与本地SQL查询
- VS2010开发环境最佳字体及配色方法
- bzoj 1226 [SDOI2009]学校食堂Dining(状压DP)
- mysql常用操作 mysql备份与恢复
- MAC上python环境搭建
- 能加载文件或程序集“XXX”或它的某一个依赖项,系统找不到指定的文件
- ITU-T G.1080 IPTV的体验质量(QoE)要求 (Quality of experience requirements for IPTV services)
- C语言中指针变量的加减运算
- poj 2226 Muddy Fields(水二分图)
- 牛客小白月赛12C (线性筛积性函数)
- SQL Server - 索引详细教程 (聚集索引,非聚集索引)
- 性能测试四十八:Jenkins+Ant+Jmeter系统部署
- MVC 的 Razor引擎显示代码表达式与隐式代码表达式
- Atcoder D - Knapsack 1 (背包)
- 地理空间数据云--TM影像下载
- windows下的redis集群搭建的艰辛历程
- Ansible Playbook Variables
- Redis笔记(五):Redis发布订阅
- start-stop-daemon自动启动、关闭后台程序参数传递
热门文章
- C++标准库里面没有字符分割函数split,自己编写函数实现字符串分割功能
- try catch和if else
- Codeforces 1313C.Skyscrapers
- 炼金术(2): 为什么要用issue管理软件
- Codeforces Round #620 (Div. 2) A. Two Rabbits
- c#活动目录操作
- GitHub vs. Bitbucket 不只是功能不同
- [原]Greenplum failed segment的恢复方法
- [追热点]学习Rust之选择IDE
- 软件工程 - 防御式编程EAFP vs LBYL