This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux常见问题与解决 [2023/01/28 18:46] xujianglong |
linux常见问题与解决 [2023/03/08 16:09] (current) xujianglong ↷ Page moved from 内部资料:linux常见问题与解决 to linux常见问题与解决 |
||
---|---|---|---|
Line 12: | Line 12: | ||
sudo lsof -i:22 ## see a specific port such as 22 ## | sudo lsof -i:22 ## see a specific port such as 22 ## | ||
sudo nmap -sTU -O IP-address-Here | sudo nmap -sTU -O IP-address-Here | ||
+ | |||
</ | </ | ||
Line 25: | Line 26: | ||
# 例如:sudo systemctl disable tomcat8 | # 例如:sudo systemctl disable tomcat8 | ||
sudo systemctl disable < | sudo systemctl disable < | ||
+ | |||
</ | </ | ||
Line 37: | Line 39: | ||
====== 如何在退出命令行后保持程序运行(Screen命令) ====== | ====== 如何在退出命令行后保持程序运行(Screen命令) ====== | ||
- | ===== Basic Linux Screen Usage(更多内容,参照 How To Use Linux Screen ) ===== | + | ===== Basic Linux Screen Usage(更多内容,参照 How To Use Linux Screen ) ===== |
Below are the most basic steps for getting started with screen: | Below are the most basic steps for getting started with screen: | ||
Line 43: | Line 45: | ||
- On the command prompt, type '' | - On the command prompt, type '' | ||
- Run the desired program. | - Run the desired program. | ||
- | - Use the key sequence '' | + | - Use the key sequence '' |
- Reattach to the screen session by typing '' | - Reattach to the screen session by typing '' | ||
+ | |||
+ | ====== Mac或Linux中grep命令搜索中文 ====== | ||
+ | |||
+ | 搜索受到当前语言环境的影响,需要配置语言环境,命令如下: | ||
+ | < | ||
+ | |||
+ | env LANG=LC_ALL grep ... | ||
+ | |||
+ | </ | ||