FreeBSD关闭多余的TTYV终端

2024-02-14
#Unix #FreeBSD #Unix

打开 /etc/ttys 文件,注释不用的TTYV,而后重启系统。

sudo vim /etc/ttys
# Virtual terminals
ttyv1   "/usr/libexec/getty Pc"         xterm   onifexists secure
ttyv2   "/usr/libexec/getty Pc"         xterm   onifexists secure
#ttyv3  "/usr/libexec/getty Pc"         xterm   onifexists secure
#ttyv4  "/usr/libexec/getty Pc"         xterm   onifexists secure
#ttyv5  "/usr/libexec/getty Pc"         xterm   onifexists secure
#ttyv6  "/usr/libexec/getty Pc"         xterm   onifexists secure
#ttyv7  "/usr/libexec/getty Pc"         xterm   onifexists secure
ttyv8   "/usr/local/bin/xdm -nodaemon"  xterm   off secure

参考