screen 是一款支持一个终端多次登录的屏幕管理器
介绍
在本教程中我们学习如何安装 screen
在 CentOS 8.
什么是 screen
screen 实用程序允许您在一台终端上进行多次登录。 对于通过 telnet 登录计算机或通过哑终端连接,但希望使用多个登录名的用户来说,Screen 非常有用。 如果您需要一个可以支持在一个终端上多次登录的屏幕管理器,请安装 screen 软件包。
我们可以用 yum
或者 dnf
安装 screen
在 CentOS 8. 在本教程中,我们讨论这两种方法,但您只需选择一种方法来安装屏幕。
安装屏幕 CentOS 8 使用dnf
更新 yum 数据库 dnf
使用以下命令。
sudo dnf makecache --refresh
输出应如下所示:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
更新 yum 数据库后,我们可以安装 screen
使用 dnf
通过运行以下命令:
sudo dnf -y install screen
安装屏幕 CentOS 8 使用百胜
更新 yum 数据库 yum
使用以下命令。
sudo yum makecache --refresh
输出应如下所示:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
更新 yum 数据库后,我们可以安装 screen
使用 yum
通过运行以下命令:
sudo yum -y install screen
如何卸载屏幕 CentOS 8
仅卸载 screen
打包我们可以使用以下命令:
屏幕上显示包装内容 CentOS 8
/etc/pam.d/screen
/etc/screenrc
/run/screen
/usr/bin/screen
/usr/lib/.build-id
/usr/lib/.build-id/9d
/usr/lib/.build-id/9d/971da281e0d0f25210a95eacb34b8f50ae478b
/usr/lib/tmpfiles.d/screen.conf
/usr/share/doc/screen
/usr/share/doc/screen/ChangeLog
/usr/share/doc/screen/FAQ
/usr/share/doc/screen/README
/usr/share/doc/screen/README.DOTSCREEN
/usr/share/info/screen.info.gz
/usr/share/licenses/screen
/usr/share/licenses/screen/COPYING
/usr/share/man/man1/screen.1.gz
/usr/share/screen
/usr/share/screen/utf8encodings
/usr/share/screen/utf8encodings/01
/usr/share/screen/utf8encodings/02
/usr/share/screen/utf8encodings/03
/usr/share/screen/utf8encodings/04
/usr/share/screen/utf8encodings/18
/usr/share/screen/utf8encodings/19
/usr/share/screen/utf8encodings/a1
/usr/share/screen/utf8encodings/bf
/usr/share/screen/utf8encodings/c2
/usr/share/screen/utf8encodings/c3
/usr/share/screen/utf8encodings/c4
/usr/share/screen/utf8encodings/c6
/usr/share/screen/utf8encodings/c7
/usr/share/screen/utf8encodings/c8
/usr/share/screen/utf8encodings/cc
/usr/share/screen/utf8encodings/cd
/usr/share/screen/utf8encodings/d6
参考
概括
在本教程中我们学习如何安装 screen
在 CentOS 8 使用 yum 和 dnf。