页面

显示标签为“linux”的博文。显示所有博文
显示标签为“linux”的博文。显示所有博文

2011-02-19

修改文件日期戳

$ touch -t yyyyMMddHHmmSS foobar.txt

2010-07-23

用rpl命令递归地替换在多个文件中的字符串

$ rpl -Rwd -x'.txt' 'old_string' 'new_string' grades/

2009-03-22

/usr/local vs. /opt

What is the difference between their usage? Self-contained programs should be put in /opt; Co-operating heavily with other packages, especially self-compiled, programs should be put in /usr/local.

2009-02-10

abstract concept modeling tool --- graphviz

An open source tool for abstract concept modeling, network scaling, or other topology related drawing: graphviz.

2009-02-03

Modify User Account Name

Use 'usermod' to modify user account name --- it's easy to modify the user full name, i.e. profile, associated with a user account name.
$ usermod -l new_account_name old_account_name

2008-07-30

查看物理内存的Linux指令

在Linux环境中查看物理内存状态的工具:
free

2008-05-01

查看网关、DNS的指令

查看网关、路由信息可以用指令route。查看DNS直接用cat指令读文件resolv.conf
$ cat /etc/resolv.conf