linux 基本命令

这里添加下常用的命令

删除
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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值