07 2021 档案
摘要:我们用ls只能看到文件的大小,遇到目录,大小显示的是4k 要获取目录的大小怎么办? du命令可以查看文件或目录的大小: du -h --max-depth=1 -h:以人类可读的方式显示大小 --max-depth=1:只显示一层,如果没有这个参数的话,它会把所有子目录大小都给你算出来
阅读全文
摘要:deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted
阅读全文
摘要:js将时间戳翻译成日期格式 function timestamp2time(stamp){ var date = new Date(stamp); //时间戳为10位需*1000,时间戳为13位的话不需乘1000 console.log(" date "); console.log(date); Y
阅读全文
摘要:今天是2021年7月13日,实测Ubuntu10.04能用的源: deb http://old-releases.ubuntu.com/ubuntu lucid main restricted universe multiverse deb http://old-releases.ubuntu.co
阅读全文
摘要:菜单中的 System -> Preferences -> Startup Applications 禁用 Update Notifier 即可。
阅读全文
摘要:首先举个例子,下面这段是读use_libhdca_util程序对应pid的map得到的打印: 00110000-00263000 r-xp 00000000 fd:00 2197259 /lib/libc-2.5.so 00263000-00264000 p 00153000 fd:00 21972
阅读全文
摘要:/** * @getClientIP * @desc 获取用户 ip 地址 * @param {Object} req - 请求 */ function getClientIP(req) { return req.headers['x-forwarded-for'] || // 判断是否有反向代理
阅读全文

浙公网安备 33010602011771号