vi .
touch filename
vi `ls|sed -n 1p`
cd -
find ~ -iname "*fundraiserwebui1.log*" -exec vi + {} \;
#忽略大小写在指定位置查找文件并对結果进行处理
find . -name 'service.properties' | xargs grep jmxPort
#找到当前目录下所有service.properties文件中包括jmxPort的行
ls -lv
usermod -G group user
mkdir -p /parentdir/dir
cp -r bin/ conf/ logs/ temp/ webapps/ work/ -t ../tomcatInstance2
cat /etc/resolv.conf
telnet host port
telnet localhost 3306 //查看本地的mysql连接是否打开
ipconfig /flushdns //windows
sudo /etc/init.d/networking restart //linux
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080