(1)
question:
从adobe官方网站上下载Adobe Reader 7.0.9。安装之后,选用Adobe Reader打开文件时却没有一点反应,不知道为什么?
编辑acroread文件,默认为usr/local/Adobe/Acrobat7.0/bin/acroread,
在前面加上一句 export GTK_IM_MODULE=xim (在#!/bin/sh 后面,其它的语句前面)就可以了。
(2)
若光盘中有中文目录,如何挂载?
sudo mount -t iso9660 -o iocharset=gb2312,utf8 /dev/cdrom /cdrom
sudo mount -t iso9660 -o loop MY.ISO /cdrom
sudo mount/dev/sdb1/mnt-t
vfat-o iocharset=utf8其他的一些参考:
sudo mount -t iso9660 -o iocharset=gb2312,codepage=936 /dev/cdrom /cdrom
(3)
如何关闭shell中的响铃?
set bell-style none如何使用wget镜像下载整个站点?
$ wget -m -k (-H) http://www.example.com/附:wget的一些其他用法(更详细的介绍件man wget)
$ wget -r -np -nd http://example.com/packages/
$ wget -r -np -nd --accept=iso http://example.com/centos-5/i386/
$ wget -i url.txt
$ wget -c http://example.com/really-big-file.isowget -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/.

2822

被折叠的 条评论
为什么被折叠?



