[Linux] Screen的简单使用与中途退出保持运行

创建一个新的screen:

  1. screen -S test

  2. 查看刚才创建的screen:

    1. screen -ls
  3. 中途退出screen:

    1. 用ctrl+a+d退出screen,然后再×掉cmd窗口了
  4. 重新打开screen:

    1. screen -r 15659.test
  5. 使用删除命令:

    1. screen -X -S 16283.you quit

另附要进入 Docker 容器的 shell的命令:

  1. 使用 `docker exec -it <容器ID> sh` 命令进入容器。
  2. 使用 `docker exec -it <容器ID> bash` 命令进入容器。
  3. 如果需要 root 权限,可以指定 root 用户进入容器:`docker exec -it --user root <容器ID> bash`。
  4. 如果容器一启动就崩溃,要在run时手动指定容器入口点ENTRYPOINT为sh
相关推荐
江华森10 分钟前
Spring Cloud 微服务全栈实战:从 Eureka 到 Docker Compose 一文贯通
运维
江华森10 分钟前
Matplotlib 数据绘图基础入门
运维
XIAOHEZIcode12 分钟前
Ubuntu 终端美化全栈指南:Bash 到 Kitty 踩坑实录
linux·ubuntu·命令行
江华森12 分钟前
NumPy 数值计算基础入门
运维
唐青枫2 小时前
别再只会用 cron:Linux systemd Timer 定时任务实战详解
linux
AlfredZhao2 天前
生产环境里,为什么不建议把普通端口直接暴露到公网?
linux·https·443·80
戴为沐3 天前
Linux内存扩容指南
linux
zylyehuo3 天前
Linux 彻底且安全地删除文件
linux
用户805533698034 天前
主线 U-Boot 上 RK3506:和闭源 rkbin 拔河的三个隐性契约
linux·嵌入式
用户034095297914 天前
linux fcitx 5 雾凇拼音 设置在中文输入法下仍然输入英文标点
linux