发布时间:2013-04-17 08:27:32
注:这里是bash环境,如果是csh请把export改成set 并用set用法,在bash中可以把下面内容放在~/.bashrc或者是~/.bash_profile中,如果是csh就放在~/.cshrc,如果想对所有用户生效,请放在/etc/profile中,一般这些文都有内容可以接着下面写。1,历史命令记录数100条#1,Environment variablesexport HISTSIZE=1002,PS.........【阅读全文】
发布时间:2013-01-04 15:20:30
最近偶为了写一个调整时间的shell而绞尽脑汁,结果在某一天#info data这里面看到了data -d参数的灵活用法,真是欣喜若狂。好东西要保存,整理整理: * To print the date of the day before yesterday: date --date='2 days ago' * To print the date of the day three months and one day hence:&nb......【阅读全文】