这里添加下常用的命令
删除
1. 删除指定的一些文件
比如删除 mat.o32424, mat.e342, 。。。
就使用 find -name “.[oe][0-9]?” | xargs /bin/rm -f
xargs 的作用是把前面的结果一条条输送到后面
Tips
& (background running)
adding & at the end of command, will make the job running in the background
tail
print the last 10 lines of the file.
if use
tail -f file_name
it can append the data as the file grows. It is equivalent to open this file and keep updating (press :e in vim) it. This is a great way.
ldd
The command ldd prints the shared libraries required by each program or shared library specified on the command line.
E.X
ldd caffe //print out all libraries caffe will use.