Chinaunix首页 | 论坛 | 博客
  • 博客访问: 195333
  • 博文数量: 22
  • 博客积分: 851
  • 博客等级: 准尉
  • 技术积分: 245
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-17 22:13
文章分类

全部博文(22)

文章存档

2012年(2)

2011年(6)

2010年(11)

2009年(1)

2005年(2)

我的朋友

分类: 系统运维

2011-03-09 09:42:55

光盘引导后,man命令无法使用,有时很不方便,经过搜索加测试,自己摸索出一种可以查看的方法:

TERM=vt100;export TERM
chroot /a /bin/sh
直接查看:
man pwd|less
导出文本:
方法1:man pwd|col -b>/tmp/pwd.txt

方法2:cat /usr/share/man/man1/man.1 |nroff -man|col -b >/tmp/man.txt
less /tmp/man.txt


注: chroot后 /tmp实际上是 /a/tmp,(对应solarsi系统光盘引导进单用户模式)

    more命令如果使用异常,可以试试less


阅读(705) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~