现在的位置: 首页 > 综合 > 正文

Linux命令

2019年01月12日 ⁄ 综合 ⁄ 共 300字 ⁄ 字号 评论关闭

1.查找文件
find 目录 -name 'filename'
ex: find / -name 'readme.txt'

2.ubuntu下vi的兼容性问题
先运行sudo apt-get remove vi-common
再运行sudo apt-get install vim-gnome

3.在文件中查找字符串
grep 字符串 文件路径
grep 'str' filename

4.让脚本在后台运行
nohup ./command &
nohup command > /dev/null &
用第一个命令,会产生一个输出文件nohup.out,时间长了这个文件会很大。
用第二个命令,就不会有输出文件。

wireshark过滤命令:
1.host 192.168.1.1

抱歉!评论已关闭.