常用命令
2015-07-03 10:50
337 查看
<1>mount -n -o remount,rw / 解决只读问题
-n, --no-mtab
Mount without writing in /etc/mtab. This is necessary for example when /etc is on a
read-only filesystem.
<2>sed -i '10s/old/new/' file.txt 10:指行数
<3>sed删除某行=====>
c121 tmp # cat test
aa
bb
c121 tmp # sed -r -i '2d' test
c121 tmp # cat test
aa
<3>vim中选中多行后批量缩进=>V选中要缩进的行,> 向右缩进一个tab
<4>linux find命令查找当前目录下7天前的文件但排除所有目录. find . -maxdepth 1 -mtime +7 -type f
-n, --no-mtab
Mount without writing in /etc/mtab. This is necessary for example when /etc is on a
read-only filesystem.
<2>sed -i '10s/old/new/' file.txt 10:指行数
<3>sed删除某行=====>
c121 tmp # cat test
aa
bb
c121 tmp # sed -r -i '2d' test
c121 tmp # cat test
aa
<3>vim中选中多行后批量缩进=>V选中要缩进的行,> 向右缩进一个tab
<4>linux find命令查找当前目录下7天前的文件但排除所有目录. find . -maxdepth 1 -mtime +7 -type f
相关文章推荐
- 云安全:马其诺防线来了
- java中如何判断一个字符是中文字符
- 1045 - Access denied for user 'root'@'localhost' (using password: NO) xampp
- Java集合总结(二)
- RadioGroup的RadioButton不居中
- Android中的Sqlite中的onCreate方法和onUpgrade
- 阿姆斯特朗数
- Swift下调用Touch ID实现指纹识别
- 文章标题
- Servlet详细介绍,学习笔记
- 内部类的学习总结
- 前端优化:雅虎35条
- Process打开文件
- Visual Studio中判断项目的类型
- 网络推广意义何在?
- Java Web返回JSON
- DirectX错误号及其原因
- 备库不能实时应用的问题
- 轻量级消息队列
- 文字垂直居中