Last active
October 23, 2020 11:39
-
-
Save zzuhan/7745997a09768502a624e1d31d9ccb30 to your computer and use it in GitHub Desktop.
[bash常用] #bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ps aux | grep node // 查询node类应用,以及看到pid | |
lsof -aPi -p $pid // 通过pid查询占用的端口 | |
lsof -i:$port // 通过端口查询pid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ls -hal /root/ | sudo tee /root/test.out > /dev/null | |
sudo npm ls | sudo tee out.txt > /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://zhuanlan.zhihu.com/p/67943584 | |
grep "test" **/*.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zip -r Demo.zip Demo | |
unzip Demo.zip -d xxx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
du -h -d 1 // 后面数字表示展开的层级 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment