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的更多相关文章
随机推荐
- 团队作业4--第一次项目冲刺(Alpha版本) 5
一.Daily Scrum Meeting照片 二.燃尽图 三.项目进展 对前两天完成的功能进行整合 测试完成功能(测试算法是否有bug,界面设计是否人性化,适合用户使用.) 四.困难与问题 在对前两 ...
- 201521123090《Java程序设计》第6周学习总结
本周学习总结 1.1 面向对象学习暂告一段落,请使用思维导图,以封装.继承.多态为核心概念画一张思维导图,对面向对象思想进行一个总结. 注1:关键词与内容不求多,但概念之间的联系要清晰,内容覆盖面向对 ...
- 学习目标或者作业的制定(SMART原则)
以下文字摘自邹欣老师的博客 很高兴看到学生们都写了自己的目标: http://www.cnblogs.com/deng201421123059/p/6435346.html 不得不说,有些同学的目标太 ...
- 201521123018 《Java程序设计》第14周学习总结
1. 本章学习总结 2. 书面作业 1. MySQL数据库基本操作 建立数据库,将自己的姓名.学号作为一条记录插入.(截图,需出现自己的学号.姓名) 在自己建立的数据库上执行常见SQL语句(截图) 添 ...
- 201521123118《java程序与设计》第9周学习总结
1. 本周学习总结 1.1 以你喜欢的方式(思维导图或其他)归纳总结异常相关内容. 2. 书面作业 1. 常用异常 题目5-1 1.1 截图你的提交结果(出现学号) 1.2 自己以前编写的代码中经常出 ...
- Linux Ubuntu jdk(环境变量)配置
一.下载JDK - jdk版本建议是gz形式的,rpm是RedHat里面的命令,所以下载rpm格式的时候回遇到问题 二. 打开虚拟机,创建目录 1 创建目录 #mkdir home 2 转到该目录下 ...
- 04面向对象编程-02-原型继承 和 ES6的class继承
1.原型继承 在上一篇中,我们提到,JS中原型继承的本质,实际上就是 "将构造函数的原型对象,指向由另一个构造函数创建的实例". 这里,我们就原型继承的概念,再进行详细的理解.首先 ...
- Oracle SQL*Plus 数据备份为 sql 文件
在某些比较严格的环境中,不提供像PL/SQL Developer 这样的工具供我们备份表数据时,使用SQL*Plus运行如下脚本内容导出数据. 1, 执行时登录SQL*Plus, 命令 @D: ...
- Saltstack批量编译部署nginx(多模块)
最近一直在研究saltstack的同步文件和批量执行命令,随着架构的变大,批量部署的需求也变得明显起来了,我需要用一条命令就部署好nginx和tomcat,并且符合我所有的环境需求,可以直接投入生产环 ...
- 初识ELF格式 ABI,EABI,OABI
尽管每天都在调用linux的elf文件做各种事,但却很少去了解他,最近尝试在orangepi上编译个elf到android手机上运行,因为两个CPU都是ARMv8的.结果运行失败了.遂查找原因.结果挖 ...