User Tools

Site Tools


linux常见问题与解决

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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
 +
  
 </code> </code>
Line 25: Line 26:
 # 例如:sudo systemctl disable tomcat8 # 例如:sudo systemctl disable tomcat8
 sudo systemctl disable <service_name> sudo systemctl disable <service_name>
 +
  
 </code> </code>
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 ''screen''.   - On the command prompt, type ''screen''.
   - Run the desired program.   - Run the desired program.
-  - Use the key sequence ''Ctrl-a'' + ''Ctrl-d'' to detach from the screen session.+  - Use the key sequence ''Ctrl-a''  + ''Ctrl-d''  to detach from the screen session.
   - Reattach to the screen session by typing ''screen -r''.   - Reattach to the screen session by typing ''screen -r''.
 +
 +====== Mac或Linux中grep命令搜索中文 ======
 +
 +搜索受到当前语言环境的影响,需要配置语言环境,命令如下:
 +<code>
 +
 +env LANG=LC_ALL grep ...
 +
 +</code>
  
  
linux常见问题与解决.1674902775.txt.gz · Last modified: 2023/01/28 18:46 by xujianglong