mount windows网络文件夹

摘要: mount //192.168.xxx.xxx/remotefolder /localfolder -o username=Administrator,password=1234 -t smbfs而 RHEL 5 上已经不能用了(会报错:unknown filesystem type 'smbfs'),我们只需要将文件系统类型从 smbfs 改为 cifs就行了mount //192.168.xxx.xxx/remotefolder /localfolder -o username=Administrator,password=1234 -t cifs英文解释:Server M 阅读全文
posted @ 2012-02-21 21:44 JesseFang 阅读(356) 评论(0) 推荐(0)

用date做unix时间转换

摘要: unix时间转换为可识别的格式 例如,对2000转换date -d '2000 seconds 1970-01-01 UTC'date -d @2000两者是等价的,后者使用@是GNU的扩展。获取特定年月日的unix时间表现形式date +%s -d '1970-01-01 08:33:20' 阅读全文
posted @ 2012-02-21 19:45 JesseFang 阅读(262) 评论(0) 推荐(0)