??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产精品久久久久婷婷老年 ,欧美一二三在线,日本在线视频不卡http://www.aygfsteel.com/mstar/category/8602.html搞Y件开发就像被强奸,如果不能反抗,׃n受它吧!zh-cnFri, 08 Oct 2010 04:49:28 GMTFri, 08 Oct 2010 04:49:28 GMT60Resizing a root LVM volumehttp://www.aygfsteel.com/mstar/archive/2010/10/07/333907.html黑灵黑灵Thu, 07 Oct 2010 08:49:00 GMThttp://www.aygfsteel.com/mstar/archive/2010/10/07/333907.htmlhttp://www.aygfsteel.com/mstar/comments/333907.htmlhttp://www.aygfsteel.com/mstar/archive/2010/10/07/333907.html#Feedback0http://www.aygfsteel.com/mstar/comments/commentRss/333907.htmlhttp://www.aygfsteel.com/mstar/services/trackbacks/333907.html

原文:http://equivocation.org/node/103


Logical volume management (LVM) is the default method of partitioning on Fedora Linux. It provides a more flexible way of partitioning disks and media on top of the traditional Linux partitions. However, in a similar manner to traditional partitions, resizing a LVM partition (or "volume" in LVM speak) is not necessarily a simple task.

Before resizing can take place the partition/volume must be unmounted (i.e. not be in use). This may be simple for some volumes, but for the root volume, which contains the running operating system, it is generally not possible to unmount it while the operating system on it is running. The usual method to get around this is to boot from a "rescue" disk/CD/DVD, which usually runs a small operating system resident in memory, and does not need or mount the root LVM volume. The Fedora install CD/DVD can be booted into a "rescue" mode. Note, during the boot of the Fedora 8 DVD in rescue mode, the option to mount the system disks is given ?this should not be done.

Shrinking the root LVM volume

In this example I want to shrink my root volume to free up some space for creating an additional LVM volume. By default the file system (usually ext2 or ext3 in Fedora) created on the LVM volume will occupy the entire volume. Before the LVM volume can be shrunk, the file system must be shrunk. This is important, without shrinking the file system, reducing the LVM volume could corrupt the file system and lead to loss of data.

Before we can resize the file system we need to gain access to the unmounted root volume. The Fedora rescue system provides all the lvm tools necessary. The LVM command vgchange changes attributes of volume groups. What needs to be "changed" to access the volume is the "availability" ?i.e. to make the kernel realize the LVM volumes are there. This can be done by the command:

#lvm vgchange -a y

Note, in rescue mode the system command is lvm and the LVM command that is run is vgchange. The -a y argument sets the availability to "y" or yes. As there are no specified LVM volume groups, this command will make all LVM volumes found available to the rescue kernel.

Once the kernel is aware of all LVM volumes they will be automatically mapped as devices. These are usually located under /dev/VolGroup (where "VolGroup" is the name of the Volume Group ?the default volume group name for a Fedora system is "VolGroup00"). There are usually a number of devices under this directory:

#ls /dev/VolGroup00/ LogVol00 LogVol01

In this example there are only two volumes on the Fedora system (LogVol00, the root volume; LogVol01 the volume used for swap). This is the LVM partitioning in a default Fedora 8 install.

Before shrinking the file system, it is good practice to check it is all in order. The e2fsck command can be used to do this:

#e2fsck -f /dev/VolGroup00/LogVol00

After the check, resize2fs can be used to shrink the file system on the LVM volume. Here I reduce the root volume to 15GB:

#resize2fs -f /dev/VolGroup00/LogVol00 15G

The e2fsck check command could be run again to make sure the, now significantly smaller, root file system is OK. The next step is to shrink the volume it sits on.

The lvreduce command reduces the size of LVM volumes. The -L option allows the new size to be explicitly given. If the option to this argument does not begin with a minus sign, it is taken as the size to reduce the volume to. For example, -L 15G will set the reduced volume size to 15 GB. Alternatively, a minus sign can precede the size option to indicate how much to reduce the volume by. For example, -L -2G will reduce the volume by 2GB. In the current example, setting the reduced volume size to 15GB is exactly what I want:

#lvm lvreduce -L15G /dev/VolGroup00/LogVol00

In this example, there is now spare/unused disk that could be turned into a new LVM volume, or added to an LVM volume that needs to grow.




黑灵 2010-10-07 16:49 发表评论
]]>
把RHEL的DVD镜像最为YUM安装?/title><link>http://www.aygfsteel.com/mstar/archive/2010/08/24/329790.html</link><dc:creator>黑灵</dc:creator><author>黑灵</author><pubDate>Tue, 24 Aug 2010 07:41:00 GMT</pubDate><guid>http://www.aygfsteel.com/mstar/archive/2010/08/24/329790.html</guid><wfw:comment>http://www.aygfsteel.com/mstar/comments/329790.html</wfw:comment><comments>http://www.aygfsteel.com/mstar/archive/2010/08/24/329790.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/mstar/comments/commentRss/329790.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/mstar/services/trackbacks/329790.html</trackback:ping><description><![CDATA[最q项目在用RHEL, 但是我们开发用的RHELq入不了(jin)RHN. 所以安装Y仉常费?<br /> (我是灰常灰常的怀念Ubuntu?<br /> 今天在网上找C(jin)一个方法可以把DVD镜像做成yum?<br /> q下安装软g方便多了(jin), 虽然很多软g比较旧或者没?<br /> <br /> 所有下载镜? 自己到RH|站下蝲.<br /> 然后mount<br /> <br /> <div style="background-color: #eeeeee; font-size: 13px; border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #000000;">mkdir </span><span style="color: #000000;">/</span><span style="color: #000000;">mnt</span><span style="color: #000000;">/</span><span style="color: #000000;">iso<br /> mount </span><span style="color: #000000;">-</span><span style="color: #000000;">t iso9660 </span><span style="color: #000000;">-</span><span style="color: #000000;">o loop rhel</span><span style="color: #000000;">-</span><span style="color: #000000;">5.5</span><span style="color: #000000;">.iso </span><span style="color: #000000;">/</span><span style="color: #000000;">mnt</span><span style="color: #000000;">/</span><span style="color: #000000;">iso <br /> </span></div> <br /> 然后安装createrepo<br /> <br /> <div style="background-color: #eeeeee; font-size: 13px; border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #000000;">rpm </span><span style="color: #000000;">-</span><span style="color: #000000;">ihv createrepo</span><span style="color: #000000;">-</span><span style="color: #000000;">0.4</span><span style="color: #000000;">.</span><span style="color: #000000;">4</span><span style="color: #000000;">-</span><span style="color: #000000;">2</span><span style="color: #000000;">.fc6.noarch.rpm</span></div> q个RPM自己在网上找? 应该很容易找?<br /> <br /> <div style="background-color: #eeeeee; font-size: 13px; border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #000000;">mkdir </span><span style="color: #000000;">/</span><span style="color: #000000;">home</span><span style="color: #000000;">/</span><span style="color: #000000;">blah</span><span style="color: #000000;">/</span><span style="color: #000000;">some_dir<br /> cd </span><span style="color: #000000;">/</span><span style="color: #000000;">home</span><span style="color: #000000;">/</span><span style="color: #000000;">blah</span><span style="color: #000000;">/</span><span style="color: #000000;">some_dir<br /> createrepo </span><span style="color: #000000;">-</span><span style="color: #000000;">vpo </span><span style="color: #000000;">/</span><span style="color: #000000;">home</span><span style="color: #000000;">/</span><span style="color: #000000;">blah</span><span style="color: #000000;">/</span><span style="color: #000000;">some_dir </span><span style="color: #000000;">/</span><span style="color: #000000;">mnt</span><span style="color: #000000;">/</span><span style="color: #000000;">iso<br /> cd </span><span style="color: #000000;">/</span><span style="color: #000000;">home</span><span style="color: #000000;">/</span><span style="color: #000000;">blah</span><span style="color: #000000;">/</span><span style="color: #000000;">some_dir<br /> ln </span><span style="color: #000000;">-</span><span style="color: #000000;">s </span><span style="color: #000000;">/</span><span style="color: #000000;">mnt</span><span style="color: #000000;">/</span><span style="color: #000000;">iso Server</span></div> <br /> 然后?etc/yum.repos.d目录下创Z个文?dvd.repo<br /> 里面内容如下:<br /> <div style="background-color: #eeeeee; font-size: 13px; border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #000000;">[dvd]<br /> name</span><span style="color: #000000;">=</span><span style="color: #000000;">RHEL5.</span><span style="color: #000000;">5</span><span style="color: #000000;"> DVD<br /> baseurl</span><span style="color: #000000;">=</span><span style="color: #000000;">file:</span><span style="color: #808080;">///</span><span style="color: #008000;">home/blah/some_dir</span><span style="color: #808080;"><br /> </span><span style="color: #000000;">enabled</span><span style="color: #000000;">=</span><span style="color: #000000;">1</span><span style="color: #000000;"><br /> gpgcheck</span><span style="color: #000000;">=</span><span style="color: #000000;">0</span></div> <br /> 最?br /> yum update<br /> <img src ="http://www.aygfsteel.com/mstar/aggbug/329790.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/mstar/" target="_blank">黑灵</a> 2010-08-24 15:41 <a href="http://www.aygfsteel.com/mstar/archive/2010/08/24/329790.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>我的ubuntu 常用软ghttp://www.aygfsteel.com/mstar/archive/2010/08/08/328245.html黑灵黑灵Sun, 08 Aug 2010 08:45:00 GMThttp://www.aygfsteel.com/mstar/archive/2010/08/08/328245.htmlhttp://www.aygfsteel.com/mstar/comments/328245.htmlhttp://www.aygfsteel.com/mstar/archive/2010/08/08/328245.html#Feedback0http://www.aygfsteel.com/mstar/comments/commentRss/328245.htmlhttp://www.aygfsteel.com/mstar/services/trackbacks/328245.html audacious



黑灵 2010-08-08 16:45 发表评论
]]>
[ZZ]Linux更改文g旉http://www.aygfsteel.com/mstar/archive/2009/09/25/296404.html黑灵黑灵Fri, 25 Sep 2009 03:27:00 GMThttp://www.aygfsteel.com/mstar/archive/2009/09/25/296404.htmlhttp://www.aygfsteel.com/mstar/comments/296404.htmlhttp://www.aygfsteel.com/mstar/archive/2009/09/25/296404.html#Feedback0http://www.aygfsteel.com/mstar/comments/commentRss/296404.htmlhttp://www.aygfsteel.com/mstar/services/trackbacks/296404.html touch [-acdmt]
文g参数Q?a : 仅修改access time?
-c : 仅修Ҏ(gu)_(d)而不建立文g?
-d : 后面可以接日期,也可以?--date="日期或时?
-m : 仅修改mtime?
-t : 后面可以接时_(d)格式?[YYMMDDhhmm]

黑灵 2009-09-25 11:27 发表评论
]]>
[ZZ]Linux定时dpȝCron入门http://www.aygfsteel.com/mstar/archive/2008/07/21/216330.html黑灵黑灵Mon, 21 Jul 2008 04:42:00 GMThttp://www.aygfsteel.com/mstar/archive/2008/07/21/216330.htmlhttp://www.aygfsteel.com/mstar/comments/216330.htmlhttp://www.aygfsteel.com/mstar/archive/2008/07/21/216330.html#Feedback0http://www.aygfsteel.com/mstar/comments/commentRss/216330.htmlhttp://www.aygfsteel.com/mstar/services/trackbacks/216330.htmlcron是一个linux下的定时执行工具Q可以在无需人工q预的情况下q行作业。由于Cron 是Linux的内|服务,但它不自动v来,可以用以下的Ҏ(gu)启动、关闭这个服务:(x)

/sbin/service crond start //启动服务

/sbin/service crond stop //关闭服务

/sbin/service crond restart //重启服务

/sbin/service crond reload //重新载入配置

你也可以这个服务在pȝ启动的时候自动启动:(x)

?etc/rc.d/rc.localq个脚本的末֊上:(x)

/sbin/service crond start

现在Cronq个服务已经在进E里面了(jin)Q我们就可以用这个服务了(jin)QCron服务提供以下几种接口供大家用:(x)

1.直接用crontab命o(h)~辑

cron服务提供crontab命o(h)来设定cron服务的,以下是这个命令的一些参C说明Q?/p>

crontab -u //讑֮某个用户的cron服务Q一般root用户在执行这个命令的时候需要此参数

crontab -l //列出某个用户cron服务的详l内?/p>

crontab -r //删除没个用户的cron服务

crontab -e //~辑某个用户的cron服务

比如说root查看自己的cron讄Qcrontab -u root -l

再例如,root惛_除fred的cron讄Qcrontab -u fred -r

在编辑cron服务Ӟ~辑的内Ҏ(gu)一些格式和U定Q输入:(x)crontab -u root -e

q入vi~辑模式Q编辑的内容一定要W合下面的格式:(x)*/1 * * * * ls >> /tmp/ls.txt

q个格式的前一部分是对旉的设定,后面一部分是要执行的命令,如果要执行的命o(h)太多Q可以把q些命o(h)写到一个脚本里面,然后在这里直接调用这个脚 本就可以?jin),调用的时候记得写出命令的完整路径。时间的讑֮我们有一定的U定Q前面五?号代表五个数字,数字的取D围和含义如下Q?/p>

分钟 Q?-59Q?/p>

時 Q?-23Q?/p>

日期 Q?-31Q?/p>

月䆾 Q?-12Q?/p>

星期 Q?-6Q?/0代表星期?/p>

除了(jin)数字q有几个个特D的W号是"*"?/"?-"?,"Q?代表所有的取D围内的数字,"/"代表每的意?"*/5"表示?个单位,"-"代表从某个数字到某个数字,","分开几个L的数字。以下D几个例子说明问题Q?/p>

每天早上6?/p>

0 6 * * * echo "Good morning." >> /tmp/test.txt //注意单纯echoQ从屏幕上看不到M输出Q因为cron把Q何输出都email到root的信׃(jin)?/p>

每两个小?/p>

0 */2 * * * echo "Have a break now." >> /tmp/test.txt

晚上11点到早上8点之间每两个时Q早上八?/p>

0 23-7/2Q? * * * echo "Have a good dreamQ)(j)" >> /tmp/test.txt

每个月的4号和每个C拜的礼拜一到礼拜三的早?1?/p>

0 11 4 * 1-3 command line

1?日早??/p>

0 4 1 1 * command line

每次~辑完某个用L(fng)cron讄后,cron自动?var/spool/cron下生成一个与此用户同名的文gQ此用户的cron信息都记录在 q个文g中,q个文g是不可以直接~辑的,只可以用crontab -e 来编辑。cron启动后每q一份钟Mơ这个文Ӟ(g)查是否要执行里面的命令。因此此文g修改后不需要重新启动cron服务?/p>

2.~辑/etc/crontab 文g配置cron

cron服务每分钟不仅要M?var/spool/cron内的所有文Ӟq需要读一?etc/crontab,因此我们配置q个文g也能q? ?cron服务做一些事情。用crontab配置是针Ҏ(gu)个用L(fng)Q而编?etc/crontab是针对系l的d。此文g的文件格式是Q?/p>

SHELL=/bin/bash

PATH=/sbin:/bin:/usr/sbin:/usr/bin

MAILTO=root //如果出现错误Q或者有数据输出Q数据作为邮件发l这个帐?/p>

HOME=/ //使用者运行的路径,q里是根目录

# run-parts

01 * * * * root run-parts /etc/cron.hourly //每小时执?etc/cron.hourly内的脚本

02 4 * * * root run-parts /etc/cron.daily //每天执行/etc/cron.daily内的脚本

