debian 降级
摘要:如何由 unstable 降回 stable要把所有的套件降級至 stable,請依下列來編輯 /etc/apt/preferences 檔:Package: *Pin: release a=stablePin-Priority: 1001然後執行 "apt-get upgrade" ,因為 Pin-priority > 1000 的原因,所以會強制降級。警告你,這會在相依性上造成點小問題。 請參考debian參考手冊 6.2.5 將所有套件降級至 stable
阅读全文
svn命令在linux下的使用
摘要:转载本站文章请注明,转载自:扶凯[http://www.php-oa.com]本文链接: http://www.php-oa.com/2008/03/12/svnminglingzailinuxxiadeshiyong.html1、将文件checkout到本地目录svn checkout path(path是服务器上的目录) 例如:svn checkout svn://192.168.1.1/pro/domain 简写:svn co2、往版本库中添加新的文件svn addfile 例如:svn add test.php(添加test.php) svn add*.php(添加当前目录下所...
阅读全文
linux 下查找文件或者内容常有命令
摘要:whereis <程序名称> 查找软件的安装路径 -b 只查找二进制文件 -m 只查找帮助文件 -s 只查找源代码 -u 排除指定类型文件 -f 只显示文件名 -B <目录> 在指定目录下查找二进制文件 -M <目录> 在指定目录下查找帮助文件 -S <目录> 在指定目录下查找源代码 locate <文件名称> 在文件索引数据库中搜索文件 -d <数据库路径> 搜索指定数据库 updatedb 更新文件索引数据库 find [路径] <表达式> 查找文件 -name <表达式> 根据文件名查找文件
阅读全文
解决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 中,花括号用于将几块代码组合到一起,这一点类似
阅读全文
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
阅读全文
ubuntu 精简系统
摘要:pre:1.安装server2.~/.bashrc中force_color_prompt前去掉注释,console带颜色3. /boot/grub/grub.cfg中linux那行 ro后添加 vga=791,console为1024x7683.安装xorg or gdm34.安装gnome-core# Normal VGA console# vga = normal# VESA framebuffer console @ 1024x768x64k# vga=791# VESA framebuffer console @ 1024x768x32k# vga=790# VESA framebuf
阅读全文