screen命令

安裝SCREEN
[root@centos6 ~]# df
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/sda2       51475068 5052580  43801048  11% /
tmpfs            1019172      76   1019096   1% /dev/shm
/dev/sda3       51475068   53064  48800564   1% /app
/dev/sda1         999320   40364    906528   5% /boot
/dev/sr0         3878870 3878870         0 100% /media/CentOS_6.9_Final    說明光盤已掛載

[root@centos6 ~]#cd /media/CentOS_6.9_Final
[root@centos6 CentOS_6.9_Final]# ls
CentOS_BuildTag  isolinux                  RPM-GPG-KEY-CentOS-Debug-6
EFI              Packages                  RPM-GPG-KEY-CentOS-Security-6
EULA             RELEASE-NOTES-en-US.html  RPM-GPG-KEY-CentOS-Testing-6
GPL              repodata                  TRANS.TBL
images           RPM-GPG-KEY-CentOS-6
[root@centos6 CentOS_6.9_Final]# cd  Packages/
[root@centos6 Packages]# ls screen
screen-4.0.3-19.el6.x86_64.rpm
[root@centos6 Packages]# rpm -i screen-4.0.3-19.el6.x86_64.rpm
warning: screen-4.0.3-19.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
        package screen-4.0.3-19.el6.x86_64 is already installed
如果光盤沒有自動掛載,首先確保在VMware的設置中加載了光盤的iso鏡像,并勾選了已連接。
[root@centos7 ~]# df
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/sda2       48803552 3703628  45099924   8% /
devtmpfs         1001392       0   1001392   0% /dev
tmpfs            1016064      88   1015976   1% /dev/shm
tmpfs            1016064    9176   1006888   1% /run
tmpfs            1016064       0   1016064   0% /sys/fs/cgroup
/dev/sda3       48803552   32944  48770608   1% /app
/dev/sda1         972452  156004    816448  17% /boot
tmpfs             203216      12    203204   1% /run/user/0
[root@centos7 ~]# mount /dev/sr0 /media/
mount: /dev/sr0 is write-protected, mounting read-only
[root@centos7 ~]# df 
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/sda2       48803552 3703628  45099924   8% /
devtmpfs         1001392       0   1001392   0% /dev
tmpfs            1016064      88   1015976   1% /dev/shm
tmpfs            1016064    9176   1006888   1% /run
tmpfs            1016064       0   1016064   0% /sys/fs/cgroup
/dev/sda3       48803552   32944  48770608   1% /app
/dev/sda1         972452  156004    816448  17% /boot
tmpfs             203216      12    203204   1% /run/user/0
/dev/sr0         8086368 8086368         0 100% /media
[root@centos7 ~]# cd /media/
[root@centos7 media]# ls
CentOS_BuildTag  GPL       LiveOS    RPM-GPG-KEY-CentOS-7
EFI              images    Packages  RPM-GPG-KEY-CentOS-Testing-7
EULA             isolinux  repodata  TRANS.TBL
[root@centos7 media]# cd Packages/
[root@centos7 Packages]# ls screen

screen-4.1.0-0.23.20120314git3c2946.el7_2.x86_64.rpm
[root@centos7 Packages]# rpm -i screen-4.1.0-0.23.20120314git3c2946.el7_2.x86_64.rpm

screen
screen 進入screen 名字以當前終端名.主機名前綴
screen -S screenname  新建一個叫screenname的session
     screen -ls 或 –list 查看當前所有的screen
screen -r screenname 進入一個screen。
ctrl+d 或 exit 退出當前screen(會話)。
實現2個或多個頁面的遠程交流
要在同一個ip地址,鏈接同一用戶下創建頁面
 screen命令

先查在是否在不同終端
   screen命令
開啟screen會話
   screen命令
在右邊窗口中輸入screen  -ls,查看是否連接
 screen命令

在右邊窗口輸入screen –x help,左邊的窗口不影響

screen命令

實現2個窗口連接

screen命令

 

 

原創文章,作者:zenyanxiao,如若轉載,請注明出處:http://www.www58058.com/81212

(0)
zenyanxiaozenyanxiao
上一篇 2017-07-22
下一篇 2017-07-22

相關推薦

  • 20160804課堂作業

    grep正則表達式課堂作業 1、用正則表達式表示IP地址 #grep -E "(\<[1-9]|[1-9][[:digit:]]|1[[:digit:]][[:digit:]]|2[0-4][[:digit:]]|25[0-5]\>)\.(\<[[:digit:]]|[1-9][[:digit:]]|1[[:digit:]] [[…

    Linux干貨 2016-08-05
  • inode總結

    inode的介紹以及影響inode號的命令

    2017-11-27
  • 94-HAProxy

    一. HAProxy簡介 1. LB CLuster:

    2016-11-18
  • locate與find不得不說的事

    本文內容: locate與find 練習     locate與find是linux中最常用的兩種查找方式,二者各有優缺點,locate查找迅速,卻由于數據庫非實時更新,導致可能查找不全,而find由于是從指定路徑開始遍歷,速度相對較慢,卻更為準確,而且用法也更加靈活,因此find運用更加廣泛,也是本文的重點。 文件查找: locate搜…

    Linux干貨 2016-08-18
  • 馬哥教育網絡班21期-第三周課程練習

    1、列出當前系統上所有已經登錄的用戶的用戶名,注意:同一個用戶登錄多次,則只顯示一次即可。 who|cut -d" " -f1|uniq -c|awk '{print $2}' 2、取出最后登錄到當前系統的用戶的相關信息。 last |awk 'NR==1{print $0}' last |sed -n &…

    Linux干貨 2016-07-29
  • Linux第五周總結

    1、顯示當前系統上root、fedora或user1用戶的默認shell 2、找出/etc/rc.d/init.d/functions文件中某單詞后面跟一組小括號的行,形如:hello(); 3、使用echo命令輸出一個絕對路徑,使用gerp取出其基名;     擴展:取出其路徑名 4、找出ifconfig命令結果中的…

    2017-07-30
欧美性久久久久