网上有太多关于VI的操作手册了,以下是我从网络上随机找到的短文,以后会把个人的经验都加入来。 vim有3中主要的模式: 1.normal mode:当进入vim时,默认的模式就是normal mode。在此模式下,无法输入任何文字,不过可以利用按键命令来执行许多操作命令,例如移动光标位置、复制、删除。 2.insert mode:进入vim输入a、i、或o键。即可进入insert mode,此模式下可以输入文字内容。 3....
Q. How do I run shell loop over set of files stored in a current directory or specified directory? A. You can use for loop easily over a set of shell file under bash or any other UNIX shell using wild card character. Using a shell variable and ...
Linux (and almost all other Unixish systems) have three user classes as follows: User (u): The owner of file Group (g): Other user who are in group (to access files) Other (o): Everyone else You can setup following mode on each files. In a Linux and UNIX set of permissions is called as mode: Read ...
Q. How do I list the contents of a tar or tar.gz file? A. GNU/tar is an archiving program designed to store and extract files from an archive file known as a tarfile. You can create a tar file or compressed tar file tar. However sometime you ...
ZIP archives are most commonly used in Windows/MS-DOS based environments. In Linux, you can use the “unzip” command to extract,list or test ZIP files. Below are the common tasks I use “unzip” for. Extract the contents of a ZIP file into it’s own directory and also create subdirectories as needed. # unzip [filename].zip Extract ...
- A new front has opened in the ongoing arms race between Apple and iPhone hackers, with one hacker group making the iPhone boot with a Linux 2.6 kernel. The announcement of the successful kernel porting was made on the Linux ...
这是我几年前在**公司工作期间一位同事给的LAMP环境安装笔记。 去机房需要 光驱(数据线) 软驱(数据线) linux安装盘 3张 redhot9 服务器主板驱动(psch-sr) 软盘 安装时需要scsi驱动程序,主板自带驱动光盘上有。:\Drivers\AIC-7901\Driver\Linux\aic79xx-2.0.5-i686-rh90.img.gz 解压缩后用rawrite工具,写到软盘上。 安装时使用命令linux dd安装 硬盘分区方式 / 1g /var 1g /usr 2g /swap 2g /home 安装组件 administrator tools; development tools; kernel development; system tools Network Server package group: networked workstation Network Management workstation ip地址配置 及相关信息 IP:211.144.143.141/142 网关:211.144.143.1 掩码:255.255.255.0 Dns : 202.106.127.1 需要网卡驱动 安装apache2 解压 tar zxvf httpd-2.0.52.tar.gz 配置 ./configure --prefix=/home/apache2 --with-mpm=worker --enable-include --enable-so --enable-rewrite --enable-deflate --enable-headers --enable-suexec --with-suexec-/home/logs/suexe.log ./configure --prefix=/home/mailapache2 --with-mpm=worker --enable-include --enable-so --enable-rewrite --enable-deflate --enable-headers make make install 编辑配置文件 vi /home/apache2/conf/httpd.conf 更改ServerName后保存退出 ServerName ...
up.down.forward.backward: ctrl + u/d ctrl + f/b H/G 0/$ add.delete.change: yy/dd p/P I/A o/O d0/d$ u:undo search: ? n/N
这是我几年前在**公司工作时一位同事给的安装笔记,呵呵 在REDHAT9.0下安装igenus bluelotus 2003.06.16 Redhat9.0+Qmail+smtp-auth+Vpopmail+MySQL+Igenus 一、安装环境及准备工作 安装Redhat9.0,安装时选取安装apache、php、mysql,可省去以后自已编译安装的麻烦,mysql要注意选取mysql-devel开发包,mysql的头文件和库文件分别在/usr/include/mysql和/usr/lib/mysql。 安装完Redhat9.0后,修改/etc/httpd/conf/httpd.conf,使web服务正常启用,为mysql添加root用户的密码。如果设置了防火墙,要打开服务器的smtp 25和pop3 110两个端口。 二、安装ucspi-tcp-0.88 1.下载相应软件及补丁,由于redhat9.0的glibc的版本问题,必须打补丁才能正常编译。 2.安装ucspi-tcp-0.88 #tar zxvf ucspi-tcp-0.88.tar.gz #cd ucspi-tcp-0.88 #patch -p1 < ../ucspi-tcp-0.88.a_record.patch #patch -p1 < ../ucspi-tcp-0.88.errno.patch #patch -p1 < ../ucspi-tcp-0.88.nobase.patch #make #make setup check 三、安装qmail 1.下载软件及补丁: wget http://cr.yp.to/software/qmail-1.03.tar.gz wget http://www.ckdhr.com/ckd/qmail-103.patch wget http://www.qmail.org/qmailqueue-patch wget http://www.shupp.org/patches/qmail-maildir++.patch wget http://qmail.te8.com/rpms/glibc-2.3.1/qmail-1.03.errno.patch wget http://qmail.te8.com/rpms/glibc-2.3.1/qmail-1.03.qmail-local.patch wget http://members.elysium.pl/brush/qmail-smtp-auth/dist/qmail-smtpd-auth-0.31.tar.gz 2.建立目录: # mkdir /var/qmail # mkdir /var/qmail/alias 3.建组及用户: # groupadd nofiles # groupadd qmail # useradd alias -g nofiles -d /var/qmail/alias -s /nonexistent # useradd qmaild -g nofiles -d /var/qmail -s ...
Install: HDisk Install C:\grldr="GRUB" find /linux kernel (hd0,4)/linux initrd (hd0,4)/initrd mv /etc/cron.daily/beagle-crawl-system /etc/cron.weekly speedup of Suse: 一是重选字体,把大部分都换成suse sans,运行速度加快 二是在控制中心-kde性能-konqueror中打开“禁用系统配置启动检查”这项服务,kde启动速度极大加快 三是到运行级别中关闭一些不必要的服务。这个就不用图了然后,就ok了,还有一些方法还没有实行,如果可能再来分享。 四是启动预加载实例,启动1就可以,如果内存足够大,也可启动十个八个的,这一项使打开各种窗口非常快。可以说是无 延迟,即点即开。 五是把splashtheme变成那个一条杠那个,就是开始是空白,然后渐渐黑到头那个,十分快。(这是对于要求美观一点的朋 友的方法) 六是把飞溅屏幕设为无,那进入桌面简直是神速(这是对不要求美观,只要求性能的朋友的方法) 七是把tty的数目减少,默认是6个,可以把后面的三个(4、5、6)去掉。 再加一条:如果你时常需要自己编译下软件的话,不妨建立一个/etc/make.conf文件。具体的内容大家可以在Google上查到。 修改/etc/modprobe.conf,修改其中的配置,禁用系统的IPv6支持。 修改SuSEFirewall的配置,禁用关于IPv6的过滤规则。 将SysConfig中的KDEEnableIPv6设置为no。 在Firefox中about:config配置中,取消IPv6支持。 KDE下GTK程序字体过小的彻底解决办法 网上到处有人反映说在KDE下GTK程序的字体都非常难看,太小了。而且相反地,在GNOME下Qt的程序字体往往又显得太大。有很多人给出了相应的解决办法。比如手动修改gtkrc文件,或者安装gtk-theme-switch之类的工具等等。我以为这些方法虽然有效,但却是治标不治本的。GTK程序和Qt程序之间的这种差异,究其原因是由GNOME和KDE默认的屏幕解析度(DPI)不一样造成的。因此对于这个问题,我有一个相当简单的解决办法: 修改/etc/X11/Xresources文件,在最后一行加上如下代码: Xft.dpi:96 也就是将屏幕的全局DPI设置为96(和Windows默认值一样),重新启动X。 这时候所有程序的字体都可以设为9号字,应该可以得到相当好的显示效果了。GTK程序和Qt程序也不会再有字体大小的差异了。