22 4 * * 0 root run-parts /etc/cron.weekly //每星期执?etc/cron.weekly内的脚本

42 4 1 * * root run-parts /etc/cron.monthly //每月L?etc/cron.monthly内的脚本

大家注意"run-parts"q个参数?jin),如果Lq个参数的话Q后面就可以写要q行的某个脚本名Q而不是文件夹名了(jin)?/p>

黑灵 2008-07-21 12:42 发表评论
]]>
调整更改ubuntu时区,旉,localehttp://www.aygfsteel.com/mstar/archive/2008/07/01/ubuntu_set_time_timezone.html黑灵黑灵Tue, 01 Jul 2008 06:02:00 GMThttp://www.aygfsteel.com/mstar/archive/2008/07/01/ubuntu_set_time_timezone.htmlhttp://www.aygfsteel.com/mstar/comments/211880.htmlhttp://www.aygfsteel.com/mstar/archive/2008/07/01/ubuntu_set_time_timezone.html#Feedback4http://www.aygfsteel.com/mstar/comments/commentRss/211880.htmlhttp://www.aygfsteel.com/mstar/services/trackbacks/211880.html更改时区Q时?/h1>
执行
tzselect
按照提示q行选择时区
sudo cp /usr/share/zoneinfo/Asia/ShangHai /etc/localtime
执行
sudo ntpdate cn.pool.ntp.org
cn.pool.ntp.org是位于中国的公共NTP服务器,用来同步你的旉


sudo date -s 20080701

更在locale


修改/var/lib/locales/supported.d/local

比如:
  en_US.UTF-8 UTF-8
  zh_CN.UTF-8 UTF-8
  zh_CN.GBK GBK
  zh_CN GB2312

然后q行locale-gen可以了(jin)?br />
或sudo dpkg-reconfigure locales

怎样讑֮locale呢?


讑֮locale是讑֮12大类的locale分类属性,?12个LC_*。除?jin)?2个变量可以设定以外,Z(jin)便v见,q有两个变量QLC_ALL和LANG。它们之间有一个优先的关p:(x)
LC_ALL>LC_*>LANG
可以q么_(d)LC_ALL是最上讑֮或者强制设定,而LANG是默认设定倹{?br />1、如果你讑֮?jin)LC_ALLQzh_CN.UTF-8Q那么不LC_*和LANG讑֮成什么|它们都会(x)被强制服从LC_ALL的设定,成ؓ(f) zh_CN.UTF-8?br />2、假如你讑֮?jin)LANGQzh_CN.UTF-8Q而其他的LC_*=en_US.UTF-8Qƈ且没有设定LC_ALL的话Q那么系l的locale讑֮以LC_*=en_US.UTF-8?br />3、假如你讑֮?jin)LANGQzh_CN.UTF-8Q而其他的LC_*Q和LC_ALL均未讑֮的话Q系l会(x)LC_*讑֮成默认|也就是LANG的?zh_CN.UTF-8 ?br />4、假如你讑֮?jin)LANGQzh_CN.UTF-8Q而其他的LC_CTYPE=en_US.UTF-8Q其他的LC_*Q和LC_ALL均未讑֮的话Q那么系l的locale讑֮是QLC_CTYPE=en_US.UTF-8Q其余的 LC_COLLATEQLC_MESSAGES{等均会(x)采用默认|也就是LANG的|也就是LC_COLLATEQLC_MESSAGESQ……= LC_PAPERQLANGQzh_CN.UTF-8?br />
所以,locale是这栯定的Q?br />1、如果你需要一个纯中文的系l的话,讑֮LC_ALL= zh_CN.XXXXQ或者LANG= zh_CN.XXXX都可以,当然你可以两个都讑֮Q但正如上面所ԌLC_ALL的值将覆盖所有其他的locale讑֮Q不要作无用功?br />2、如果你只想要一个可以输入中文的环境Q而保持菜单、标题,pȝ信息{等文界面,那么只需要设?LC_CTYPEQzh_CN.XXXXQLANG=en_US.XXXX可以了(jin)。这样LC_CTYPEQzh_CN.XXXXQ?LC_COLLATEQLC_MESSAGESQ……= LC_PAPERQLANGQen_US.XXXX?




黑灵 2008-07-01 14:02 发表评论
]]>
update-rc.d详解 Debian/Ubuntupȝ启动脚本http://www.aygfsteel.com/mstar/archive/2008/06/20/update_rc_d_example.html黑灵黑灵Fri, 20 Jun 2008 08:04:00 GMThttp://www.aygfsteel.com/mstar/archive/2008/06/20/update_rc_d_example.htmlhttp://www.aygfsteel.com/mstar/comments/209480.htmlhttp://www.aygfsteel.com/mstar/archive/2008/06/20/update_rc_d_example.html#Feedback0http://www.aygfsteel.com/mstar/comments/commentRss/209480.htmlhttp://www.aygfsteel.com/mstar/services/trackbacks/209480.htmlupdate-rc.d详解 Debianpȝ启动脚本
Insert links using the defaults:
  update-rc.d foobar defaults

Equivalent command using explicit argument sets:
  update-rc.d foobar start 20 2 3 4 5 . stop 20 0 1 6 .

More typical command using explicit argument sets:
  update-rc.d foobar start 30 2 3 4 5 . stop 70 0 1 6 .

Remove  all  links  for  a  script  (assuming  foobar  has been deleted
already):
  update-rc.d foobar remove

Example of disabling a service:
  update-rc.d -f foobar remove
  update-rc.d foobar stop 20 2 3 4 5 .

Example of a command for installing a  system  initialization-and-shut?br />down script:
  update-rc.d foobar start 45 S . start 31 0 6 .

Example of a command for disabling a system initialization-and-shutdown
script:
  update-rc.d -f foobar remove
  update-rc.d foobar stop 45 S .

修改LINUX默认启动U别

# 0 - 停机Q千万不要把initdefault讄? Q?
# 1 - 单用h?
# 2 - 多用P但是没有NFS
# 3 - 完全多用h?
# 4 - 没有用到
# 5 - X11
# 6 - 重新启动Q千万不要把initdefault讄? Q?
# 对各个运行的详l解释:(x)
0 为停机,机器关闭?
1 为单用户模式Q就像Win9x下的安全模式cM?
2 为多用户模式Q但是没有NFS支持?
3 为完整的多用h式,是标准的q行U?
4 一般不用,在一些特D情况下可以用它来做一些事情。例如在W记本电(sh)脑的甉|用尽Ӟ可以切换到这个模式来做一些设|?
5 是X11Q进到X Windowpȝ?jin)?
6 为重启,q行init 6机器׃(x)重启?

修改U别
vi /etc/inittab
把id:3:initdefault:中的3改ؓ(f)5是默认q入囑Ş界面?


黑灵 2008-06-20 16:04 发表评论
]]>
[ZZ]Linux date 命o(h)使用http://www.aygfsteel.com/mstar/archive/2007/06/09/123117.html黑灵黑灵Sat, 09 Jun 2007 15:31:00 GMThttp://www.aygfsteel.com/mstar/archive/2007/06/09/123117.htmlhttp://www.aygfsteel.com/mstar/comments/123117.htmlhttp://www.aygfsteel.com/mstar/archive/2007/06/09/123117.html#Feedback0http://www.aygfsteel.com/mstar/comments/commentRss/123117.htmlhttp://www.aygfsteel.com/mstar/services/trackbacks/123117.htmldate命o(h)

  date命o(h)的功能是昄和设|系l日期和旉?

  该命令的一般格式ؓ(f)Q?date [选项] 昄旉格式Q以+开_(d)后面接格式)(j)

  date 讄旉格式

  命o(h)中各选项的含义分别ؓ(f)Q?

  -d datestr, --date datestr 昄由datestr描述的日?

  -s datestr, --set datestr 讄datestr 描述的日?

  -u, --universal 昄或设|通用旉

旉?

  % H 时Q?0..23Q?

  % I 时Q?1..12Q?

  % k 时Q?..23Q?

  % l 时Q?..12Q?

  % M 分(00..59Q?

  % p 昄出AM或PM

  % r 旉QhhQmmQss AM或PMQ,12时

  % s ?970q???0Q?0Q?0到目前经历的U数

  % S U(00..59Q?

  % T 旉Q?4时Ӟ(j)Qhh:mm:ssQ?

  % X 昄旉的格式(QH:QM:QSQ?

  % Z 时区 日期?

  % a 星期几的Uͼ Sun..SatQ?

  % A 星期几的全称Q?Sunday..SaturdayQ?

  % b 月的UͼJan..DecQ?

  % B 月的全称QJanuary..DecemberQ?

  % c 日期和时_(d) Mon Nov 8 14Q?2Q?6 CST 1999Q?

  % d 一个月的第几天Q?1..31Q?

  % D 日期QmmQddQyyQ?

  % h ?b选项相同

  % j 一q的W几天(001..366Q?

  % m 月(01..12Q?

  % w 一个星期的W几天(0代表星期天)(j)

  % W 一q的W几个星期(00..53Q星期一为第一天)(j)

  % x 昄日期的格式(mm/dd/yyQ?

  % y q的最后两个数字( 1999则是99Q?

  % Y q_(d)例如Q?970Q?996{)(j)

  需要特别说明的是,只有用户才能用date命o(h)讄旉Q一般用户只能用date命o(h)昄旉?

  ?Q用指定的格式显C时间?

  $ date ?This date now is =>%x Qtime is now =>%X Qthank you !'

  This date now is =>11/12/99 Qtime is now =>17:53:01 Qthank you !

  ?Q用预定的格式显C当前的旉?

  # date

  Fri Nov 26 15Q?0Q?8 CST 1999

  ?Q设|时间ؓ(f)下午14?6分?

  # date -s 14:36:00

  Fri Nov 26 14Q?5Q?0 CST 1999

  ?Q设|时间ؓ(f)1999q?1?8受?

  # date -s 991128

  Sun Nov 28 00Q?0Q?0 CST 1999
      ?Q设|一天前
     date --date "1 days ago" +"%Y-%m-%d"



黑灵 2007-06-09 23:31 发表评论
]]>
VI常用命o(h)整理--转蝲http://www.aygfsteel.com/mstar/archive/2007/05/23/119439.html黑灵黑灵Wed, 23 May 2007 09:04:00 GMThttp://www.aygfsteel.com/mstar/archive/2007/05/23/119439.htmlhttp://www.aygfsteel.com/mstar/comments/119439.htmlhttp://www.aygfsteel.com/mstar/archive/2007/05/23/119439.html#Feedback0http://www.aygfsteel.com/mstar/comments/commentRss/119439.htmlhttp://www.aygfsteel.com/mstar/services/trackbacks/119439.html转蝲自http://www.eastgame.net/

点击按原始大查看图? border=

  • ★命令模?/b>
    • Ud光标
      • h ?向左方向?? ?光标向左Ud一个字?/b>
      • j ?向下方向?? ?光标向下Ud一个字?/b>
      • k ?向上方向?? ?光标向上Ud一个字?/b>
      • l ?向右方向?? ?光标向右Ud一个字?/b>
      • [Ctrl] + [f] ?屏幕『向下』移动一,相当?[Page Down]按键
      • [Ctrl] + [ b ] ?屏幕『向上』移动一,相当?[Page Up] 按键
      • n<space> ?n 表示『数字』。按下数字后再按I白鍵,光标?x)向右移动这一行的 n 个字?/b>
      • 0 ?数字?0 』:(x)Ud到这一行的最前面字元?/b>  
      • $ ?Ud到这一行的最后面字元?/b>
      • G ?Ud到这个文件的最后一?/b>
      • nG ?n 为数字。移动到q个文g的第 n ?可配?:set nu)
      • gg ?Ud到这个文件的W一行,相当?1G
      • n<Enter> ?n 为数字。光标向下移?n ?/b>


    • 查找与替?/b>
      • /word ?向光标之下查找一个名UCؓ(f) word 的字W串。如x?eric4ever 字符Ԍ输入 /eric4ever 卛_
      • ?word ?向光标之上查找一个名UCؓ(f) word 的字W串
      • n ?『重复前一个查扄动作?/b>
      • N ??n 刚好相反Qؓ(f)『反向』进行前一个查扑֊?
      • :n1,n2s/word1/word2/g ?n1 ?n2 均ؓ(f)数字。在W?n1 ?n2 行之间查?word1 字符Ԍq将该字W串替换?word2。如Q在 1 ?9 行之间查?eric4ever q替换ؓ(f) ERIC4EVER 则:(x)?1,9s/eric4ever/ERIC4EVER/g?/b>
      • :1,$s/word1/word2/g ?从第一行到最后一行查?word1 字符Ԍq将该字W串替换?word2
      • :1,$s/word1/word2/gc ?从第一行到最后一行查?word1 字符Ԍq将该字W窗替换?word2Q替换前昄提示对话框是否确认替?/b>


    • 删除、复制与_脓(chung)
      • x, X ?在一行字当中Qx 为向后刪除一个字?(相当?[del] 按键)Q?X 为向前刪除一个字?相当?[backspace] 按键)
      • dd ?刪除光标所在的那一整列
      • ndd ?n 为数字。刪除光标所在的向下 n ?/b>
      • yy ?复制光标所在的那一?/b>
      • nyy ?n 为数字。复制光标所在的向下 n ?/b>
      • p, P ?p 为将已复制的内容_脓(chung)在光标下一行上QP 则ؓ(f)_脓(chung)在光标的上一?/b>
      • u ?q原前一个动?/b>
      • [Ctrl]+r ?重做上一个动?/b>
      • . ?数点,意思是重复前一个动?/b>


  • ★编辑模?/b>
    • i, I ?插入Q在目前的光标所在处插入输入的文字,已存在的文字?x)向后退Q?其中Q?i 为『从目前光标所在处插入』, I 为『在目前所在行的第一個非I白字元处开始插入?/b>
    • a, A ?a 为『从目前光标所在的下一个字元处开始插入』, A 为『从光标所在行的最后一个字元处开始插入?/b>
    • o, O ?o 为『在目前光标所在的下一行处插入新的一行』, O 为『在目前光标所在处的上一行插入新的一行?/b>
    • r, R ?r 为『取代光标所在的那一个字元』, R 为『一直取代光标所在的文字Q直到按?ESC 为止?/b>
    • Esc ?退出编辑模式,回到一般模式中

  • ★末行指令模?/b>
    • :w ?编辑的文g写入到硬盘上
    • :q ?退?vi
    • :wq ?保存后退出,若ؓ(f) :wq! 则ؓ(f)强制保存为退?/b>
    • :set nu ?昄行号
    • :set nonu ?取消昄行号

补充

光标控制命o(h)

命o(h) 光标Ud

h或^h 向左UM个字W?

j或^j或^n 向下UM?

k或^p 向上UM?

l或空?向右UM个字W?

G Ud文g的最后一?

nG Ud文g的第n?

w Ud下一个字的开?

W Ud下一个字的开_(d)忽略标点W号

b Ud前一个字的开?

B Ud前一个字的开_(d)忽略标点W号

L Ud屏幕的最后一?

M Ud屏幕的中间一?

H Ud屏幕的第一?

e Ud下一个字的结?

E Ud下一个字的结,忽略标点W号

( Ud句子的开?

) Ud句子的结?

{ UdD落的开?

} Ud下一个段落的开?

0或| Ud当前行的W一?

n| Ud当前行的Wn?

^ Ud当前行的W一个非I字W?

$ Ud当前行的最后一个字W?

+或return Ud下一行的W一个字W?

- Ud前一行的W一个非I字W?

在vi中添加文?

命o(h) 插入动作

a 在光标后插入文本

A 在当前行插入文本

i 在光标前插入文本

I 在当前行前插入文?

o 在当前行的下Ҏ(gu)入新?

O 在当前行的上Ҏ(gu)入新?

:r file d文gfile内容Qƈ插在当前行后

:nr file d文gfile内容Qƈ插在Wn行后

escape 回到命o(h)模式

^v char 插入时忽略char的指定意义,q是Z(jin)插入Ҏ(gu)字符

在vi中删除文?

命o(h) 删除操作

x 删除光标处的字符Q可以在x前加上需要删除的字符数目

nx 从当前光标处往后删除n个字W?

X 删除光标前的字符Q可以在X前加上需要删除的字符数目

nX 从当前光标处往前删除n个字W?

dw 删至下一个字的开?

ndw 从当前光标处往后删除n个字

dG 删除行,直到文gl束

dd 删除整行

ndd 从当前行开始往后删?

db 删除光标前面的字

ndb 从当前行开始往前删除n?

:n,md 从第m行开始往前删除n?

d或d$ 从光标处删除到行?

dcursor_command 删除臛_标命令处Q如dG从当胆行删除x件的末尾

^h或backspace 插入Ӟ删除前面的字W?

^w 插入Ӟ删除前面的字

修改vi文本

每个命o(h)前面的数字表C命o(h)重复的次?

命o(h) 替换操作

rchar 用char替换当前字符

R text escape 用text替换当前字符直到换下Esc?

stext escape 用text代替当前字符

S或cctext escape 用text代替整行

cwtext escape 当前字改ؓ(f)text

Ctext escape 当前行余下的改为text

cG escape 修改x件的末尾

ccursor_cmd text escape 从当前位|处到光标命令位|处都改为text

在vi中查找与替换

命o(h) 查找与替换操?

/text 在文件中向前查找text

?text 在文件中向后查找text

n 在同一方向重复查找

N 在相反方向重复查?

ftext 在当前行向前查找text

Ftext 在当前行向后查找text

ttext 在当前行向前查找textQƈ光标定位在text的第一个字W?

Ttext 在当前行向后查找textQƈ光标定位在text的第一个字W?

:set ic 查找时忽略大写

:set noic 查找时对大小写敏?

:s/oldtext/newtext 用newtext替换oldtext

:m,ns/oldtext/newtext 在m行通过nQ用newtext替换oldtext

& 重复最后的:s命o(h)

:g/text1/s/text2/text3 查找包含text1的行Q用text3替换text2

:g/text/command 在所有包含text的行q行command所表示的命?

:v/text/command 在所有不包含text的行q行command所表示的命?

在vi中复制文?

命o(h) 复制操作

yy 当前行的内Ҏ(gu)入(f)时缓冲区

nyy n行的内容攑օ临时~冲?

p (f)时缓冲区中的文本攑օ光标?

P (f)时缓冲区中的文本攑օ光标?

"(a-z)nyy 复制n行放入名字ؓ(f)圆括号内的可命名~冲区,省略n表示当前?

"(a-z)ndd 删除n行放入名字ؓ(f)圆括号内的可命名~冲区,省略n表示当前?

"(a-z)p 名字ؓ(f)圆括L(fng)可命名缓冲区的内Ҏ(gu)入当前行?

"(a-z)P 名字ؓ(f)圆括L(fng)可命名缓冲区的内Ҏ(gu)入当前行?

在vi中撤消与重复

命o(h) 撤消操作

u 撤消最后一ơ修?

U 撤消当前行的所有修?

. 重复最后一ơ修?

, 以相反的方向重复前面的f、F、t或T查找命o(h)

; 重复前面的f、F、t或T查找命o(h)

"np 取回最后第nơ的删除(~冲Z存有一定次数的删除内容Q一般ؓ(f)9)

n 重复前面??查找命o(h)

N 以相反方向重复前面的/?命o(h)

保存文本和退出vi

命o(h) 保存?或退出操?

:w 保存文g但不退出vi

:w file 修改保存在file中但不退出vi

:wq或ZZ?x 保存文gq出vi

:q! 不保存文Ӟ退出vi

:e! 攑ּ所有修改,从上ơ保存文件开始再~辑

vi中的选项

选项 作用

:set all 打印所有选项

:set nooption 关闭option选项

:set nu 每行前打印行?

:set showmode 昄是输入模式还是替换模?

:set noic 查找时忽略大写

:set list 昄制表W?^I)和行?

