常用linux命令
来源:互联网 发布:淘宝网app下载ipad版 编辑:程序博客网 时间:2024/06/14 02:52
1. mkdir -p:创建多级目录 eg: mkdir -p A/B
2. 复制: ctrl+insert 粘贴:shift+insert
3. vi编辑时--》撤销:esc-->u 撤销本次编辑时被撤销的内容:ctrl+R
4. 反引号` `的作用《==》$(),都是执行夹在里面的命令
5. 修改文件的权限:chmod -R 744 *
修改当前目录下所有的子目录、文件的权限:当前用户rwx 组用户:r 其他用户:r
6. 调试shell脚本:shell -x
7. 替换文件中匹配的字符串:sed -i 's/原字符串/替换字符串/g' filename //替换文件中的所有匹配项
8. 字符串切换编码:iconv -c -f gbk -t utf8 feed_test_data.txt>feed_test_data.txt_utf8
9. 查找:
find /disk9/cmsdata/file_product -name '*.csv' -type f -newermt "${yesterdaystr}" ! -newermt "${todaystr}" | xargs -i cp -vr {} $rawpath'/' | tee copy.log
find -newermt
man find的解释::
-newerXY reference
Compares the timestamp of the current file with reference. The
reference argument is normally the name of a file (and one of
its timestamps is used for the comparison) but it may also be a
string describing an absolute time. X and Y are placeholders
for other letters, and these letters select which time belonging
to how reference is used for the comparison.
a The access time of the file reference
B The birth time of the file reference
c The inode status change time of reference
m The modification time of the file reference
t reference is interpreted directly as a time
Some combinations are invalid; for example, it is invalid for X
to be t. Some combinations are not implemented on all systems;
for example B is not supported on all systems. If an invalid or
unsupported combination of XY is specified, a fatal error
results. Time specifications are interpreted as for the argu-
ment to the -d option of GNU date. If you try to use the birth
time of a reference file, and the birth time cannot be deter-
mined, a fatal error message results. If you specify a test
which refers to the birth time of files being examined, this
test will fail for any files where the birth time is unknown.
- 常用dos命令&Linux命令
- 常用linux命令-netstat命令
- 常用Linux命令
- linux常用开发命令
- 常用LINUX命令--(1)
- 常用的Linux命令
- Linux常用系统配置命令
- linux 常用网络命令
- 常用Linux命令
- 常用linux命令
- 常用linux命令大全
- linux 常用几个命令
- Linux常用简单命令
- 常用linux命令
- 常用的 Linux 命令
- Linux常用解压命令
- 常用linux命令[tar]
- linux常用svn命令
- 娶妻要娶贤妻,不是美女
- 广工2016校赛决赛
- 回调机制
- [转]为你的Android App实现自签名的 SSL 证书
- 最长回文子序列问题
- 常用linux命令
- C/C++中字符函数库ctype.h
- Windows+Eclipse+Python+Beautifulsoup配置问题
- varchar 和 nvarchar的区别
- java反射机制初探
- QT安装过程中报错无法定位程序输入点except1 于动态链接库MSVCR120D dll上
- Visual Studio 2013 常用快捷键
- app中直接跳转到QQ聊天页面
- tableviews动画块