ubuntu,debian,redhat,fedora,centos

Clone Your Ubuntu installation

分类:UbuntuIf you want to create a system that is similar to a different system you have already set up, it can be difficult to remember each and every package you had installed.This method works best when you are exporting to and importing from the same distribution and, specifically, the same releasefor example, exporting from Ubuntu Dapper to Ubuntu Dapper or ubuntu edgy to ubuntu edgy. 继续阅读 »

基于 poptop 的 VPN 服务

分类:UbuntuOS: Ubuntu Gutsy
kernel: 2.26.14-server
内网网卡: 192.168.1.254
外网网卡: 172.18.11.220
pptpd : v1.3.4 继续阅读 »

vim 的语法加亮

分类:Ubuntu    Ubuntu 默认安装的 vi 是没有打开语法加亮的,首先要 sudo apt-get install vim 安装完整的 vim ,然后修改 /etc/vim/vimrc ,添加下面的代码。

“开启语法加亮
syntax on
“配色风格,如果觉得默认的不好,可以
colorscheme pablo
“设定Tab键缩进的空格数
set tabstop=4
“设定折叠方式,文本界面下好像不起作用
set foldmethod=indent

vi 用法

1.6.1  vi 的工作模式

Vi 在初始启动后首先进入编辑模式,当用户在编辑模式下键入 i, a, o 等命令之后,可进入插入模式;键入 : 可进入命名模式。在插入模式下,用户随后输入的,除 Esc 之外的任何字符均将被看成是插入到编辑缓冲区中的字符。按 Esc 之后,从插入模式切换到编辑模式。 继续阅读 »

find 的使用简单汇总

1. 按照名字找
find /home -name “*.*” -print
-name的文件命名规则可参考正则表达式

2.按照类型找
find /home -type f  -print
-type 常用值:f,文件类型;d,目录类型;l 链接类型 继续阅读 »

返回顶部