工作常用linux命令

端口号占用 netstat -tunlp | grep 8080
zip压缩 zip -r /opt/file.zip /opt/file/
#将test.zip解压到/tmp目录下,并且不要覆盖已有文件
unzip -n test.zip -d /tmp

tar -cvf access.tar ./access_new.log

切割日志文件 split -b 1000M -d --verbose access_new.log access.log

当前目录各个文件大小
du -sh ./*

挂载硬盘(修改用户名)
mount -t cifs -o username=administrator, //ip/e /app/appdata

猜你喜欢

转载自blog.csdn.net/lx9876lx/article/details/127792828