screen – 业余语言练习

screen

screen的作用是建立新的进程,关闭当前窗口,程序继续执行。非常适用于linux远程
root115@115:~/Downloads$ ls -lth
total 8.8G
-rw-r--r-- 1 root root 4.6G Mar 30 15:22 CentOS-Stream-10-latest-x86_64-dvd1.iso
-rw-r--r-- 1 root115 root115 240 Mar 30 09:15 wget
-rw-r--r-- 1 root root 819M Mar 24 12:20 CentOS-Stream-10-latest-x86_64-boot.iso
root115@115:~/Downloads$ screen -ls  //列出进程
There is a screen on:
2382.wget (Detached)
1 Socket in /home/root115/.screen.
root115@115:~/Downloads$ screen -r 2382  //查看进程
root115@115:~/Downloads$ screen -S wget  //建立进程
Published
Categorized as linux

Leave a comment

Your email address will not be published. Required fields are marked *