Chinaunix首页 | 论坛 | 博客
  • 博客访问: 147673
  • 博文数量: 13
  • 博客积分: 1510
  • 博客等级: 上尉
  • 技术积分: 480
  • 用 户 组: 普通用户
  • 注册时间: 2007-04-06 16:58
文章分类

全部博文(13)

文章存档

2011年(1)

2010年(1)

2009年(4)

2008年(7)

我的朋友

分类: LINUX

2008-04-05 13:18:54

 
Count the number of ptys in /dev dir:

# ls /dev/pty* | wc -l

and you'll see you've reached the limit. To add new ones, do this:

# cd /dev
# ./MAKEDEV pty

where N is a number corresponding to the pty batch:

0 = ptyp0...ptypf
1 = ptyq0...ptyqf
 
Most likely an increase in concurrent users logged in.
You can use finger(1) to determine who is currently logged on and on which
terminal. You could run "finger | grep -v "Login" | wc -l" to find the total
number of pseudo terminals in use (including console).

To check total number of pseudo terminals available use
"ls /dev | grep pty | wc -l"
阅读(4242) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~