linux_base_commond_one
1.cd commond
a. cd usr 切换到该目录下usr目录 b. cd ../ 切换到上一层目录 c.cd / 切换到系统根目录 d. cd ~ 切换到用户主目录 e. cd - 切换到上一个所在目录
2.directory commond
a.create directory commond
mkdir directory_name
b.query directory
ll or ls
c.find directory commond
find directory parameter
eg find /root associate with test directory find /root -name 'test*'
d.modify directory name
mv old_directory_name new_directory_name
e.move directory location
mv directory_name directory_location
mv test /usr
f.copy directory
cp -r /usr/copy_directory /temp/copy_to_directory
g.delete directory
rm -rf directory or rm -r directory
3.file manipulate
a.create file commond
touch file_name.txt
b.select file commond
cat file_name.txt show finally screen
more file_name.txt exit press q
less file_name.txt pagedown pageup exit with q
tail -10 file_name.txt show last ten exit ctrl + c
c.modify file content
vi a.txt entry i/o/a exit and keep esc + : + wq exit and nokeep esc+:+q+!
4.compression manipulate file commond
a.packing and compression files
tar after(packing_and_compressing_file_name) packing_file
tar -zcvf name.tar.gz a.txt b.txt c.txt or tar -zcvf name.tar.fz /test/*
z use gizp commond compressing c packing_file v view_complier_process f point_file_name
b.decompression commond
tar -xvf name.tar.gz x stand_for_decompression
tar -xvf name.tar.gz -C /usr -C indicate_unzip_location
5.other commond
a.show current location
pwd
b.search character in file commond
grep character_in_file sudo.conf
grep character sudo.conf --color default color is red
c.pipe commond
pipe commond is before output comm ond as current directory input commond
ps -ef | grep system a.select all process b.select process with character system
d.look process
ps -ef
e.kill process
kil -9 pid pid is find from ps -ef
f.network communication commond
1.look up current network card information
ifconfing
2.query communication information
ping ip_address
3.check current system ports use information
netstat -an
linux_base_commond_one的更多相关文章
随机推荐
- Java零碎知识点
█ 举个例子:Iterator iter = map.entrySet().iterator(); xx.yy() ,表示一个xx对象的yy方法 ,xx.yy().zz()中 xx.yy()返回 ...
- 201521123100 《Java程序设计》第5周学习总结
1. 本周学习总结 1.1 尝试使用思维导图总结有关多态与接口的知识点. 1.2 可选:使用常规方法总结其他上课内容. 1.接口不是类,不能使用new进行实例化 2.使用instanceof运算符,可 ...
- 201521123115 《Java程序设计》第4周学习总结
1.本周学习总结 2.书面作业 1.注释的作用 2.面向对象设计 2.1将在网上商城购物或者在班级博客进行学习这一过程,描述成一个故事.(不得少于50字,参考QQ群中PPT的范例). 感觉自己在代码方 ...
- 201521123117 《Java程序设计》第2周学习总结
本周学习总结: 1.String常量,创建之后不能再进行修改 2.类管理机制是包. 3.Java数组的使用. 书面作业: Q1:使用Eclipse关联jdk源代码,并查看String对象的源代码(截图 ...
- 201521123113 《Java程序设计》第1周学习总结
1. 本章学习总结 1.java是一个面向对象的编程语言,相对于c++来说代码较简便又好用.第一次接触java时感觉每句代码比较难写,但学习了一些快捷方法后就很方便了. 2.java运行于JVM,因此 ...
- 201521123081《java程序设计》 第11周学习总结
1. 本周学习总结 1.1 以你喜欢的方式(思维导图或其他)归纳总结多线程相关内容. 参考资料:XMind ============================================== ...
- 201521123027<java程序设计>第14周作业总结
1.本周作业总结 1.1 以你喜欢的方式(思维导图或其他)归纳总结多数据库相关内容. 2.书面作业 Q1. MySQL数据库基本操作 建立数据库,将自己的姓名.学号作为一条记录插入.(截图,需出现自己 ...
- Mysql常用命令大全
1.连接Mysql 格式: mysql h主机地址 u用户名 -p用户密码 2.1 创建数据库 命令:create database <数据库名> 例1:建立一个名为xhkdb的数据库 ...
- 01快速入门-04-Map、Set和iterable(ES6)
1.Map 我们知道,在JS中其实对象的方式就跟Java中的Map极为相似,即键值对的方式.JS中,key必须是字符串,实际上Number等值作为key也是合理的,所以为了解决这个问题,在最新的ES6 ...
- JMeter关联(正则表达式提取器)
关联:与系统交互过程中,系统返回的内容,需要在接下来的交互中用到,如防止csrf攻击而生成的token. 从前一个请求中取,用Regular Expression Extractor 正则表达式提取器 ...