随笔分类 -  linux

摘要:修改/etc/fstab, /etc/rc.d/rc.sysinit, /etc/rc.local等系统启动文件时误操作就会造成linux无法进入,有rescue盘可以容易修复.下述方法适合于没有rescue盘时修复系统.grub菜单中选择linux,按e,e,进入编辑模式,kernel (hd0,... 阅读全文
posted @ 2015-11-09 13:31 irun 阅读(7060) 评论(0) 推荐(0)
摘要:1. /home/lvtest/test/test.py from datetime import datetimenow=datetime.now()f=open('test.log','a')f.write('%s '%now)f.close()2. edit/etc/rc.local wit... 阅读全文
posted @ 2015-09-21 15:18 irun 阅读(239) 评论(0) 推荐(0)