20

命令历史-菜鸟的成长之路

 6 years ago
source link: http://blog.51cto.com/12777709/2084034
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
history命令是查看命令历史history配置文件在root目录下的.bash_history下最大可以存1000条有一个环境变量来设置的#history-c可以清楚内存当中的命令历史但是配置文件的命令历史还是存在的当然,只有在推出终端的时候,才会写到配置文件当中环境变量的文件在/etc/profile里,可以修改存储数量#vim/etc/profile修改后#source/etc/profi

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK