(1)
question:
编辑acroread文件,默认为usr / local / Adobe / Acrobat7. 0 / bin / acroread,
在前面加上一句 export GTK_IM_MODULE = xim (在# !/ bin / sh 后面,其它的语句前面)就可以了。
(2)
若光盘中有中文目录,如何挂载?
其他的一些参考:
(3)
如何关闭shell中的响铃?
如何使用wget镜像下载整个站点?
附:wget的一些其他用法(更详细的介绍件man wget)
wget -c ftp://root:xxxx@192.168.0.179/clip.mp3
wget -c ftp://root@192.168.0.179/clip.mp3 --ftp-password=xxxx
wget -c ftp://192.168.0.179/clip.mp3 --ftp-user=root --ftp-password=xxxx
上面三个都是使用wget从ftp服务器192.168.0.179下载数据,用户名root,密码xxxx
Debian下如何获得源代码?
以*nix的ls命令为例:
$ which ls,找到ls位于/bin/ls。
$ dpkg -S /bin/ls,看看ls所属的包,这里是coreutils
$ apt-get source xxx包名,下载对应的源代码包,不需要sudo。
$ sudo apt-get build-dep xxx包名,获得编译该包的依赖环境。
但是,在Debian下获取linux内核的源代码也可以直接如下获取:
#apt-get install linux-source-2.6.18
查找匹配行,同时其前后n行
grep:
grep -A n 'pattern' file
grep -B n 'pattern' file
grep -C n 'pattern' file
vim下删除相应的行
:g/pattern/-n,.+nd
(注意上述方式跟如下的差别:g/pattern/-n,//+nd)
(7)
copy a cd/dvd
To make an ISO from your CD/DVD, place the media in your drive but do not mount it. If it automounts, unmount it.
dd if=/dev/dvd of=dvd.iso # for dvd dd if=/dev/cdrom of=cd.iso # for cdrom dd if=/dev/scd0 of=cd.iso # if cdrom is scsi
To make an ISO from files on your hard drive, create a directory which holds the files you want. Then use the mkisofs command.
mkisofs -o /tmp/cd.iso /tmp/directory/
This results in a file called cd.iso in folder /tmp which contains all the files and directories in /tmp/directory/.