1.改变默认登录语言
#vi /etc/sysconfig/i18n修改以下三行:
LANG="en_US.UTF-8"
SUPPORTED="en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"
2.网络设置
ip:修改/etc/sysconfig/network-scripts/ifcfg-eth0
dns:修改/etc/resolv.conf
netbios:修改/etc/hosts
修改完成后下次计算机重新启动时生效,如果想使网络配置立即生效,
运行service network restart
3.ls常用参数
列出文件详细信息 -l
文件反排序 -r
4.查找指定时间修改的文件
find . -mtime -n -print 查找n天内修改过的文件
find . -mtime +n -print 查找n天外修改过的文件
dbx
设置一个断点
(dbx) stop at filename: n
(dbx) file t.c
(dbx) list main
(dbx) stop in function
stop in foo(int)
Setting Data Change Breakpoints
(dbx) stop access r 0x4762
(dbx) stop access wb &speed
Stopping Execution When Variables Change
(dbx) stop change variable
Stopping Execution on a Condition
(dbx) stop cond condition
Listing Breakpoints and Traces
(dbx) status
Deleting Specific Breakpoints Using Handler ID Numbers
(dbx) delete bkID
(dbx) delete 3 5
(dbx) delete all
print expression