| 网管联盟 | 网管论坛 | 网管u家 | 网管博客 | 网管软件 | 网管求职 | 小游戏 | 网管搜索 | 网管原创 | 网管聚合 | 网管读摘 | 网管焦点 | 世界素材 | 会员投稿 | 会员中心 |
![]() |
| Windows Linux Cisco 网络技术 数据库 黑客攻防 DotNet Java PHP 认证 新闻资讯 服务器 存储资讯 网络设备 网管学堂 技术专题 焦点 网吧频道 |
1、建立一个文件来存储
2、在终端运行history -c,清除杂乱的历史记录 中国网管联盟bitsCN.com
3、运行history -r /root/history.txt,把命令读进来作为当前bash的历史记录 网管bitscn_com
4、运行history,就得到一个整洁的命令列表了,例如:
[root@localhost windata]# history -c
网管联盟bitsCN@com
[root@localhost windata]# history -r /root/history.txt 网管u家u.bitsCN.com
[root@localhost windata]# history 中国网管论坛bbs.bitsCN.com
1 history -r /root/history.txt
网管网www.bitscn.com
2 mount -t msdos -o iocharset=gb2312 /dev/sda1 /mnt/usb 网管论坛bbs_bitsCN_com
3 mount -t vfat -o iocharset-gb2312 /dev/hda5 /mnt/windata
网管论坛bbs_bitsCN_com
4 umount /mnt/windata
5 mount -t vfat -o iocharset-gb2312 /dev/hda5 /mnt/windata 网管联盟bitsCN@com
6 cd /mnt/windata
网管联盟bitsCN@com
7 history 网管联盟bitsCN_com
[root@localhost windata]#
5、以后命令乱了,重复1-4的步骤,又可以使命令很清晰了。
|
0
|
评论加载中…