解决ubuntu上网慢的方法
摘要:本文参考了以下文章: 解决ubuntu8.10上网速度慢的问题 http://www.bitscn.com/os/linux/200904/158796.html Ubuntu中Firefox解析DNS慢问题的解决方法 http://www.5dlinux.com/article/1/2007/linux_9846.html HOWTO: Persistent DNS Caching with pdnsd. http://ubuntuforums.org/showthread.php?t=331850 在ubuntu下用firefox等浏览器上网,往往比在windows下上网要慢好多,但细心.
阅读全文
awk 简单教程
摘要:第一个 awk让我们继续,开始使用 awk,以了解其工作原理。在命令行中输入以下命令:$ awk '{ print }' /etc/passwd您将会见到 /etc/passwd 文件的内容出现在眼前。现在,解释 awk 做了些什么。调用 awk 时,我们指定 /etc/passwd 作为输入文件。执行 awk 时,它依次对 /etc/passwd 中的每一行执行 print 命令。所有输出都发送到 stdout,所得到的结果与与执行catting /etc/passwd完全相同。现在,解释 { print } 代码块。在 awk 中,花括号用于将几块代码组合到一起,这一点类似
阅读全文
Unix Sed Tutorial: Advanced Sed Substitution Examples
摘要:I. Sed Substitution DelimiterAs we discussed in our previous post, we can use the different delimiters such as @ % | ; : in sed substitute command.Let us first create path.txt file that will be used in all the examples mentioned below.$ cat path.txt/usr/kbos/bin:/usr/local/bin:/usr/jbin:/usr/bin:/us
阅读全文
simple awk tutorial
摘要:simple awk tutorialwhy awk?awk is small, fast, and simple, unlike, say, perl. awk also has a clean comprehensible C-like input language, unlike, say, perl. And while it can't do everything you can do in perl, it can do most things that are actually text processing, and it's much easier to wo
阅读全文
debian 安装备份已安装软件包
摘要:备份系统已安装软件的清单,采用如下命令 (dpkg命令后的参数前是两个减号“-”):sudo dpkg --get-selections > ~/Desktop/package.selections恢复安装软件,升级系统。先将以前备份的package.selections文件拷贝到桌面,后采用如下命令:sudo dpkg --set-selections < ~/Desktop/package.selections && apt-get dselect-upgrade
阅读全文