Linux 服务器(debian):TTY 6.5GiB
Linux server (debian) : TTY 6.5GiB
我是 运行 一个有 10GiB 的 VPS。
今天快满了。当我无法 update/upgrade.
时,我注意到了它
ncdu
命令显示 /dev/tty10
占用 6.5 GiB。
我怎样才能减少它?
我可以删除它吗?
ls -l | grep tty
in /dev
给我:
crw------- 1 root tty 5, 1 juil. 22 2014 console
crw-rw-rw- 1 root tty 5, 0 août 2 18:33 tty
crw------- 1 root tty 4, 0 mars 4 2011 tty0
crw-rw---- 1 root tty 4, 1 août 2 12:09 tty1
-rw-r----- 1 root adm 6990769469 août 2 18:43 tty10
crw-rw---- 1 root tty 4, 2 août 2 12:09 tty2
crw-rw---- 1 root tty 4, 3 août 2 12:09 tty3
crw-rw---- 1 root tty 4, 4 août 2 12:09 tty4
crw-rw---- 1 root tty 4, 5 août 2 12:09 tty5
crw-rw---- 1 root tty 4, 6 août 2 12:09 tty6
crw-r---wx 1 root root 3, 0 nov. 30 2014 ttyp0
crw-r---wx 1 root root 3, 1 nov. 30 2014 ttyp1
crw-r---wx 1 root root 3, 2 nov. 30 2014 ttyp2
crw-r---wx 1 root root 3, 3 nov. 30 2014 ttyp3
crw-r---wx 1 root root 3, 4 nov. 30 2014 ttyp4
crw-r---wx 1 root root 3, 5 nov. 30 2014 ttyp5
crw-r---wx 1 root root 3, 6 nov. 30 2014 ttyp6
crw-r---wx 1 root root 3, 7 nov. 30 2014 ttyp7
crw-r---wx 1 root root 3, 8 nov. 30 2014 ttyp8
crw-r---wx 1 root root 3, 9 nov. 30 2014 ttyp9
crw-r---wx 1 root root 3, 10 nov. 30 2014 ttypa
crw-r---wx 1 root root 3, 11 nov. 30 2014 ttypb
crw-r---wx 1 root root 3, 12 nov. 30 2014 ttypc
crw-r---wx 1 root root 3, 13 nov. 30 2014 ttypd
crw-r---wx 1 root root 3, 14 nov. 30 2014 ttype
crw-r---wx 1 root root 3, 15 nov. 30 2014 ttypf
重制 /dev/tty10
似乎是可行的方法:要么你有 none 开始,然后决定写入那个(丢失的)设备,或者从 /dev
.
如果您的 VPS 使用 udev,重新启动可能会自动修复(例如参见 [=17=]need to rebuild /dev 中的注释)。
我是 运行 一个有 10GiB 的 VPS。
今天快满了。当我无法 update/upgrade.
时,我注意到了它ncdu
命令显示 /dev/tty10
占用 6.5 GiB。
我怎样才能减少它? 我可以删除它吗?
ls -l | grep tty
in /dev
给我:
crw------- 1 root tty 5, 1 juil. 22 2014 console
crw-rw-rw- 1 root tty 5, 0 août 2 18:33 tty
crw------- 1 root tty 4, 0 mars 4 2011 tty0
crw-rw---- 1 root tty 4, 1 août 2 12:09 tty1
-rw-r----- 1 root adm 6990769469 août 2 18:43 tty10
crw-rw---- 1 root tty 4, 2 août 2 12:09 tty2
crw-rw---- 1 root tty 4, 3 août 2 12:09 tty3
crw-rw---- 1 root tty 4, 4 août 2 12:09 tty4
crw-rw---- 1 root tty 4, 5 août 2 12:09 tty5
crw-rw---- 1 root tty 4, 6 août 2 12:09 tty6
crw-r---wx 1 root root 3, 0 nov. 30 2014 ttyp0
crw-r---wx 1 root root 3, 1 nov. 30 2014 ttyp1
crw-r---wx 1 root root 3, 2 nov. 30 2014 ttyp2
crw-r---wx 1 root root 3, 3 nov. 30 2014 ttyp3
crw-r---wx 1 root root 3, 4 nov. 30 2014 ttyp4
crw-r---wx 1 root root 3, 5 nov. 30 2014 ttyp5
crw-r---wx 1 root root 3, 6 nov. 30 2014 ttyp6
crw-r---wx 1 root root 3, 7 nov. 30 2014 ttyp7
crw-r---wx 1 root root 3, 8 nov. 30 2014 ttyp8
crw-r---wx 1 root root 3, 9 nov. 30 2014 ttyp9
crw-r---wx 1 root root 3, 10 nov. 30 2014 ttypa
crw-r---wx 1 root root 3, 11 nov. 30 2014 ttypb
crw-r---wx 1 root root 3, 12 nov. 30 2014 ttypc
crw-r---wx 1 root root 3, 13 nov. 30 2014 ttypd
crw-r---wx 1 root root 3, 14 nov. 30 2014 ttype
crw-r---wx 1 root root 3, 15 nov. 30 2014 ttypf
重制 /dev/tty10
似乎是可行的方法:要么你有 none 开始,然后决定写入那个(丢失的)设备,或者从 /dev
.
如果您的 VPS 使用 udev,重新启动可能会自动修复(例如参见 [=17=]need to rebuild /dev 中的注释)。