:set ts=8 为文本输入设|tab stops

:set window=n 讄文本H口昄n?

vi的状?

选项 作用

:.= 打印当前行的行号

:= 打印文g中的行数

^g 昄文g名、当前的行号、文件的总行数和文g位置的百分比

:l 使用字母"l"来显C多的Ҏ(gu)字符Q如制表W和换行W?

在文本中定位D落和放|标?

选项 作用

{ 在第一列插入{来定义一个段?

[[ 回到D落的开头处

]] 向前Ud下一个段落的开头处

m(a-z) 用一个字母来标记当前位置Q如用mz表示标记z

'(a-z) 光标移动到指定的标讎ͼ如用'z表示Ud到z

在vi中连接行

选项 作用

J 下一行连接到当前行的末尾

nJ q接后面n?

光标攄与屏q调?

选项 作用

H 光标移动到屏幕的顶?

nH 光标移动到屏幕行下的Wn?

M 光标移动到屏幕的中?

L 光标移动到屏幕的底?

nL 光标移动到屏幕底行上的Wn?

^e(ctrl+e) 屏q上滚一?

^y 屏q下滚一?

^u 屏q上滚半?

^d 屏q下滚半?

^b 屏q上滚一?

^f 屏q下滚一?

^l 重绘屏幕

z-return 当前行|ؓ(f)屏幕的顶?

nz-return 当前行下的Wn行置为屏q的行

z. 当前行|ؓ(f)屏幕的中?

nz. 当前行上的Wn行置为屏q的中央

z- 当前行|ؓ(f)屏幕的底?

nz- 当前行上的Wn行置为屏q的底行

vi中的shell转义命o(h)

选项 作用

:!command 执行shell的command命o(h)Q如:!ls

:!! 执行前一个shell命o(h)

:r!command dcommand命o(h)的输入ƈ插入Q如:r!ls?x)先执行lsQ然后读入内?

:w!command 当前已~辑文g作ؓ(f)command命o(h)的标准输入ƈ执行command命o(h)Q如:w!grep all

:cd directory 当前工作目录更改ؓ(f)directory所表示的目?

:sh 启动一个子shellQ用^d(ctrl+d)q回vi

:so file 在shellE序file中读入和执行命o(h)

vi中的宏与~写

(避免使用控制键和W号Q不要用字WK、V、g、q、v??和功能键)

选项 作用

:map key command_seq 定义一个键来运行command_seqQ如:map e eaQ无Z么时候都可以eUd一个字的末来q加文本

:map 在状态行昄所有已定义的宏

:umap key 删除该键的宏

:ab string1 string2 定义一个羃写,使得当插入string1Ӟ用string2替换string1。当要插入文本时Q键入string1然后按Esc键,pȝ插入了(jin)string2

:ab 昄所有羃?

:una string 取消string的羃?

在vi中羃q文?

选项 作用

^i(ctrl+i)或tab 插入文本Ӟ插入Ud的宽度,Ud宽度是事先定义好?

:set ai 打开自动~进

:set sw=n 移动宽度设|ؓ(f)n个字W?

n<< 使n行都向左Ud一个宽?

n>> 使n行都向右Ud一个宽度,例如3>>将接下来的三行每行都向右移动一个移动宽?

1.~辑模式: 插入/替换 Q按INSERT键切换)(j)

2.[ESC] 指o(h)模式

3.输入模式 在指o(h)模式下输?a

新增Qa,AQ?

a:从光标所在位|后面开始新增资料,光标后的资料随新增资料向后移动?

A:从光标所在列最后面的地方开始新增资料?

插入Qi,IQ?

i:从光标所在位|前面开始插入资料,光标后的资料随新增资料向后移动?

I:从光标所在列的第一个非I白字元前面开始插入资料?

开始(o,OQ?

o:在光标所在列下新增一列ƈq入输入模式?

O:在光标所在列上方新增一列ƈq入输入模式?

4.存盘/退?

[ESC] :wq //存盘退?

:w! //存盘l箋

:q //退?Q源文g未被~辑q可用)(j)

:q! //强制退?

5.删除与改?

[ESC] x //删除光标所在字W?

dd //删除光标所在列?

r //修改光标所在字元,r后接着要修正的字符?

R //q入取替换状态?

s //删除光标所在字元,q进入输入模式?

S //删除光标所在的列,q进入输入模式?

6.恢复

[ESC] u //可以恢复被删除的文字?

U //可以恢复光标所在列的所有改变?



黑灵 2007-05-23 17:04 发表评论
]]>
理用户命o(h)http://www.aygfsteel.com/mstar/archive/2007/04/19/112085.html黑灵黑灵Thu, 19 Apr 2007 15:58:00 GMThttp://www.aygfsteel.com/mstar/archive/2007/04/19/112085.htmlhttp://www.aygfsteel.com/mstar/comments/112085.htmlhttp://www.aygfsteel.com/mstar/archive/2007/04/19/112085.html#Feedback0http://www.aygfsteel.com/mstar/comments/commentRss/112085.htmlhttp://www.aygfsteel.com/mstar/services/trackbacks/112085.html

useradd 注:(x)d用户
adduser 注:(x)d用户
passwd 注:(x)为用戯|密?
usermod 注:(x)修改用户命o(h)Q可以通过usermod 来修改登录名、用L(fng)家目录等{;
pwcov 注:(x)同步用户?etc/passwd ?etc/shadow
pwck 注:(x)pwck是校验用户配|文?etc/passwd ?etc/shadow 文g内容是否合法或完_(d)
pwunconv 注:(x)是pwcov 的立逆向操作Q是?etc/shadow?/etc/passwd 创徏/etc/passwd Q然后会(x)删除 /etc/shadow 文gQ?
finger 注:(x)查看用户信息工具
id 注:(x)查看用户的UID、GID?qing)所归属的用L(fng)
chfn 注:(x)更改用户信息工具
su 注:(x)用户切换工具
sudo 注:(x)sudo 是通过另一个用h执行命o(h)Qexecute a command as another userQ,su 是用来切换用P然后通过切换到的用户来完成相应的dQ但sudo 能后面直接执行命令,比如sudo 不需要root 密码可以执行root 赋与的执行只有root才能执行相应的命令;但得通过visudo 来编?etc/sudoers来实玎ͼ
visudo 注:(x)visodo 是编?/etc/sudoers 的命令;也可以不用这个命令,直接用vi 来编?/etc/sudoers 的效果是一L(fng)Q?
sudoedit 注:(x)和sudo 功能差不多;


2Q管理用L(fng)QgroupQ的工具或命令;


groupadd 注:(x)d用户l;
groupdel 注:(x)删除用户l;
groupmod 注:(x)修改用户l信?
groups 注:(x)昄用户所属的用户l?
grpck
grpconv 注:(x)通过/etc/group?etc/gshadow 的文件内Ҏ(gu)同步或创?etc/gshadow Q如?etc/gshadow 不存在则创徏Q?
grpunconv 注:(x)通过/etc/group ?etc/gshadow 文g内容来同步或创徏/etc/group Q然后删除gshadow文gQ?


黑灵 2007-04-19 23:58 发表评论
]]>
ubuntu7.04上配|proftpd手记(2) http://www.aygfsteel.com/mstar/archive/2007/04/19/ubuntu_proftpd_2.html黑灵黑灵Thu, 19 Apr 2007 15:25:00 GMThttp://www.aygfsteel.com/mstar/archive/2007/04/19/ubuntu_proftpd_2.htmlhttp://www.aygfsteel.com/mstar/comments/112077.htmlhttp://www.aygfsteel.com/mstar/archive/2007/04/19/ubuntu_proftpd_2.html#Feedback0http://www.aygfsteel.com/mstar/comments/commentRss/112077.htmlhttp://www.aygfsteel.com/mstar/services/trackbacks/112077.htmlubuntu7.04上配|proftpd手记(2)

l箋探究proftpd?br />
现在虽然能登录了(jin)Q但是每ơ登录时间都特别长,开始还以ؓ(f)是用?jin)inetd模式的问题,后来上网找了(jin)一下,原来是proftpd在每ơ都通过DNS查找d者的|址是什么?br />
所以要d两个选项Q?br />IdentLookups   off
UseReverseDNS  off

中文q问题

