朱纯树博客
VPS测评推荐网站
cloudacead cloudacead

通过Screen实现退出终端继续运行命令

前言
有时候会有这样的需求

既不想后台运行,又怕网络或者其他原因导致终端中途断了导致没有完好执行我们想要的效果

那么,我们可以通过screen来满足这个需求

正文

一 安装screen

#Centos
yum update -y
yum install -y screen

#Debian/Ubuntu
apt update -y
apt install -y screen

非root用户安装时可在命令前加sudo

二 screen的用法

1 新建一个screen窗口

# 新建一个名为"new"的窗口
    screen -S new

2 关闭退出/不关闭退出screen窗口

#关闭退出
exit
# 不关闭退出
CTRL+A+D

3 回到screen窗口

回到名为”new”的窗口

screen -rd new

赞(0) 打赏
未经允许不得转载:VPS测评推荐网站 - 朱纯树博客 » 通过Screen实现退出终端继续运行命令

评论 39

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #45

    coursework plug creative writing coursework coursework spelling

  2. #44

    coursework in area of expertise coursework other than a-g coursework
    geography

  3. #43

    coursework geography coursework report coursework
    utd

  4. #42

    coursework degree meaning coursework helper coursework high school

  5. #41

    coursework examination coursework and thesis coursework in

  6. #40

    coursework title page coursework geography coursework in a sentence

  7. #39

    how to take clomid They include crizotinib Xalkori, ceritinib Zykadia, alectinib Alecensa, brigatinib Alunbrig, lorlatinib Lorbrena, entrectinib Rozlytrek

    refeInnob2周前 (11-19)回复
  8. #38

    J Neurosci Res 2007; 85 3 497 503 lasix drip Rigoberto, USA 2022 05 20 07 41 32

    Inpuncmut2周前 (11-18)回复
  9. #37

    To the best of our knowledge, this is the first reported case in the English literature of synchronous vulvar metastasis arising from a low grade G1 ductal breast carcinoma nolvadex while on cycle

    NofTrurry3周前 (11-11)回复