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的更多相关文章
随机推荐
- 六,ESP8266 TCP Client
今天不知道是不是让我姐挺失望.......很多时候都不知道自己努力的方向对不对,,以后能不能带给家人最美好的期盼...... Init.lua 没啥改变,,就改了一下加载Client.lua gpio ...
- PCB Design_经验之谈
所谓覆铜,就是将PCB上闲置的空间作为基准面,然后用固体铜填充,这些铜区又称为灌铜.敷铜的意义在于,减小地线阻抗,提高抗干扰能力:降低压降,提高电源效率:与地线相连,还可以减小环路面积.也出于让PCB ...
- Java第七周学习总结
1. 本周学习总结 以你喜欢的方式(思维导图或其他)归纳总结集合相关内容. 参考资料: XMind 2. 书面作业 ArrayList代码分析 1.1 解释ArrayList的contains源代码 ...
- 201521123113《Java程序设计》第6周学习总结
1. 本周学习总结 1.1 面向对象学习暂告一段落,请使用思维导图,以封装.继承.多态为核心概念画一张思维导图,对面向对象思想进行一个总结. 1.2 可选:使用常规方法总结其他上课内容. 使用NetB ...
- 201521123042 《Java程序设计》第4周学习总结
1. 本周学习总结 1.1 尝试使用思维导图总结有关继承的知识点. 1.2 使用常规方法总结其他上课内容. 多态性的应用: instanceof运算符: 通过 instanceof判断父类引用所引用的 ...
- 201521123093 java 第一周总结
201521123093 <Java程序设计> 第一周学习总结 1.本周学习总结 (1)第一次开始接触java语言,java的用法和C不太一样.在编程序时语句比以前的长. (2)学会了使用 ...
- 201521123009 《Java程序设计》第1周学习总结
1. 本周学习总结 对Java进行了了解与简单的学习.第一次接触Java觉得比较难理解. 希望之后的深入学习可以解决目前的一些问题. 2. 书面作业 为什么java程序可以跨平台运行?执行java程序 ...
- CentOS7的一些初始化
默认最小化安装 [root@GVMCET001 ~]# nmtui 设置网络,主机名等 [root@GVMCET001 ~]# yum update 更新系统 SSH [root@GVMCET001 ...
- 基于 Electron 的爬虫框架 Nightmare
作者:William 本文为原创文章,转载请注明作者及出处 Electron 可以让你使用纯 JavaScript 调用 Chrome 丰富的原生的接口来创造桌面应用.你可以把它看作一个专注于桌面应用 ...
- 写了一个迷你confirm弹窗插件,有取消和确认操作处理并支持单个确认使用弹窗和锁屏禁止滚动
由于项目想精简不想用其他第三方的ui插件,又很需要像confirm等小效果来完善交互,且使用的频率也是相当的高,于是自己造了一个,省时也省力 代码已经粘贴出来,直接复制即可看到效果,高手勿喷,可以相互 ...