FlashFxpdQ结果发C文文件名都变成了(jin)q。因为我的ubuntu讑֮的字W集为utf-8。用FileZillaQ可以在站点理的高U设定中强制使用UTF-8Q就能看C文了(jin)。可以FlashFXP我没早到相关的设|?br />
接下来就是让我的用户lterry可以讉K/media下的文gQ其实就是挂载的原来的NTFS分区?br /><Directory /media/*>
  <Limit ALL>
    AllowGroup terry
  </Limit>
</Directory>

mkdir /home/ftp/mytest
mount --bind /myold /home/ftp/mytest



黑灵 2007-04-19 23:25 发表评论
]]>
ubuntu7.04上配|proftpd手记(1)http://www.aygfsteel.com/mstar/archive/2007/04/18/linux_proftpd_1.html黑灵黑灵Wed, 18 Apr 2007 15:32:00 GMThttp://www.aygfsteel.com/mstar/archive/2007/04/18/linux_proftpd_1.htmlhttp://www.aygfsteel.com/mstar/comments/111782.htmlhttp://www.aygfsteel.com/mstar/archive/2007/04/18/linux_proftpd_1.html#Feedback0http://www.aygfsteel.com/mstar/comments/commentRss/111782.htmlhttp://www.aygfsteel.com/mstar/services/trackbacks/111782.htmlubuntu7.04上配|proftpd

proftpd是什么,看名字就知道它应该和ftp服务有关Q具体内容可以到q里查看http://www.proftpd.org/

首先看看自己的及(qing)其上有没有proftpd。在l端里输?font color="#0000ff">proftpdQ如果没有ubuntu告诉你现在系l里没有proftpdQ你需要用apt-get来安装。那好吧Q就按他说的做?br />
sudo apt-get install proftpd

proftpd很小Q几乎是瞬间装完。我用的cn99的源Q速度非常快?br />
然后查看文档得知proftpd有两U运行模式:(x)Standalone ?inetd

standalone比较耗资源适合大访问量Qinetd?x)?f)每一个请求启动一个进E,qx不用的时候不耗资源,我就是自q用,所以选择inetd模式?br />
cat /etc/inetd.conf

l果什么都没有?br />
q一步查看文档得知,现在的linux基本上用xinetd取代inetd?jin)。但是我在系l里找不到xinetd。恩~Q明白了(jin)Q?br />
sudo apt-get install xinetd

又是瞬间完成?br />
q入/etc/xined.d目录Q看见了(jin)几个配置好的目。我们在加一个ftp吧?br />
sudo vim ftp

service ftp
{
        flags = REUSE
        socket_type = stream
        instances = 50
        wait = no
        user = root
        server = /usr/sbin/proftpd
        log_on_success = HOST PID
        log_on_failure = HOST ATTEMPT
}

具体是什么意思? 其实我也是半懂不懂的Q想去xinetd的主上看看Q结果找不到面?br />
然后是配置proftpd本n?jin)?br />
proftpd的配|文件在/etc/proftpd/proftpd.conf

不愧“pro”这个名字,看上去非常“专业”。很复杂Q官方主上文档也非常复杂?br />
我现把匿名用L(fng)录那部分打开?jin)?br />
<Anonymous ~ftp>
....
....
....
</Anonymous>
q段应该在proftpd.conf的最后面?br />
对于q个配置文gQ如果你用过apache httpdQ应该看上去很眼熟?br />
然后重启一下xinetd

sudo service xinetd restart

l果告诉我没有serviceq个命o(h)?br />
同样Q?br />
sudo apt-get debian-helper-scripts

重启完服务器后,看看ftp已经可以d?jin)。如果不能登录,你可以试试一下方法看看问题出在哪里?br />
?etc/init.d目录下直接调用xinetd start看看有什么信息出来,如果没有什么有用信息?br />
修改一下xinetd?br />
   start)
        checkportmap
        echo -n "Starting internet superserver: xinetd"
        start-stop-daemon --start --quiet --background --exec /usr/sbin/xinetd -- -pidfile /var/run/xinetd.pid -filelog /var/log/xinetd.log -f /etc/xinetd.conf $XINETD_OPTS

q样再次启动xinetdQ你可以在/var/log目录下找到xinetd.log文g。看看启动xinetdq程中出C(jin)什么问题?/p>

接下来就是研Iproftpd本n的配|了(jin)Q几个经典命题需要考虑Q?/h2>
  • 虚拟目录
  • 用户权限
  • 量限制
[待箋]

黑灵 2007-04-18 23:32 发表评论
]]>APT快速参?/title><link>http://www.aygfsteel.com/mstar/archive/2007/04/18/linux_apt_quick.html</link><dc:creator>黑灵</dc:creator><author>黑灵</author><pubDate>Wed, 18 Apr 2007 14:54:00 GMT</pubDate><guid>http://www.aygfsteel.com/mstar/archive/2007/04/18/linux_apt_quick.html</guid><wfw:comment>http://www.aygfsteel.com/mstar/comments/111767.html</wfw:comment><comments>http://www.aygfsteel.com/mstar/archive/2007/04/18/linux_apt_quick.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/mstar/comments/commentRss/111767.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/mstar/services/trackbacks/111767.html</trackback:ping><description><![CDATA[ <a href="http://w"> </a> <h1>APT快速参?/h1> <ul> <li>apt-get update——在修改/etc/apt/sources.list或?etc/apt/preferences之后q行该命令。此外?zhn)需要定期运行这一命o(h)以确保?zhn)的Y件包列表是最新的?<span id="wmqeeuq" class="anchor" id="line-45"></span></li> <li>apt-get install packagename——安装一个新软g包(参见下文的aptitudeQ?<span id="wmqeeuq" class="anchor" id="line-46"></span></li> <li>apt-get remove packagename——卸载一个已安装的Y件包Q保留配|文Ӟ(j) <span id="wmqeeuq" class="anchor" id="line-47"></span></li> <li>apt-get --purge remove packagename——卸载一个已安装的Y件包Q删除配|文Ӟ(j) <span id="wmqeeuq" class="anchor" id="line-48"></span></li> <li>dpkg --force-all --purge packagename 有些软g很难卸蝲Q而且q阻止了(jin)别的软g的应用,可以用q个Q不q有点冒险?<span id="wmqeeuq" class="anchor" id="line-49"></span></li> <li>apt-get autoclean apt?x)把已装或已卸的软g都备份在盘上,所以如果需要空间的话,可以让这个命令来删除你已l删掉的软g <span id="wmqeeuq" class="anchor" id="line-50"></span></li> <li>apt-get clean q个命o(h)?x)把安装的Y件的备䆾也删除,不过q样不会(x)影响软g的用的?<span id="wmqeeuq" class="anchor" id="line-51"></span></li> <li>apt-get upgrade——更新所有已安装的Y件包 <span id="wmqeeuq" class="anchor" id="line-52"></span></li> <li>apt-get dist-upgrade——将pȝ升到新版本 <span id="wmqeeuq" class="anchor" id="line-53"></span></li> <li>apt-cache search string——在软g包列表中搜烦(ch)字符?<span id="wmqeeuq" class="anchor" id="line-54"></span></li> <li>dpkg -l package-name-pattern——列出所有与模式相匹配的软g包。如果?zhn)不知道Y件包的全名,(zhn)可以用?package-name-pattern*”?<span id="wmqeeuq" class="anchor" id="line-55"></span></li> <li>aptitude——详l查看已安装或可用的软g包。与apt-getcMQaptitude可以通过命o(h)行方式调用,但仅限于某些命o(h)——最常见的有安装和卸载命令。由于aptitude比apt-get?jin)解更多信息Q可以说它更适合用来q行安装和卸载?<span id="wmqeeuq" class="anchor" id="line-56"></span></li> <li>apt-cache showpkg pkgs——显CY件包信息?<span id="wmqeeuq" class="anchor" id="line-57"></span></li> <li>apt-cache dumpavail——打印可用Y件包列表?<span id="wmqeeuq" class="anchor" id="line-58"></span></li> <li>apt-cache show pkgs——显CY件包记录Q类gdpkg –print-avail?<span id="wmqeeuq" class="anchor" id="line-59"></span></li> <li>apt-cache pkgnames——打印Y件包列表中所有Y件包的名U?<span id="wmqeeuq" class="anchor" id="line-60"></span></li> <li>dpkg -S file——这个文件属于哪个已安装软g包?<span id="wmqeeuq" class="anchor" id="line-61"></span></li> <li>dpkg -L package——列?gu)Y件包中的所有文件?<span id="wmqeeuq" class="anchor" id="line-62"></span></li> <li>apt-file search filename——查扑֌含特定文件的软g包(不一定是已安装的Q,q些文g的文件名中含有指定的字符丌Ӏapt-file是一个独立的软g包。?zhn)必须先用apt-get install来安装它Q然后运行apt-file update。如果apt-file search filename输出的内容太多,(zhn)可以尝试用apt-file search filename | grep -w filenameQ只昄指定字符串作为完整的单词出现在其中的那些文g名)(j)或者类似方法,例如Qapt-file search filename | grep /bin/Q只昄位于诸如/bin?usr/binq些文g夹中的文Ӟ如果(zhn)要查找的是某个特定的执行文件的话,q样做是有帮助的Q?<span id="wmqeeuq" class="anchor" id="line-63"></span></li> </ul> <p class="line874">Q?apt-get autoclean——定期运行这个命令来清除那些已经卸蝲的Y件包?deb文g。通过q种方式Q?zhn)可以释放大量的磁盘空间。如果?zhn)的需求十分迫切,可以使用apt-get clean以释放更多空间。这个命令会(x)已安装软g包裹?deb文g一q删除。大多数情况下?zhn)不?x)再用到这?debs文gQ因此如果?zhn)为磁盘空间不感到焦头烂额,q个办法也许值得一试?<span id="wmqeeuq" class="anchor" id="line-64"></span><span id="wmqeeuq" class="anchor" id="line-65"></span></p> <img src ="http://www.aygfsteel.com/mstar/aggbug/111767.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/mstar/" target="_blank">黑灵</a> 2007-04-18 22:54 <a href="http://www.aygfsteel.com/mstar/archive/2007/04/18/linux_apt_quick.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[ZZ]wget 命o(h)http://www.aygfsteel.com/mstar/archive/2007/04/18/linux_wget_docs.html黑灵黑灵Wed, 18 Apr 2007 05:59:00 GMThttp://www.aygfsteel.com/mstar/archive/2007/04/18/linux_wget_docs.htmlhttp://www.aygfsteel.com/mstar/comments/111599.htmlhttp://www.aygfsteel.com/mstar/archive/2007/04/18/linux_wget_docs.html#Feedback0http://www.aygfsteel.com/mstar/comments/commentRss/111599.htmlhttp://www.aygfsteel.com/mstar/services/trackbacks/111599.html Wget 的用?


-V 版本信息
-h 帮助信息
-b 后台执行W(xu)get
-o filename 把记录放在文件filename
-a filename 把记录附加在文gfilename
-d 昄调试信息
-q 无输Z载方?
-v 详细的屏q输出(默认Q?
-nv 单的屏幕输出
-i inputfiles 从文本文件内d地址列表
-F forcehtml 从html文g内读取地址列表
-t number numberơ重试下?0时ؓ(f)无限?
-O output document file 写文件到文g
-nc 不覆盖已有的文g
-c 断点下传
-N 旉旉戟뀂该参数指定wget只下载更新的文gQ也是_(d)与本地目录中的对应文件的长度和最后修Ҏ(gu)期一L(fng)文g不被下载?
-S 昄服务器响?
-T timeout 时旉讄(单位U?
-w time 重试延时(单位U?
-Y proxy=on/off 是否打开代理
-Q quota=number 重试ơ数


目录:

-nd --no-directories 不徏立目?
-x, --force-directories 强制q行目录建立的工?
-nH, --no-host-directories 不徏立主机的目录.
-P, --directory-prefix=PREFIX 把档案存?PREFIX/...
--cut-dirs=NUMBER 忽略 NUMBER 个远端的目录元g.

HTTP 选项:


--http-user=USER ?http 使用者ؓ(f) USER.
--http0passwd=PASS ?http 使用者的密码?PASS.
-C, --cache=on/off 提供/关闭快取伺服器资?(正常情况为提?.
--ignore-length 忽略 `Content-Length' 标头栏位.
--proxy-user=USER ?USER ?Proxy 使用者名U?
--proxy-passwd=PASS ?PASS ?Proxy 密码.
-s, --save-headers 储存 HTTP 标头成ؓ(f)档案.
-U, --user-agent=AGENT 使用 AGENT 取代 Wget/VERSION 作ؓ(f)识别代号.

FTP 选项:

--retr-symlinks 取回 FTP 的象徵连l?
-g, --glob=on/off turn file name globbing on ot off.
--passive-ftp 使用 "passive" 传输模式.

使用递归方式的取?

-r, --recursive 像是吸入 web 的取?-- 请小?j)?.
-l, --level=NUMBER 递归层次的最大?(0 不限?.
--delete-after 删除下蝲完毕的档?
-k, --convert-links 改变没有兌的连l成为有兌.
-m, --mirror 开启适合用来映射的选项.
-nr, --dont-remove-listing 不要U除 `.listing' ?

递回式作业的允许与拒l选项:

-A, --accept=LIST 允许的扩充项目的列表
. -R, --reject=LIST 拒绝的扩充项目的列表.
-D, --domains=LIST 允许的网域列?
--exclude-domains=LIST 拒绝的网域列?(使用逗号来分?.
-L, --relative 只跟随关联连l前q?
--follow-ftp 跟随 HTML 文g里面?FTP q结.
-H, --span-hosts 当开始递回时便到外面的L.
-I, --include-directories=LIST 允许的目录列?
-X, --exclude-directories=LIST 排除的目录列?
-nh, --no-host-lookup 不透过 DNS 查寻L.
-np, --no-parent 不追朔到h目录.
wget -t0 -c -nH -np -b -m -P /localdir http://freesoft.online.sh.cn/mirrors/ftp.redhat.com -o wget.log 今天用wget一看那么多的命令,先把它翻译了(jin)一下,再到外边搜到一些相兛_?



linux环境下的"蚂蚁"-wget使用?  

wget的用Ş式是Q?
wget [参数列表] URL
首先来介l一下wget的主要参敎ͼ(x)
· -bQ让wget在后台运行,记录文g写在当前目录?wget-log"文g中;
· -t [nuber of times]Q尝试次敎ͼ当wget无法与服务器建立q接Ӟ试q接多少ơ。比?-t
120"表示试120ơ。当q一ؓ(f)"0"的时候,指定试无穷多次直到q接成功为止Q这个设|非常有用,当对Ҏ(gu)务器H然x或者网l突然中断的时候,可以在恢复正常后l箋下蝲没有传完的文Ӟ
· -cQ断点箋传,q也是个非常有用的设|,特别当下载比较大的文件的时候,如果中途意外中断,那么q接恢复的时候会(x)从上ơ没传完的地Ҏ(gu)着传,而不是又从头开始,使用q一w要远E服务器也支持断点箋传,一般来ԌZUNIX/Linux的Web/FTP服务器都支持断点l传Q?
· -T [number of seconds]Q超时时_(d)指定多长旉q程服务器没有响应就中断q接Q开始下一ơ尝试。比?-T 120"表示如果120U以后远E服务器没有发过来数据,重新尝试连接。如果网l速度比较快,q个旉可以讄的短些,相反Q可以设|的长一些,一般最多不过900Q通常也不于60Q一般设|在120左右比较合适;
· -w [number of seconds]Q在两次试之间{待多少U,比如"-w 100"表示两次试之间{待100U;
· -Y on/offQ通过Q不通过代理服务器进行连接;
· -Q [byetes]Q限制下载文件的d最多不能超q多,比如"-Q2k"表示不能过2K字节Q?-Q3m"表示最多不能超q?M字节Q如果数字后面什么都不加Q就表示是以字节为单位,比如"-Q200"表示最多不能超q?00字节Q?
· -ndQ不下蝲目录l构Q把从服务器所有指定目录下载的文g都堆到当前目录里Q?
· -xQ与"-nd"讄刚好相反Q创建完整的目录l构Q例?wget -nd http://www.gnu.org"创建在当前目录下创?www.gnu.org"子目录,然后按照服务器实际的目录l构一U一U徏下去Q直到所有的文g都传完ؓ(f)止;
· -nHQ不创徏以目标主机域名ؓ(f)目录名的目录Q将目标L的目录结构直接下到当前目录下Q?
· --http-user=username
· --http-passwd=passwordQ如果Web服务器需要指定用户名和口令,用这两项来设定;
· --proxy-user=username
· --proxy-passwd=passwordQ如果代理服务器需要输入用户名和口令,使用q两个选项Q?
· -rQ在本机建立服务器端目录l构Q?
· -l [depth]Q下载远E服务器目录l构的深度,例如"-l 5"下蝲目录深度于或者等?以内的目录结构或者文Ӟ
· -mQ做站点镜像时的选项Q如果你惛_一个站点的镜像Q用这个选项Q它?yu)自动设定其他合适的选项以便于站炚w像;
· -npQ只下蝲目标站点指定目录?qing)其子目录的内容。这也是一个非常有用的选项Q我们假设某个h的个Z里面有一个指向这个站点其他h个h主页的连接,而我们只想下载这个h的个Z,如果不设|这个选项Q甚?-有可能把整个站点l抓下来Q这昄是我们通常不希望的Q?

如何讑֮wget所使用的代理服务器

wget可以使用用户讄文g".wgetrc"来读取很多设|,我们q里主要利用q个文g来是讄代理服务器。用者用什么用L(fng)录,那么什么用户主目录下的".wgetrc"文gpv作用。例如,"root"用户如果想?.wgetrc"来设|代理服务器Q?/root/.wgert"pv作用Q下面给Z?.wgetrc"文g的内容,读者可以参照这个例子来~写自己?wgetrc"文gQ?
http-proxy = 111.111.111.111:8080
ftp-proxy = 111.111.111.111:8080
q两行的含义是,代理服务器IP地址为:(x)111.111.111.111Q端口号为:(x)80。第一行指定HTTP协议所使用的代理服务器Q第二行指定FTP协议所使用的代理服务器?

黑灵 2007-04-18 13:59 发表评论
]]>
Ubuntu Java 环境讄http://www.aygfsteel.com/mstar/archive/2006/09/16/70008.html黑灵黑灵Sat, 16 Sep 2006 01:59:00 GMThttp://www.aygfsteel.com/mstar/archive/2006/09/16/70008.htmlhttp://www.aygfsteel.com/mstar/comments/70008.htmlhttp://www.aygfsteel.com/mstar/archive/2006/09/16/70008.html#Feedback0http://www.aygfsteel.com/mstar/comments/commentRss/70008.htmlhttp://www.aygfsteel.com/mstar/services/trackbacks/70008.html 取得Sun JDK 5

sudo apt-get install sun-java5-jdk

查看安装的jdk列表

update-java-alternatives -l

讄默认Java
sudo update-java-alternatives -s java-1.5.0-sun


黑灵 2006-09-16 09:59 发表评论
]]>
ubuntu技术资料汇?/title><link>http://www.aygfsteel.com/mstar/archive/2006/09/14/linux_catalog.html</link><dc:creator>黑灵</dc:creator><author>黑灵</author><pubDate>Thu, 14 Sep 2006 09:46:00 GMT</pubDate><guid>http://www.aygfsteel.com/mstar/archive/2006/09/14/linux_catalog.html</guid><wfw:comment>http://www.aygfsteel.com/mstar/comments/69711.html</wfw:comment><comments>http://www.aygfsteel.com/mstar/archive/2006/09/14/linux_catalog.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/mstar/comments/commentRss/69711.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/mstar/services/trackbacks/69711.html</trackback:ping><description><![CDATA[用ubuntu一D|间了(jin)Q遇到问题,找资料解冻I有些时候自׃?x)忘讎ͼ回头再找找不到了(jin)。所以在q里记录一下?br /><br />Grub相关<br />手册 <a >http://www.gnu.org/software/grub/manual/grub.html</a><br /><br />字体化<br /><a href="/mstar/archive/2006/07/22/59568.html">http://www.aygfsteel.com/mstar/archive/2006/07/22/59568.html</a><br /><br />Sudo讄<br /><a href="/mstar/archive/2006/09/13/69497.html">http://www.aygfsteel.com/mstar/archive/2006/09/13/69497.html</a><br /><br />LumaQQ<br /><a href="/mstar/archive/2006/06/04/50361.html">http://www.aygfsteel.com/mstar/archive/2006/06/04/50361.html</a><br /><br />fcitx<br /><a href="/mstar/archive/2006/07/22/59539.html">http://www.aygfsteel.com/mstar/archive/2006/07/22/59539.html</a><br /><a href="/mstar/archive/2006/07/22/59540.html">http://www.aygfsteel.com/mstar/archive/2006/07/22/59540.html</a><br /><br />?br /><a href="/mstar/archive/2006/06/04/50250.html">http://www.aygfsteel.com/mstar/archive/2006/06/04/50250.html</a><br /><br /><strong>命o(h)</strong><br />x<br /><a href="/mstar/archive/2006/04/02/38710.html">http://www.aygfsteel.com/mstar/archive/2006/04/02/38710.html</a><br /><br />Mount<br /><a href="/mstar/archive/2006/05/20/47223.html">http://www.aygfsteel.com/mstar/archive/2006/05/20/47223.html</a><br /><br />wget<br /><a href="/mstar/archive/2007/04/18/linux_wget_docs.html">http://www.aygfsteel.com/mstar/archive/2007/04/18/linux_wget_docs.html</a><br /><br /><strong>应用软g</strong><br /><br />firefox的chm扩展<br /><a >https://addons.mozilla.org/firefox/3235/</a><br /><br /><br /><img src ="http://www.aygfsteel.com/mstar/aggbug/69711.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/mstar/" target="_blank">黑灵</a> 2006-09-14 17:46 <a href="http://www.aygfsteel.com/mstar/archive/2006/09/14/linux_catalog.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>visudohttp://www.aygfsteel.com/mstar/archive/2006/09/13/69497.html黑灵黑灵Wed, 13 Sep 2006 14:55:00 GMThttp://www.aygfsteel.com/mstar/archive/2006/09/13/69497.htmlosman   ALL=(ALL) NOPASSWD:ALL



黑灵 2006-09-13 22:55 发表评论
]]>
ubuntu分区http://www.aygfsteel.com/mstar/archive/2006/09/13/69479.html黑灵黑灵Wed, 13 Sep 2006 13:29:00 GMThttp://www.aygfsteel.com/mstar/archive/2006/09/13/69479.html/boot 100MB
/ 2G
swap 512MB
/home 5G
/var 1G
/usr 5G+

黑灵 2006-09-13 21:29 发表评论
]]>
lftp 中文qhttp://www.aygfsteel.com/mstar/archive/2006/07/22/59603.html黑灵黑灵Sat, 22 Jul 2006 15:50:00 GMThttp://www.aygfsteel.com/mstar/archive/2006/07/22/59603.htmlhttp://www.aygfsteel.com/mstar/comments/59603.htmlhttp://www.aygfsteel.com/mstar/archive/2006/07/22/59603.html#Feedback0http://www.aygfsteel.com/mstar/comments/commentRss/59603.htmlhttp://www.aygfsteel.com/mstar/services/trackbacks/59603.html ?~/.lftp/rc中加?

debug 3

set ftp:charset GBK

set file:charset UTF-8

set ftp:passive-mode no

alias nosetcharset " set ftp:charset ; set file:charset"

黑灵 2006-07-22 23:50 发表评论
]]>
[备䆾]用MS Windows 字体化 UbuntuQ?.06Q?/title><link>http://www.aygfsteel.com/mstar/archive/2006/07/22/59568.html</link><dc:creator>黑灵</dc:creator><author>黑灵</author><pubDate>Sat, 22 Jul 2006 10:39:00 GMT</pubDate><guid>http://www.aygfsteel.com/mstar/archive/2006/07/22/59568.html</guid><wfw:comment>http://www.aygfsteel.com/mstar/comments/59568.html</wfw:comment><comments>http://www.aygfsteel.com/mstar/archive/2006/07/22/59568.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/mstar/comments/commentRss/59568.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/mstar/services/trackbacks/59568.html</trackback:ping><description><![CDATA[本文节选至<br />http://forum.ubuntu.org.cn/about19325.html<br /><br /><span id="wmqeeuq" class="postbody">1、安装MS字体 <br /><br />cd /usr/share/fonts <br />sudo mkdir zh_CN <br /><br />然后MS的字体文?simsun.ttc tahoma.ttf verdana.ttf verdanab.ttf verdanaz.ttf tahomabd.ttf verdanai.ttf)复制到zh_CN目录?br /><br /></span><span id="wmqeeuq" class="postbody">tahomabd.ttf可能xp中没有,我是?003中找到的?br /><br />复制完以后要改变权限<br /><br />cd zh_CN<br />sudo chmod 644 *<br /><br />然后执行<br /></span>sudo mkfontscale <br />sudo mkfontdir <br />sudo fc-cache<br /><br /><span id="wmqeeuq" class="postbody">2、修?a href="/Files/mstar/language-selector.zip">language-selector.conf</a>文g<br /><br />修改之前应该备䆾原来的(我的原始文g中是I的Q?br /><br /></span>sudo gedit /etc/fonts/language-selector.conf<br /><br /><div style="BORDER-RIGHT: rgb(204,204,204) 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: rgb(204,204,204) 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: rgb(204,204,204) 1px solid; WIDTH: 98%; PADDING-TOP: 4px; BORDER-BOTTOM: rgb(204,204,204) 1px solid; BACKGROUND-COLOR: rgb(238,238,238)"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">fontconfig</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">alias</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">serif</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">prefer</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">Bitstream Vera Serif</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">SimSun</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">DejaVu Serif</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">AR PL ShanHeiSun Uni</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">AR PL ZenKai Uni</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">prefer</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">alias</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">alias</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">sans-serif</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">prefer</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">Bitstream Vera Sans</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">Simsun</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">DejaVu Sans</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">AR PL ShanHeiSun Uni</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">AR PL ZenKai Uni</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">prefer</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">alias</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">alias</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">monospace</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">prefer</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">Bitstream Vera Sans Mono</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">Simsun</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">DejaVu Sans Mono</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">AR PL ShanHeiSun Uni</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">AR PL ZenKai Uni</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">family</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">prefer</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">alias</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">match </span><span style="COLOR: rgb(255,0,0)">target</span><span style="COLOR: rgb(0,0,255)">="font"</span><span style="COLOR: rgb(255,0,0)"> </span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">test </span><span style="COLOR: rgb(255,0,0)">name</span><span style="COLOR: rgb(0,0,255)">="family"</span><span style="COLOR: rgb(255,0,0)"> compare</span><span style="COLOR: rgb(0,0,255)">="contains"</span><span style="COLOR: rgb(255,0,0)"> </span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">SimSun</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">Song</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">Sun</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">Kai</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">Ming</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">test</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">test </span><span style="COLOR: rgb(255,0,0)">name</span><span style="COLOR: rgb(0,0,255)">="weight"</span><span style="COLOR: rgb(255,0,0)"> compare</span><span style="COLOR: rgb(0,0,255)">="less_eq"</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">int</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">100</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">int</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">test</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">test </span><span style="COLOR: rgb(255,0,0)">compare</span><span style="COLOR: rgb(0,0,255)">="more_eq"</span><span style="COLOR: rgb(255,0,0)"> target</span><span style="COLOR: rgb(0,0,255)">="pattern"</span><span style="COLOR: rgb(255,0,0)"> name</span><span style="COLOR: rgb(0,0,255)">="weight"</span><span style="COLOR: rgb(255,0,0)"> </span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">int</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">180</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">int</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">test</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">edit </span><span style="COLOR: rgb(255,0,0)">mode</span><span style="COLOR: rgb(0,0,255)">="assign"</span><span style="COLOR: rgb(255,0,0)"> name</span><span style="COLOR: rgb(0,0,255)">="embolden"</span><span style="COLOR: rgb(255,0,0)"> </span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">bool</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">true</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">bool</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">edit</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">match</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">match </span><span style="COLOR: rgb(255,0,0)">target</span><span style="COLOR: rgb(0,0,255)">="font"</span><span style="COLOR: rgb(255,0,0)"> </span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">test </span><span style="COLOR: rgb(255,0,0)">name</span><span style="COLOR: rgb(0,0,255)">="family"</span><span style="COLOR: rgb(255,0,0)"> compare</span><span style="COLOR: rgb(0,0,255)">="contains"</span><span style="COLOR: rgb(255,0,0)"> </span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">SimSun</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">宋体</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">宋体-18030</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">Song</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">Sun</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">Kai</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">Ming</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">黑体</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">新宋?/span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">新宋?18030</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">楷体_GB2312</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">仿宋_GB2312</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">隶体</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">SimSun-18030</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">SimHei</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">NSimSun</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">NSimSun-18030</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">KaiTi_GB2312</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">FangSong_GB2312</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">LiSu</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">string</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">test</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">edit </span><span style="COLOR: rgb(255,0,0)">name</span><span style="COLOR: rgb(0,0,255)">="globaladvance"</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">bool</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">false</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">bool</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">edit</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">edit </span><span style="COLOR: rgb(255,0,0)">name</span><span style="COLOR: rgb(0,0,255)">="spacing"</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">int</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">0</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">int</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">edit</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">edit </span><span style="COLOR: rgb(255,0,0)">name</span><span style="COLOR: rgb(0,0,255)">="hinting"</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">bool</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">true</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">bool</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">edit</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">edit </span><span style="COLOR: rgb(255,0,0)">name</span><span style="COLOR: rgb(0,0,255)">="autohint"</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">bool</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">false</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">bool</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">edit</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">edit </span><span style="COLOR: rgb(255,0,0)">name</span><span style="COLOR: rgb(0,0,255)">="antialias"</span><span style="COLOR: rgb(255,0,0)"> mode</span><span style="COLOR: rgb(0,0,255)">="assign"</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">bool</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">true</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">bool</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">edit</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">test </span><span style="COLOR: rgb(255,0,0)">name</span><span style="COLOR: rgb(0,0,255)">="pixelsize"</span><span style="COLOR: rgb(255,0,0)"> compare</span><span style="COLOR: rgb(0,0,255)">="more_eq"</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">int</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">12</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">int</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">test</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">test </span><span style="COLOR: rgb(255,0,0)">name</span><span style="COLOR: rgb(0,0,255)">="pixelsize"</span><span style="COLOR: rgb(255,0,0)"> compare</span><span style="COLOR: rgb(0,0,255)">="less_eq"</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">int</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">24</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">int</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">test</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">edit </span><span style="COLOR: rgb(255,0,0)">name</span><span style="COLOR: rgb(0,0,255)">="antialias"</span><span style="COLOR: rgb(255,0,0)"> mode</span><span style="COLOR: rgb(0,0,255)">="assign"</span><span style="COLOR: rgb(255,0,0)"> </span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"><</span><span style="COLOR: rgb(128,0,0)">bool</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)">false</span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">bool</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">edit</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /></span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">match</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"><br /><br /></span><span style="COLOR: rgb(0,0,255)"></</span><span style="COLOR: rgb(128,0,0)">fontconfig</span><span style="COLOR: rgb(0,0,255)">></span><span style="COLOR: rgb(0,0,0)"> </span></div><br /><span id="wmqeeuq" class="postbody"><br /></span><span id="wmqeeuq" class="postbody">3 重启X-windows <br /></span><span id="wmqeeuq" class="postbody">按Ctrl+Alt+Backspace 或?d<br /><br />4 字体讄<br />上面菜单 pȝ-首选项-字体<br /><img height="454" alt="font-setup1.jpg" src="http://www.aygfsteel.com/images/blogjava_net/mstar/pics20050930/font-setup1.jpg" width="530" border="0" /><br />l节<br /><img height="501" alt="font-setup3.jpg" src="http://www.aygfsteel.com/images/blogjava_net/mstar/pics20050930/font-setup3.jpg" width="525" border="0" /><br /><br />firefox也需要设|一?br /><br /><img height="441" alt="firefox-font-setup1.jpg" src="http://www.aygfsteel.com/images/blogjava_net/mstar/pics20050930/firefox-font-setup1.jpg" width="515" border="0" /><br />高<br /><img height="387" alt="firefox-font-setup2.jpg" src="http://www.aygfsteel.com/images/blogjava_net/mstar/pics20050930/firefox-font-setup2.jpg" width="503" border="0" /><br /><br />l端字体现在非常隄Q你要自己定义一下,自己选一个看着眼的吧?br /><br />如果你的机器上没有装WindowsQ我q里提供一个所需字体打包<a href="ftp://zjumty.3322.org/SOFTWARE/Linux/fonts.zip">下蝲</a><br /></span><span id="wmqeeuq" class="postbody"><br />大家注意Q?/span><span id="wmqeeuq" class="postbody">用windows字体存在版权问题?br /><br /></span><img src ="http://www.aygfsteel.com/mstar/aggbug/59568.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/mstar/" target="_blank">黑灵</a> 2006-07-22 18:39 <a href="http://www.aygfsteel.com/mstar/archive/2006/07/22/59568.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[备䆾]chmod (所有权和许可权?http://www.aygfsteel.com/mstar/archive/2006/07/22/59561.html黑灵黑灵Sat, 22 Jul 2006 09:22:00 GMThttp://www.aygfsteel.com/mstar/archive/2006/07/22/59561.htmlhttp://www.aygfsteel.com/mstar/comments/59561.htmlhttp://www.aygfsteel.com/mstar/archive/2006/07/22/59561.html#Feedback0http://www.aygfsteel.com/mstar/comments/commentRss/59561.htmlhttp://www.aygfsteel.com/mstar/services/trackbacks/59561.html 本文节选至
http://www.chinalinuxpub.com/doc/manual/9.0/rhl-gsg-zh_CN-9/s1-navigating-ownership.html

所有权和许可权?

d、写入、和执行是许可权限中的三个主要设|。既然用户在他们的帐号创Z时就被编入一个组,你还可以指定哪些l群可以d、写入、或执行某一文g?

让我们用带有 -l (?选项?ls 命o(h)来仔l查看一下文?sneakers.txt?

q里提供?jin)许多细节。你可以看到谁能dQrQ和写入QwQ文Ӟ以及(qing)谁创Z(jin)q个文gQtestQ,所有者所在的l群QtestQ。请CQ按照默认设|,你的l群名和你的d名相同?

permiss1.png

sneakers.txt 的许可权?/b>

在组右侧的信息包括文g大小、创建的日期和时_(d)以及(qing)文g名?

W一列显CZ(jin)当前的权限;它有十位。第一位代表文件类型。其余九(ji)位实际上是用于三l不同用L(fng)三组权限?

例如Q?

-rw-rw-r--

那三l是Q文件的所有者,文g所属的l群Q和“其他h”,q是前面没有包括的用户和l群?

-   (rw-) (rw-) (r--) 1 test test
|     |     |     |
cd 所有?l群  其他?/tt>

W一个项目指定文件类型,它可以显CZ下几U:(x)

  • d ?目录

  • -Q短U)(j)?常规文gQ而不是目录或链接Q?

  • l ?到系l上其它位置的另一个程序或文g的符号链?

在第一个项目之后的三组中,你可以看C面几U类型:(x)

  • r ?文g可以被读?

  • w ?文g可以被写?

  • x ?文g可以被执行(如果它是E序的话Q?

当你在所有者、组、或其他Z看到一个短U(?”)(j)Q这意味着相应的权限还没有被授予。再看一看文?sneakers.txt 的第一列,然后辩别它的许可权限?

ls -l sneakers.txt

-rw-rw-r-- 1 test test 39 3?11 12:04 sneakers.txt

文g的所有者(q个情况下是 testQ有d和写入该文g的权限。组test 也有d和写?sneakers.txt的权限。它不是一个程序,因此所有者和l群都没有执行它的权限?br />

chmod 命o(h)

使用 chmod 命o(h)来改变权限。这个例子显CZ(jin)如何使用 chmod 命o(h)来改?sneakers.txt 文g的权限?

带有初始权限讄的最初文件与下面总Q?

-rw-rw-r-- 1 test test 39 3?11 12:04 sneakers.txt

如果你是q个文g的所有者或者你d为根用户w䆾Q你可以改变所有者、组、和其他人的权限?

此刻Q所有者和l群可以d和写入文Ӟl群之外的Q何h只能d文gQ?tt class="COMPUTEROUTPUT">r--Q?
caution.png心(j)
误住,文g权限是一U安全措施。无Z时你允许其他取、写入或执行文gQ你都在增加文g被篡Ҏ(gu)删除的危险。作ZU基本原则,你应该只l那些真正需要这些文件的Zd权限?br />

在下面的例子中,你想l每个h以写入文件的权限Q因此他们可以读取文Ӟ在其中加注,q保存文件。这意味着你非得改变文件权限中的“其他h”部分不可了(jin)?

让我们先来看一看这个文件。在 shell 提示下,键入Q?

ls -l sneakers.txt

前面的命令显CZ(jin)q个文g信息Q?

-rw-rw-r-- 1 test test 39 3?11 12:04 sneakers.txt

现在Q键入下面的命o(h)Q?br />

chmod o+w sneakers.txt

o+w 命o(h)告诉pȝ你想l其它h写入文g sneakers.txt 的权限。要查看l果Q再ơ列出文件的l节。现在,q个文g看v来与下面的输出相仿:(x)

-rw-rw-rw- 1 test test 39 3?11 12:04 sneakers.txt

现在Q每个h都可以读取和写入q个文g?

要从 sneakers.txt 中删除读写权限,使用 chmod 命o(h)来取消读取和写入q两个的权限?

chmod go-rw sneakers.txt

通过键入 go-rwQ你在告诉系l删除文?sneakers.txt 中组和其它人的d和写入权限?

l果与下面的输出怼Q?

-rw------- 1 test test 39 3?11 12:04 sneakers.txt

当你想用 chmod 命o(h)来改变权限时Q把它们当做速记W号来记忆,因ؓ(f)你实际要做的只是C几个W号而已?

下面是一个速记W号含义的列表:(x)

w䆾

u ?拥有文g的用P所有者)(j)

g ?所有者所在的l群

o ?其他人(不是所有者或所有者的l群Q?

a ?每个人或全部Q?tt class="OPTION">u?tt class="OPTION">g、和 oQ?

权限

r ?d?

w ?写入?

x ?执行?

行动

+ ?d权限

- ?删除权限

= ?使它成ؓ(f)唯一权限

x试一下你的许可权限技巧么Q从文g sneakers.txt 中删除所有权??包括每个人的权限?

-rw------- 1 test test 39 3?11 12:04 sneakers.txt

现在Q让我们来看看你是否q能够?cat sneakers.txt 来读取这个文Ӟ它所q回的输出应如下所C:(x)

cat: sneakers.txt: Permission denied

删除所有的权限Q包括你自己的,?x)成功地锁住q个文g。但是由于这个文件属于你Q你可以随时使用以下命o(h)把它的权限改回来Q?br />

chmod u+rw sneakers.txt

使用命o(h) cat sneakers.txt 来试试看你作为文件所有者是否还能够d该文件?

q里是几个可以用?chmod 命o(h)讄上的常用例子Q?

  • g+w ?为组添加写入权

  • o-rwx ?删除其它人的所有权?

  • u+x ?允许文g所有者执行这个文?

  • a+rw ?允许每个取ƈ写入文g

  • ug+r ?允许所有者和l群d文g

  • g=rx ?只允许组读取和执行Q不能写入)(j)

通过d -R 选项Q你可以为整个目录树(wi)改变权限?

因ؓ(f)你不能象执行E序一样地“执行”目录,当你为目录添加或删除执行权限Ӟ你实际上是在允许Q或拒绝Q在目录中搜索的权限?

如果你不想给其它人对目录 tigger 的执行权限,那么谁有d或写入权限便无关紧要?jin)。除非他们知道他们想要的切文g名,没h能够q入那个目录?

譬如Q键入:(x)

chmod a-x tigger

来删除每个h的执行权限?

下面是当你试图?cd 命o(h)来进?tigger 目录时会(x)发生的情况:(x)

bash: tigger: Permission denied


下一步,恢复你自己和你的l群的权限:(x)

chmod ug+x tigger


现在Q如果你?ls -dl 命o(h)来检查一下,你会(x)发现只有其它人(othersQ被拒绝?jin)到目?tigger 的访问权?

13.14.2. 使用数字来改变权?

q记得关?chmod 的速记W号的方法吗Q这里向你介l另一个改变权限的Ҏ(gu)Q一开始,它可能会(x)昑־有点复杂?

回到 sneakers.txt 文g的原始权限:(x)

-rw-rw-r-- 1 test test 39 3?11 12:04 sneakers.txt

每种权限讄都可以用一个数值来代表Q?

  • r = 4

  • w = 2

  • x = 1

  • - = 0

当这些D加在一P它的d便用来设立特定的权限。譬如,如果你想有读取和写入的权限,你会(x)得到一个gؓ(f) 6 的dQ?Q读取)(j)+ 2Q写入)(j)= 6?

sneakers.txt 文g的数字权限设|如下:(x)

- (rw-) (rw-) (r--)
| | |
4+2+0 4+2+0 4+0+0

所有者的d为六Q组的d为六Q其他h的d为四。这个权限设|读?664?

如果你想改变 sneakers.txt 文g的权限,因此你的l群中的人没有写入权Q但是仍旧能够读取文件的话,从这l数字中减掉二(2Q就可以删除写入权限?jin)?

然后Q这l数值就变成六四四(644Q?

要实现这些新讄Q键入:(x)

chmod 644 sneakers.txt

现在Q列举这个文件来校验改变。键入:(x)

ls -l sneakers.txt

输出应ؓ(f)Q?br />

-rw-r--r-- 1 test test 39 3?11 12:04 sneakers.txt

现在Q组和其他人都没有?jin)到文g sneakers.txt 的写入权。要归还l群到文件的写入权,在第二组权限中加?w (2) 的值就可以?jin)?br />

chmod 664 sneakers.txt
warning.png警告
把权限设?666 ?x)允许每个hҎ(gu)件或目录都有d和写入的权限。把权限设ؓ(f) 777 允许每个人都有读取、写入和执行的权利。这些权限可能会(x)允许Ҏ(gu)密文件的改Q因此,一般来_(d)使用q类讄是不明智的?br />

q里是一个某些常用设|、数倹{以?qing)它们的含义的列表?x)

  • -rw------- (600) ?只有所有者才有读取和写入的权限?

  • -rw-r--r-- (644) ?只有所有者才有读取和写入的权限;l群和其他h只有d的权限?

  • -rwx------ (700) ?只有所有者才有读取、写入、和执行的权限?

  • -rwxr-xr-x (755) ?所有者有d、写入、和执行的权限;l群和其他h只有d和执行的权限?

  • -rwx--x--x (711) ?所有者有d、写入、和执行权限Q组和其他人只有执行权限?

  • -rw-rw-rw- (666) ?每个人都能够d和写入文件。(误}慎用这些权限。)(j)

  • -rwxrwxrwx (777) ?每个人都能够d、写入、和执行。(再重申一ơ,q种权限讄可能?x)很危险。)(j)

下面列D?jin)一些对目录的常见设|:(x)

  • drwx------ (700) ?只有所有者能在目录中d、写入?

  • drwxr-xr-x (755) ?每个人都能够d目录Q但是其中的内容却只能被所有者改变?



黑灵 2006-07-22 17:22 发表评论
]]>
fcitx配置文ghttp://www.aygfsteel.com/mstar/archive/2006/07/22/59540.html黑灵黑灵Sat, 22 Jul 2006 07:31:00 GMThttp://www.aygfsteel.com/mstar/archive/2006/07/22/59540.htmlhttp://www.aygfsteel.com/mstar/comments/59540.htmlhttp://www.aygfsteel.com/mstar/archive/2006/07/22/59540.html#Feedback0http://www.aygfsteel.com/mstar/comments/commentRss/59540.htmlhttp://www.aygfsteel.com/mstar/services/trackbacks/59540.html  fcitx的配|文件ؓ(f)~/.fcitx/configQ其中的选项均ؓ(f)中文(~码为gb2312)Q从中可以了(jin)解几乎所有的功能。下面是配置文g内容(具体的值可能会(x)有所不同)Q?br />

[E序]
昄字体=*
昄字体大小=24
ȝ口字体大?13
是否使用AA字体=1

[输出]
数字后跟半角W号=1
Enter键行?2
分号输入英文=0
大写字母输入英文=0
联想方式止页=1

[界面]
候选词个数=5
ȝ口是否?D界面=0
输入条?D界面=2
ȝ口隐藏模?1
是否自动隐藏输入?1
光标?92 210 131
ȝ口背景色=220 220 220
ȝ口线条色=100 180 255
ȝ口输入法名称?170 170 170 150 200 150 0 0 255
输入H背景色=240 240 240
输入H提C=255 0 0
输入H用戯入色=0 0 255
输入H序可=200 0 0
输入H第一个候选字?0 150 100
#该颜色值只用于拼音中的用户自造词
输入H用戯l色=0 0 255
输入H提C编码色=100 100 255
#五笔、拼音的单字/pȝ词组均用该颜色
输入H其它文本色=0 0 0
输入H线条色=100 200 255
输入H箭头色=255 150 255

#除了(jin)“中英文快速切换键”外Q其它的热键均可讄Z个,中间用空格分?br />[热键]
打开/关闭输入?CTRL_SPACE
#中英文快速切换键 可以讄为L_CTRL R_CTRL L_SHIFT R_SHIFT
中英文快速切换键=L_CTRL
光标跟随=CTRL_K
GBK支持=CTRL_M
联想支持=CTRL_L
全半?SHIFT_SPACE
中文标点=ALT_SPACE
上一?-
下一?=
W二三候选词选择?SHIFT

[输入法]
使用拼音=1
使用双拼=0
使用Z=1
使用码表=1
提示词库中的词组=0

[拼音]
使用全拼=0
拼音自动l词=1
保存自动l词=0
增加拼音常用?CTRL_8
删除拼音常用?CTRL_7
删除拼音用户词组=CTRL_DELETE
#重码调整方式说明Q?-->不调? 1-->快速调? 2-->按频率调?br />拼音单字重码调整方式=2
拼音词组重码调整方式=1
拼音常用词重码调整方?0
是否模糊an和ang=0
是否模糊en和eng=0
是否模糊ian和iang=0
是否模糊in和ing=0
是否模糊ou和u=0
是否模糊uan和uang=0
是否模糊c和ch=0
是否模糊f和h=0
是否模糊l和n=0
是否模糊s和sh=0
是否模糊z和zh=0


黑灵 2006-07-22 15:31 发表评论
]]>
fcitx配置http://www.aygfsteel.com/mstar/archive/2006/07/22/59539.html黑灵黑灵Sat, 22 Jul 2006 07:11:00 GMThttp://www.aygfsteel.com/mstar/archive/2006/07/22/59539.htmlhttp://www.aygfsteel.com/mstar/comments/59539.htmlhttp://www.aygfsteel.com/mstar/archive/2006/07/22/59539.html#Feedback1http://www.aygfsteel.com/mstar/comments/commentRss/59539.htmlhttp://www.aygfsteel.com/mstar/services/trackbacks/59539.html
      export XMODIFIERS="@im=YOUR_XIM_NAME" 

  上面的YOUR_XIM_NAME为XIME序在系l注册的名字。应用程序启动时?x)根据该变量查找相应的XIM服务器。因此,即便 pȝ中同时运行了(jin)若干个XIME序Q一个应用程序在某个时刻也只能用一个XIM输入法。有时候?zhn)会(x)遇到这U情况,明明XIM已经启动?jin),但应用程序就? 无法使用。这往往是因为XMODIFIERS讄不正所_(d)如?zhn)配置pȝ时在不同的脚本文件中修改?jin)XMODIFIERSQ从而导致X启动时与启动完成 后该变量不一致?br />

  fcitx~省注册的XIM名ؓ(f)fcitxQ但如果fcitx启动时XMODIFIERS已经讄好,fcitx?x)自动以pȝ的设|来注册合适的名字。因此,对于新安装的Mandrake和RedHatQ最单的Ҏ(gu)是执行以下命令:(x)

      cd /usr/bin
ln -sf fcitx chinput

  然后重新启动X卛_。如果该Ҏ(gu)不行Q那(zhn)需要手工设|环境变量。一般可以在~/.bashrc增加行:(x)

      export XMODIFIERS="@im=fcitx"
export XIM=fcitx
export XIM_PROGRAM=fcitx

  然后重新d当前用户Q启动X卛_。如果fcitx没有自动启动Q?zhn)需要在X下的命o(h)行上执行Q?br />

      fcitx

  fcitx默认以后台方式运行,如果(zhn)不想以q种方式q行Q可以按以下方式q行Q?br />

      fcitx -nb


黑灵 2006-07-22 15:11 发表评论
]]>
ubuntu + xglhttp://www.aygfsteel.com/mstar/archive/2006/07/22/59531.html黑灵黑灵Sat, 22 Jul 2006 05:11:00 GMThttp://www.aygfsteel.com/mstar/archive/2006/07/22/59531.htmlhttp://www.aygfsteel.com/mstar/comments/59531.htmlhttp://www.aygfsteel.com/mstar/archive/2006/07/22/59531.html#Feedback0http://www.aygfsteel.com/mstar/comments/commentRss/59531.htmlhttp://www.aygfsteel.com/mstar/services/trackbacks/59531.htmlXGL是很酷啊Q不q我的笔记本q?jin)吧。看?jin)看配置也很ȝ?ch)。等我给台式Z的好昑֍以后倒是可以试试。不q说实话Q这东西倒是没啥实用性,无非是给人看一下自己有多酷|了(jin)。装在台式机上也没h来看Q没意思。估计以后也不过装了(jin)。除非攒够钱可以在买个高档笔记本Q还有点意思?br />http://www.ubuntuforums.org/showthread.php?t=127090

黑灵 2006-07-22 13:11 发表评论
]]>
单的bak命o(h)http://www.aygfsteel.com/mstar/archive/2006/07/22/59530.html黑灵黑灵Sat, 22 Jul 2006 04:43:00 GMThttp://www.aygfsteel.com/mstar/archive/2006/07/22/59530.htmlhttp://www.aygfsteel.com/mstar/comments/59530.htmlhttp://www.aygfsteel.com/mstar/archive/2006/07/22/59530.html#Feedback0http://www.aygfsteel.com/mstar/comments/commentRss/59530.htmlhttp://www.aygfsteel.com/mstar/services/trackbacks/59530.html

黑灵 2006-07-22 12:43 发表评论
]]>
LumaQQ的桌面快h?/title><link>http://www.aygfsteel.com/mstar/archive/2006/06/04/50361.html</link><dc:creator>黑灵</dc:creator><author>黑灵</author><pubDate>Sun, 04 Jun 2006 15:07:00 GMT</pubDate><guid>http://www.aygfsteel.com/mstar/archive/2006/06/04/50361.html</guid><wfw:comment>http://www.aygfsteel.com/mstar/comments/50361.html</wfw:comment><comments>http://www.aygfsteel.com/mstar/archive/2006/06/04/50361.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/mstar/comments/commentRss/50361.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/mstar/services/trackbacks/50361.html</trackback:ping><description><![CDATA[ <pre class="file">[Desktop Entry]<br />Name=LumaQQ<br />Comment=QQ Client<br />Exec=/opt/LumaQQ/lumaqq<br />Icon=/opt/LumaQQ/QQ.png<br />Terminal=false<br />Type=Application<br />Categories=Application;Network;</pre> <img src ="http://www.aygfsteel.com/mstar/aggbug/50361.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/mstar/" target="_blank">黑灵</a> 2006-06-04 23:07 <a href="http://www.aygfsteel.com/mstar/archive/2006/06/04/50361.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>我在linux下的常用E序http://www.aygfsteel.com/mstar/archive/2006/06/04/50227.html黑灵黑灵Sun, 04 Jun 2006 02:57:00 GMThttp://www.aygfsteel.com/mstar/archive/2006/06/04/50227.htmlhttp://www.aygfsteel.com/mstar/comments/50227.htmlhttp://www.aygfsteel.com/mstar/archive/2006/06/04/50227.html#Feedback0http://www.aygfsteel.com/mstar/comments/commentRss/50227.htmlhttp://www.aygfsteel.com/mstar/services/trackbacks/50227.html
我比较喜Ƣ你用ubuntu, 感觉q个Linux是给???不是lh"?? 我本人对"?Linux也没什么追?

windowsq程桌面 rdesktop -- 我感觉这个对我来说非帔R? 因ؓ(f)现在的世界是M开Windows?br />lftp -- 虽然我更喜欢囑Ş界面的Ftpl端, 但gftp对中文支持太差了(jin)
lumaQQ 不上QQ是不行的
QTerm ?88用的
Skype 有时用的?br />Adobe Acrobat Reader
OpenOffice
Beep Media Player
MPlayer
Bluefish Editor
Boa Constructor
SPE
Umbrello
stardict
Eclipse
FreeMind
FireFox
ThunderBird



黑灵 2006-06-04 10:57 发表评论
]]>
[备䆾]mount 命o(h)详解http://www.aygfsteel.com/mstar/archive/2006/05/20/47223.html黑灵黑灵Sat, 20 May 2006 13:50:00 GMThttp://www.aygfsteel.com/mstar/archive/2006/05/20/47223.htmlhttp://www.aygfsteel.com/mstar/comments/47223.htmlhttp://www.aygfsteel.com/mstar/archive/2006/05/20/47223.html#Feedback0http://www.aygfsteel.com/mstar/comments/commentRss/47223.htmlhttp://www.aygfsteel.com/mstar/services/trackbacks/47223.htmlfat32的分?br />mount -o codepage=936,iocharset=cp936 /dev/hda7 /mnt/cdrom (mount -t vfat -o iocharset=cp936 /dev/hda7 /mnt/cdrom)
ntfs的分?br />mount -o iocharset=cp936 /dev/hda7 /mnt/cdrom
iso文g
mount -o loop /abc.iso /mnt/cdrom
软盘
mount /dev/fd0 /mnt/floppy
USB闪存
mount /dev/sda1 /mnt/cdrom

所?etc/fstab内容 mount -a

可以指定文g格式"-t 格式", 格式可以为vfat, ext2, ext3{?

镜像文gQ?br />mount fileName mountPoint -o loopQfileName是镜像文件名(*.iso,*.img)Q其它的不用说了(jin)Q跟上面一栗用例:(x)如我有一个a.iso光盘镜像文gQmount a.iso a -o loopQ这栯入目录a你就能浏览a.iso的内容了(jin)Q?.img文g的用法一栗?br />
昄中文斚w,如果是fedora core 1 的话Q用utf8更好
mount -o iocharset=uft8 /dev/hda1 /mnt/c
mount -o iocharset=uft8 /dev/sda1 /mnt/usb
mount -t smbfs //ip_addr/share/dir /mnt/smb/share -o iocharset=uft8,username=name, password=passwd


开机就mount上windows下的分区
自动windows的d盘挂?mnt/d上,用vi打开/etc/fstabQ加入以下一?br />/dev/hda5 /mnt/d vfat defaults,codepage=936,iocharset=cp936 0 0
注意Q先得手工徏立一?mnt/d目录
mount局域网上其他windows机器׃n出的目录(bjchenxu)
mount -t smbfs -o username=guest,password=guest //machine/path /mnt/cdrom

黑灵 2006-05-20 21:50 发表评论
]]>
[备䆾]Linux init详解http://www.aygfsteel.com/mstar/archive/2006/04/02/38709.html黑灵黑灵Sun, 02 Apr 2006 03:36:00 GMThttp://www.aygfsteel.com/mstar/archive/2006/04/02/38709.htmlhttp://www.aygfsteel.com/mstar/comments/38709.htmlhttp://www.aygfsteel.com/mstar/archive/2006/04/02/38709.html#Feedback0http://www.aygfsteel.com/mstar/comments/commentRss/38709.htmlhttp://www.aygfsteel.com/mstar/services/trackbacks/38709.html Linux init详解

Linux init详解
init是Linuxpȝ操作中不可缺的E序之一?

  所谓的initq程Q它是一个由内核启动的用L(fng)q程?

  内核自行启动Q已l被载入内存Q开始运行,q已初始化所有的讑֤驱动E序和数据结构等Q之后,通过启动一个用L(fng)E序init的方式,完成引导q程。所?init始终是第一个进E(其进E编号始lؓ(f)1Q?

  内核?x)在q去曾用过init的几个地Ҏ(gu)扑֮Q它的正位|(对Linuxpȝ来说Q是/sbin/init。如果内核找不到initQ它?yu)׃?x)试着q行/bin/shQ如果运行失败,pȝ的启动也?x)失败?

 一、什么是INIT:
  init是Linuxpȝ操作中不可缺的E序之一?

  所谓的initq程Q它是一个由内核启动的用L(fng)q程?

  内核自行启动Q已l被载入内存Q开始运行,q已初始化所有的讑֤驱动E序和数据结构等Q之后,通过启动一个用L(fng)E序init的方式,完成引导q程。所?init始终是第一个进E(其进E编号始lؓ(f)1Q?

  内核?x)在q去曾用过init的几个地Ҏ(gu)扑֮Q它的正位|(对Linuxpȝ来说Q是/sbin/init。如果内核找不到initQ它?yu)׃?x)试着q行/bin/shQ如果运行失败,pȝ的启动也?x)失败?

  二、运行?

  那么Q到底什么是q行U呢Q?

  单的_(d)q行U就是操作系l当前正在运行的功能U别。这个别从1? Q具有不同的功能?

  不同的运行定义如下Q?可以参考Red Hat Linux 里面?etc/inittabQ?

  # 0 - 停机Q千万不能把initdefault 讄? Q?

  # 1 - 单用h?

  # 2 - 多用P没有 NFS

  # 3 - 完全多用h?标准的运行)

  # 4 - 没有用到

  # 5 - X11 Qxwindow)

  # 6 - 重新启动 Q千万不要把initdefault 讄? Q?

  q些U别?etc/inittab 文g里指定。这个文件是init E序L的主要文Ӟ最先运行的服务是放?etc/rc.d 目录下的文g。在大多数的Linux 发行版本中,启动脚本都是位于 /etc/rc.d/init.d中的。这些脚本被用ln 命o(h)q接? /etc/rc.d/rcn.d 目录?q里的n 是q行U?-6)

  三、运行别的配置

  q行U别的配|是?etc/inittab行内q行的,如下所C:(x)

  12 : 2 : wait : / etc / init.d / rc 2

  W一个字D|一个Q意指定的标签Q?br />
  W二个字D表C一行适用于运行那个别(q里?Q;

  W三个字 D表C入运行别时Qinit应该q行W四个字D内的命令一ơ,而且init应该{待该命令结束?etc/init.d/rc命o(h)q行启动和终止输入以便进入运行?时所需的Q何命令?

  W四个字D中的命令执行设|运行别时的一切“杂zZ。它启动已经没有q行的服务,l止不应该再在新q行U别内运行的服务。根据Linux版本的不同,采用的具体命令也不同Q而且q行U别的配|也是有差别的?

  init启动Ӟ它会(x)?etc/inittab内查找一个代码行Q这一行指定了(jin)默认的运行别:(x)

  id : 2 : initdefault :

  你可以要求init在启动时Q进入非默认q行U别Q这是通过为内核指定一个“single”或“emergency?命o(h)行参数来实现的。比如说Q内核命令行参数的指定可通过LILO来执行。这样一来,你就可以选择单用h式了(jin)Q即q行U别1Q?

  pȝ正在q行Ӟtelinit命o(h)可更改运行别。运行别发生变化时Q?init ׃(x)?etc/inittabq行相应的命令?

  四?etc/inittab中的Ҏ(gu)配置

  /etc/inittab中,有几个特D的Ҏ(gu),允许init重新ȀzȝD事件。这些特D特性都是用W三个字D中的特D关键字标记出来的。比如:(x)

  1. powerwait

  允许init在电(sh)源被切断Ӟ关闭pȝ。其前提是具有U P S和监视U P Sq知init甉|已被切断的Y件?

  2. ctrlaltdel

  允许init在用户于控制台键盘上按下C t r l + A l t + D e ll合键时Q重新启动系l。注意,如果该系l放在一个公共场所Q系l管理员可将C t r l + A l t + D e ll合键配|ؓ(f)别的行ؓ(f)Q比如忽略等?

  3. sysinit

  pȝ启动时准备运行的命o(h)。比如说Q这个命令将清除/tmp?

  上面列出的特D关键字不完整。其他的关键字及(qing)其用详情,可参考你的inittab手册c(din)?

  五、在单用h式下引导

  一个重要的q行U别是单用h式(q行U别1Q,该模式中Q只有一个系l管理员使用特定的机器,而且可能少地运行系l服务,其中包含d。单用户 模式对少数管理Q务(比如?usr分区上运行fsckQ而言Q是很有必要的,因ؓ(f)q需要卸载分区,但这是不可能的,除非所有的服务pȝ已被杀歅R?

  一个正在运行的pȝ可以q入单用h式,具体做法是利用initQ请求运行?。内核启动时Q在内核命o(h)行指定single或emergency? 键字Q就可进入运行??jin)。内核同时也为init指定命o(h)行, init从关键字得知自己不应该采用默认的q行U别Q内核命令行的输入方式和你启动系l的方式有关Q?

  有时Q以单用h式进行启动是必要的,q样一来,用户在装入分Z前,或至在装入分散?usr分区之前Q能手工q行fsckQ在分散的文件系l上QQ何活动都可能使其更ؓ(f)分散Q所以应该尽可能地运行fsckQ?

  如果自动化的fsck在启动时p|?jin),启动脚本init的运行将自动q入单用h式。这样做是ؓ(f)?jin)防止系l用不q诏的文件系l,q个文gpȝ是f s c k不能自动修复的。文件系l不q诏的现象极为少见,而且通常?x)导致硬盘的不连贯或实验性的内核释放Q但最好能做到防?zhn)于未然?

  ׃安全上的考虑Q在单用h式下Q启动外壌本之前,配置得当的系l会(x)要求用户提供root密码。否则,它会(x)单地为L I L O输入合适的一行代码,以r o o t的n份登录(当然Q如?etc/passwd已经׃文gpȝ的问题而不q诏?jin),׃适合q里的原则了(jin)Qؓ(f)对付q种情况Q你最好随时准备一张启? 盘)(j)?

  不同的运行有不同的用处Q也应该Ҏ(gu)自己的不同情形来讄?

  例如Q如果丢׃(jin)root口o(h)Q那么可以让机器启动q入单用L(fng)态。在启动后的 lilo 提示W下输入Q?br />
  init=/bin/sh rw 使机器进入运行1 Qƈ?root 文gpȝ挂ؓ(f)d。他?x)蟩q所有系l认证,让你可以使用passwd E序来改变root口o(h)Q然后启动到一个新的运行?/span>

黑灵 2006-04-02 11:36 发表评论
]]>
[备䆾]Solaris理员常?68条命令简明手?/title><link>http://www.aygfsteel.com/mstar/archive/2006/03/17/35889.html</link><dc:creator>黑灵</dc:creator><author>黑灵</author><pubDate>Fri, 17 Mar 2006 15:32:00 GMT</pubDate><guid>http://www.aygfsteel.com/mstar/archive/2006/03/17/35889.html</guid><wfw:comment>http://www.aygfsteel.com/mstar/comments/35889.html</wfw:comment><comments>http://www.aygfsteel.com/mstar/archive/2006/03/17/35889.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/mstar/comments/commentRss/35889.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/mstar/services/trackbacks/35889.html</trackback:ping><description><![CDATA[Solaris理员常?68条命令简明手?br />SysAdmin Commands<br /><br />Debugging<br /><br />truss executable<br />/* Trace doing of given command ( useful debugging ) */<br /><br />truss -f -p <pid of a shell><br />/* Using multiple windows, this can be used to trace setuid/setgid programs */<br /><br />Arp, ethernet trouble shooting<br /><br />arp -a .<br />/* Shows the ethernet address arp table */<br /><br />arp -d myhost<br />/* Delete a stale ethernet entry for host myhost */<br /><br />Disk Commands<br /><br />du -k .<br />/* Reports disk space used in Kilobytes */<br /><br />du -sk .<br />/* Reports only total disk space used in Kilobytes */<br /><br />du -sk *|sort -k1,1n<br />/* Reports total disk space used in Kilobytes in present directory */<br /><br />du -ad /var | sort -nr<br />/* Tells you how big the /var files are in reverse order */<br /><br />fdformat -d -U<br />/* Format diskette */<br /><br />/usr/bin/iostat -E<br />/* Command to display drives statistics */<br /><br />/bin/mount -F hsfs -o ro /dev/sr0 /cdrom<br />/* Mount an ISO 9660 CDROM */<br /><br />newfs -Nv /dev/rdsk/c0t0d0s1<br />/* To view the superfblocks available */<br /><br />prtvtoc /dev/rdsk/c0t0d0s2<br />/* Disk geometry and partitioning info */<br /><br />quot -af<br />/* How much space is used by users in kilobytes */<br /><br />Driver Parameters<br /><br />ndd /dev/ip \?<br />/* Shows IP variables in the kernel */<br /><br />ndd /dev/ip ip_forwarding<br />/* Tells you if forwarding is on (=1) */<br /><br />ndd -set /dev/ip ip_forwarding 1<br />/* Enables IP forwarding between interfaces */<br /><br />File Manipulation<br /><br />dos2unix | -ascii <filename><br />/* Converts DOS file formats to Unix */<br /><br />split<br />/* Split files into pieces */<br /><br />[vi] : %s/existing/new/g<br />/* Search and Replace text in vi */<br /><br />[vi] :set nu<br />/* Set line numbers in vi */<br /><br />[vi] :set ts=[num]<br />/* Set tab stops in vi */<br /><br />File System<br /><br />cat /dev/null > filename<br />/* Zero's out the file without breaking pipe */<br /><br />dd if=/dev/rdsk/... of=/dev/rdsk/... bs=4096<br />/* Make a mirror image of your boot disk */<br /><br />df -k | grep dg| awk '{print $6}' |xargs -n 1 umount<br />/* Unmount all file systems in disk group dg */<br /><br />fsck -F ufs /dev/rdsk/c0t0d0s0<br />/* Check a UFS filesystem on c0t0d0s0 */<br /><br />fsck -F ufs -y /dev/rdsk/c0t0d0s0<br />/* Check answering yes to all questions */<br /><br />fsck -F ufs -o b=97472 /dev/rdsk/c0t0d0s0<br />/* Check using an alternate super block */<br /><br />gzip -dc file1.tar.gz | tar xf -<br />/* Unpack .tar.gz files in place */<br /><br />gzip -d -c tarball.tgz | (cd /[dir];tar xf - ) &<br />/* Unpacking tarballs to diff location */<br /><br />ln [-fhns] <source file> <destination file><br />/* Creating hard links and soft links */<br /><br />ls -la | awk '{ print $5," ",$9 }' | sort -rn<br />/* File sizes of current directory */<br /><br />mount -f pcfs /dev/dsk/c0d0p1 /export/dos<br />/* Mount DOS fdisk partition from Solaris */<br /><br />mount -F ufs -o rw,remount /<br />/* Used to remount root to make it writeable */<br /><br />mount -o remount,logging /spare<br />/* Re-mount the ro file system rw and turn on ufs logging */<br /><br />pax -rw . /newdir<br />/* Efficient alternative for copying directories */<br /><br />prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c0t1d0s2<br />/* Cloning Partitiontables */<br /><br />tar cvf filename.tar<br />/* Create a tape (tar) archive */<br /><br />tar xvf filename.tar<br />/* Extract a tape (tar) archive */<br /><br />tar cf - . | (cd /newdir ; tar xf -)<br />/* Recursively copy files and their permissions */<br /><br />/sbin/uadmin x x<br />/* Syncs File Systems and Reboots systems fast */<br /><br />zcat [cpio file] | cpio -itmv<br />/* Show the contents of a compressed cpio */<br /><br />zcat <patch_file.tar.Z | tar xvf -<br />/* Extract the patch_file that is a compressed tar file */<br /><br />File Transfer<br /><br />get filename.suffix |"tar xf -"<br />/* Undocumented Feature of FTP */<br /><br />put "| tar cf - ." filename.tar<br />/* Undocumented Feature of FTP */<br /><br />find . -depth | cpio -pdmv /path/tobe/copied/to<br />/* Fast alternative to cp -pr */<br /><br />sendport<br />/* Transferring large numbers of files within the same ftp control session */<br /><br />General<br /><br />/usr/bin/catman -w<br />/* Create windex databases for man page directories */<br /><br />FQ_FILENAME=<fully_qualified_file_name>; echo ${FQ_FILENAME%/*}<br />/* Extract directory from fully-qualified file name. */<br /><br />mailx -H -u <username><br />/* List out mail headers for specified user */<br /><br />set filec<br />/* Set file-completion for csh */<br /><br />uuencode [filename] [filename] | mailx -s "Subject" [user to mail]<br />/* Send files as attachments */<br /><br />Hardware<br /><br />cfgadm<br />/* Verify reconfigurable hardware resources */<br /><br />m64config -prconf<br />/* Print M64 hardware configuration */<br /><br />m64config -depth 8|24<br />/* Sets the screen depth of your M64 graphics accelerator */<br /><br />m64config -res 'video_mode'<br />/* Change the resolution of your M64 graphics accelerator */<br /><br />Kernel<br /><br />/usr/sbin/modinfo<br />/* Display kernel module information */<br /><br />/usr/sbin/modload <module><br />/* Load a kernel module */<br /><br />/usr/sbin/modunload -i <module id><br />/* Unload a kernel module */<br /><br />nm -x /dev/ksyms | grep OBJ | more<br />/* Tuneable kernel parameters */<br /><br />/usr/sbin/sysdef<br />/* Show system kernal tunable details */<br /><br />Memory<br /><br />prtconf | grep Mem<br />/* Display Memory Size */<br /><br />Network Information<br /><br />ndd /dev/arp arp_cache_report<br />/* Prints ARP table in cache with IP and MAC address */<br /><br />netstat -a | grep EST | wc -l<br />/* Displays number active established connections to the localhost */<br /><br />netstat -k hme0<br />/* Undocumented netstat command */<br /><br />netstat -i<br />/* Show the TCP/IP network interfaces */<br /><br />netstat -np<br />/* Similar to arp -a without name resolution */<br /><br />netstat -r<br />/* Show network route table */<br /><br />netstat -rn<br />/* Displays routing information but bypasses hostname lookup. */<br /><br />netstat -a | more<br />/* Show the state of all sockets */<br /><br />traceroute <ipaddress><br />/* Follow the route to the ipaddress */<br /><br />Network/Tuning<br /><br />ifconfig eth0 mtu 1500<br />/* Change MTU of interface */<br /><br />ifconfig eth0 10.1.1.1 netmask 255.255.255.255<br />/* Add an Interface */<br /><br />/sbin/ifconfig hme0:1 inet 10.210.xx.xxx netmask 255.255.0.0 broadcast 10.210.xxx.xxx<br />/* Virtual Interfaces */<br /><br />/sbin/ifconfig hme0:1 up<br />/* Bring virtual interface up */<br /><br />/usr/sbin/ndd -set /dev/hme adv_100fdx_cap 1<br />/* Nailling to 100Mbps */<br /><br />ndd -set /dev/ip ip_addrs_per_if 1-8192<br />/* To set more than 256 virtual ip addresses. */<br /><br />ndd -set /dev/tcp tcp_xmit_hiwat 65535<br />/* Increase TCP-transmitbuffers */<br /><br />ndd -set /dev/tcp tcp_recv_hiwat 65535<br />/* Increase TCP-receivebuffers */<br /><br />Processes<br /><br />fuser -uc /var<br />/* Processes that are running from /var */<br /><br />kill -HUP `ps -ef | grep [p]roccess | awk '{print $2}'`<br />/* HUP any related process in one step */<br /><br />lsof -i TCP:25<br />/* Mapping port with process */<br /><br />pfiles <pid><br />/* Shows processes' current open files */<br /><br />pkill -n <name><br />/* Kill a process by name */<br /><br />kill `ps -ef | grep program_name | grep -v grep | cut -f8 -d ' '`<br />/* pkill for solaris 2.6 */<br /><br />prstat -a<br />/* An alternative for top command */<br /><br />/usr/ucb/ps -aux | more<br />/* Displays CPU % usage for each process in ascending order */<br /><br />/usr/ucb/ps -auxww | grep <process name><br />/* Gives the full listing of the process (long listing) */<br /><br />ps -ef | grep -i <string> | awk '{ print $2 }'<br />/* Creates list of running PID by */<br /><br />ps -ef | grep -v "0:00" | more<br />/* Gives you a list of any process with CPU time more than 0:00 */<br /><br />ps -ef | more<br />/* Show all processes running */<br /><br />ps -eo pid,args<br />/* List processes in simplified format */<br /><br />ps -fu oracle|grep pmon<br />/* See which instances of Oracle are running */<br /><br />/usr/proc/bin/ptree <pid><br />/* Print the parent/child process 'tree' of a process */<br /><br />/usr/proc/bin/pwdx <pid><br />/* Print the working directory of a process */<br /><br />top -b 1<br />/* Returns the process utilizing the most cpu and quits */<br /><br />Resource Management<br /><br />/usr/bin/ldd [filename]<br />/* List the dynamic dependencies of executable files */<br /><br />/usr/proc/bin/pmap pid<br />/* Report address space map a process occupies */<br /><br />Route Configuration<br /><br />route add net 128.50.0.0 128.50.1.6 1<br />/* Adds route to 128.50 network via 128.50.1.6 */<br /><br />route change 128.50.0.0 128.50.1.5<br />/* Changes the destination address for a route */<br /><br />route delete net 128.50.0.0 128.50.1.6<br />/* Deletes route to 128.50 network */<br /><br />route get [hostname]<br />/* Which interface will be used to contact hostname */<br /><br />route monitor<br />/* Monitors traffic to the routes */<br /><br />route flush<br />/* Removes all entries in the route table */<br /><br />Searching Items<br /><br />egrep "patterna|patternb" <filename><br />/* Search for multiple patterns within the same file */<br /><br />find . -exec egrep -li "str" {} \;<br />/* Find a string in files starting cwd */<br /><br />find / -fstype nfs -prune -o fstype autofs -prune -o -name filename -print<br />/* Find without traversing NFS mounted file systems */<br /><br />find . -mtime -1 -type f<br />/* Find recently modified files */<br /><br />find / -mtime <# of days><br />/* Find files modified during the past # of days */<br /><br />find . ! -mtime -<days> | /usr/bin/xargs rm -rf<br />/* Finds and removes files older than <days> specified */<br /><br />find . -type f -exec grep "<sub-string>" {} \; -print<br />/* Find files (and content) containing <sub-string> within directory tree */<br /><br />find . -type f -exec grep -l "<sub-string>" {} \;<br />/* Find filenames containing <sub-string> within directory tree */<br /><br />find . -type f -print | xargs grep -i [PATTERN]<br />/* Recursive grep on files */<br /><br />find / -user <username><br />/* Find all files owned by <username> */<br /><br />find / | grep [file mask]<br />/* Fast way to search for files */<br /><br />find <start_path> -name "<file_name>" -exec rm -rf {} \;<br />/* Recursively finds files by name and automatically removes them */<br /><br />find /proc/*/fd -links 0 -type f -size +2000 -ls<br />/* Find large files held open by a process */<br /><br />ls -lR | grep <sub_string><br />/* Fast alternative to find */<br /><br />Security<br /><br />echo 'Please go away' > /etc/nologin<br />/* Stops users logging in */<br /><br />find / -perm -0777 -type d -ls<br />/* Find all your writable directories */<br /><br />find / -type f -perm -2000 -print<br />/* Find all SGID files */<br /><br />find / -type f -perm -4000 -print<br />/* find all SUID files */<br /><br />Set Terminal Options<br /><br />stty erase ^H<br />/* Sets the Backspace Key to erase */<br /><br />stty erase ^?<br />/* Sets the Delete Key to erase */<br /><br />stty sane<br />/* Rreset terminal after viewing a binary file. */<br /><br />tput rmacs<br />/* Reset to standard char set */<br /><br />Snoop Your Network<br /><br />snoop -d pcelx0<br />/* Watch all network packets on device pcelx0 */<br /><br />snoop -o /tmp/mylog pcelx0<br />/* Saves packets from device pcelx0 to a file */<br /><br />snoop -i /tmp/mylog host1 host2<br />/* View packets from logfile between host1 & host2 */<br /><br />snoop -i /tmp/mylog -v -p101<br />/* Show all info on packet number 101 from a logfile */<br /><br />snoop -i /tmp/mylog -o /tmp/newlog host1<br />/* Write a new logfile with all host1 packets */<br /><br />snoop -s 120<br />/* Return the first 120 bytes in the packet header */<br /><br />snoop -v arp<br />/* Capture arp broadcasts on your network */<br /><br />Swap File<br /><br />mkfile -v 10m /export/disk1/myswap<br />/* Makes a 10 Megabyte swapfile in /export/disk */<br /><br />mkfile -nv 10m /export/disk1/myswap<br />/* Makes an empty 10 Megabyte swapfile */<br /><br />Swap Space<br /><br />swap -s<br />/* List the amount of swap space available, also see mkfile */<br /><br />swap -a /export/disk1/swapfile<br />/* Add a swapfile */<br /><br />swap -d /dev/dsk/c0t0d0s4<br />/* Deletes a swap device */<br /><br />swap -l<br />/* List the current swap devices */<br /><br />System Configuration<br /><br />drvconfig ; disks<br />/* Adding hot-plug disks to system */<br /><br />/usr/sbin/eeprom auto-boot? false<br />/* Changes eeprom autoboot? setting without going to Ok prompt */<br /><br />/usr/sbin/eeprom diag-switch? true<br />/* Set the system to perform diagnostics on the next reboot. */<br /><br />/usr/sbin/eeprom local-mac-address?=true<br />/* Multiple Port Network Card Setting */<br /><br />/usr/sbin/grpck<br />/* Check /etc/group file syntax */<br /><br />/usr/sbin/pwck<br />/* Check /etc/passwd file syntax */<br /><br />/usr/sbin/sys-unconfig<br />/* Clear host specific network configuration information */<br /><br />System Information and Monitoring<br /><br />coreadm -e log<br />/* Report global core */<br /><br />/bin/echo "0t${stamp}>Y\n<Y=Y" | adb<br />/* Convert UNIX timestamp to something human-readable */<br /><br />/usr/sbin/eeprom<br />/* Show eeprom parameters */<br /><br />grep "\-root" /var/adm/sulog | grep -v \+ | tail -25<br />/* List most recent attempts to switch to superuser account. */<br /><br />isainfo -bv<br />/* Quickly checkout if machine is in 32 or 64 bit mode */<br /><br />last<br />/* Tells who was or still is on the system */<br /><br />logger -i<br />/* Log the process ID */<br /><br />psradm -f [processor id]<br />/* Take processor offline */<br /><br />/usr/sbin/prtconf -vp<br />/* Show system configuration details */<br /><br />/usr/platform/`/bin/uname -i`/sbin/prtdiag -v<br />/* System Diagnostics */<br /><br />prtconf -pv | grep banner-name |awk -F\' ' { print $2 } ' | head -1<br />/* Show actual model name of machine */<br /><br />psrinfo | wc -l<br />/* Display number of processors */<br /><br />sar -A <time in sec><br />/* Provides cumulative system report. */<br /><br />sar -a <time in sec><br />/* Report use of file access system routines. */<br /><br />sar -u<br />/* Report CPU Utilization */<br /><br />telnet <remote machine> 13 | grep ':'<br />/* Get the time on remote Unix machine */<br /><br />uname -a<br />/* Displays system information */<br /><br />vmstat 10<br />/* Displays summary of what the system is doing every 10 seconds */<br /><br />who -b<br />/* Displays the date of the last system reboot. */<br /><br />ypcat hosts | sort -n -t. +0 -1 +1 -2 +2 -3 +3 -4<br />/* Take the input of "ypcat hosts" or "cat /etc/inet/hosts" and sort by IP. */<br /><br /><img src ="http://www.aygfsteel.com/mstar/aggbug/35889.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/mstar/" target="_blank">黑灵</a> 2006-03-17 23:32 <a href="http://www.aygfsteel.com/mstar/archive/2006/03/17/35889.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">º</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ⶫ</a>| <a href="http://" target="_blank">¡</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Դ</a>| <a href="http://" target="_blank">ȫ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ȫ</a>| <a href="http://" target="_blank">Դ</a>| <a href="http://" target="_blank">̨</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ī񹤿</a>| <a href="http://" target="_blank">Ƽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">մ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ʳ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ˮ</a>| <a href="http://" target="_blank">¹</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ĵʡ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ϻ</a>| <a href="http://" target="_blank">̨</a>| <a href="http://" target="_blank">ˮ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>