Linux命令

来源:互联网 发布:福富软件待遇 编辑:程序博客网 时间:2024/06/06 02:13
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
原创粉丝点击