Linux
共 7 篇文章
linux释放空间问题
当linux磁盘空间满的时候,用rm -fr删除日志文件并不是一个好方法,会因为有打开文件句柄存在而导致删除文件后空间无法释放的问题,比较好的方式采用如下的命令 1.cat > **.log 很多人推荐此命令,但是很奇怪我执行的时候总是提醒我无权限。 2.cp /dev/null **.log 这个命令比较赞,强烈推荐。
2012-12-27 14:28 · Linux · Unix · Linux
linux date format
%a Abbreviated weekday. %b Abbreviated month name. %c Country-specific date and time format. %d Day of month (01-31). %h Same as %b . %j Julian day of year (001-366). %k Hour in 24-hour format, without leading zeros (0-23). %l Hour in 12-hour format, without leading zeros (1-12). %m Month of year (…
2012-10-29 16:20 · Linux
Ubuntu11个版本的名字解析
Ubuntu 4.10 - Warty Warthog (疣疣猪) Ubuntu 5.04 - Hoary Hedgehog (白发的刺猬) Ubuntu 5.10 - Breezy Badger (活泼的獾) Ubuntu 6.06 - Dapper Drake (整洁的公鸭) Ubuntu 6.10 - Edgy Eft (尖利的小蜥蜴) Ubuntu 7.04 - Feisty Fawn (烦躁不安的小鹿) Ubuntu 7.10 - Gutsy Gibbon (胆大的长臂猿) Ubuntu 8.04 - Hardy Heron (坚强的苍鹭) Ubuntu 8.10 - Intrep…
2009-10-26 16:22 · Linux · Ubuntu
cygwin & puttycyg
1.用puttycyg当客户端。用法很简单,在配置对话框中,host name填 bash --login -i 即可 2.cygwin的中文显示和输入 让bash命令行支持中文输入,vi ~/.inputrc,将下面几行的注释去掉: set meta-flag on set convert-meta off set input-meta on set output-meta on 让ls命令支持中文显示,vi ~.bashrc中,修改: alias ls -hF --show-control-chars --color=tty
2009-02-24 13:47 · Linux · Bash
解决/etc/resolv.conf 会定时被改写掉的问题
变更DHCP Client的配置文件,在特定的环节追加我们的设定. 在 /etc/dhcp3/dhclient.conf 中增加如下设定:prepend domain-name-servers , ;
2008-11-06 23:13 · Linux
Linux释放cache内存
/proc是个虚拟文档系统,我们能够通过对他的读写操作做为和kernel实体间进行通信的一种手段.也就是说能够通过修改/proc中的文档,来对当前kernel的行为做出调整.那么我们能够通过调整/proc/sys/vm/drop_caches来释放内存.操作如下: [root@server test]# cat /proc/sys/vm/drop_caches 0 首先,/proc/sys/vm/drop_caches的值,默认为0 [root@server test]# sync 手动执行sync命令(描述:sync 命令运行 sync 子例程。假如必须停止系统,则运行 sync 命令以确…
2008-11-05 11:44 · Linux · Cache · Linux