---
# System prepended metadata

title: linux 指令 -- Screen
tags: [screen, Linux]

---

# linux 指令 -- Screen

###### tags: `Linux` `screen`

# screen

```
screen -S [session名稱]  //創立新的screen
screen -r [session名稱]  //連接screen
screen -ls         //查看screen

screen -XS [session # you want to quit] quit  //刪除screen 

```

## screen 操作： 
```
ctrl + a 、 d  //保留工作離開screen
```

## screen 腳本指令 發送命令到screen會話
```
screen -S sandy -X screen ping www.baidu.com
```
