4/18/2008

gentoo 技巧

使用 gentoo 一段时间了, 一些比较有用的命令总结在这里:

ufed - 修改 USE
qlist - 列出包中文件
equery - 查询已安装的包或包中包含的文件等
eix - 可代替 emerge 更新查询,速度快
euse - 命令行式的 USE 编辑器
emerge -fuDv world - 更新整个系统安装的包,但仅下载不编译
emerge -avuDN world - 更新整个系统安装的包,下载并编译
emerge -p --depclean - 删除未列入 world 中的包或垃圾文件
revdep-rebuild - 重新编译依赖
eselect profile list - 列出系统中所有的 profile 文件
eselect profile set * - 设定系统 profile

xdpyinfo | grep dimensions
1024 x 768
xdpyinfo | grep resolution
116 x 116 ?

history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10
- 列出系统当前用户曾使用的命令及百分比

没有评论: