$ apropos "calcu*"
allcm (1) - force the most important Computer-Modern-fonts to be calculated
allec (1) - force the most important Computer-Modern-fonts to be calculated
allneeded (1) - force the calculation of all fonts now needed
bc (1) - An arbitrary precision calculator language
dc (1) - An arbitrary precision calculator
$ # As of March 2009, the latest version is 2.06
$ wget http://voxel.dl.sourceforge.net/sourceforge/\
pwgen/pwgen-2.06.tar.gz
$ tar xzf pwgen-2.06.tar.gz
$ cd pwgen-2.06
$ ./configure && make && sudo make install
为了构建 multitail,需要下载源代码、解压它并运行 make。(发行版的通用 makefile 中的选项对于大多数 UNIX 系统应该足够了。如果 make 运行失败,那么在顶层目录中寻找适合自己系统的 makefile)。
# As this article was written, the latest version of multitail was 5.2.2
$ wget http://www.vanheusden.com/multitail/multitail-5.2.2.tgz
$ tar xzf multitail-5.2.2.tgz
$ cd multitail-5.2.2
$ make
$ sudo make install
$ wget http://voxel.dl.sourceforge.net/sourceforge/p7zip/\
p7zip_4.65_src_all.tar.bz2
$ tar xjf p7zip_4.65_src_all.tar.bz2
$ cd p7zip_4.65
$ make
$ sudo make install
构建过程会生成并安装实用程序 7za。输入不带参数的 7za,即可看到可用命令和选项的列表。与 tar 相似,每个命令都是一个字母,比如 a 在存档中添加文件,x 提取文件。
为了试试这个实用程序,以多种格式创建 p7zip 源代码的存档,然后用 7za 解压每个存档:
$ zip -r p7.zip p7zip_4.65
$ 7za -ozip x p7.zip
$ tar cvf p7.tar p7zip_4.65
$ 7za -otar x p7.tar
$ bzip2 p7.tar
$ 7za -so x p7.tar.bz2 | tar tf -
从上到下,7za 依次解压 .zip、.tar 和 .bz2 存档。在最后一个命令中,7za 解压 .bz2 存档并把输出写到 stdout,在这里 tar 解压文件并编制目录。与 tar 相似,7za 可以作为管道(|)的源或目的地,因此很容易与其他实用程序组合在一起。
$ cat old
This
is
Monday.
$ cat new
This
is
Tuesday.
$ gzip old new
$ zdiff -c old.gz new.gz
*** - 2009-03-30 22:26:34.518217647 +0000
--- /tmp/new.10874 2009-03-30 22:26:34.000000000 +0000
***************
*** 1,3 ****
This
is
! Monday.
--- 1,3 ----
This
is
! Tuesday.
甚至可以用 cURL 在词典中查找单词:
$ curl dict://dict.org/d:stalwart
220 miranda.org dictd 1.9.15/rf on Linux 2.6.26-bpo.1-686
250 ok
150 1 definitions retrieved
151 "Stalwart" gcide "The Collaborative International Dictionary of English v.0.48"
Stalwart \Stal"wart\ (st[o^]l"w[~e]rt or st[add]l"-; 277),
Stalworth \Stal"worth\ (-w[~e]rth), a. [OE. stalworth, AS.
staelwyr[eth] serviceable, probably originally, good at
stealing, or worth stealing or taking, and afterwards
extended to other causes of estimation. See {Steal}, v. t.,
{Worth}, a.]
Brave; bold; strong; redoubted; daring; vehement; violent. "A
stalwart tiller of the soil." --Prof. Wilson.
[1913 Webster]
Fair man he was and wise, stalworth and bold. --R. of
Brunne.
[1913 Webster]
Note: Stalworth is now disused, or but little used, stalwart
having taken its place.
[1913 Webster]
.
250 ok [d/m/c = 1/0/20; 0.000r 0.000u 0.000s]
221 bye [d/m/c = 0/0/0; 0.000r 0.000u 0.000s]
UNIX
提供多种数据库,其中许多是开放源码的,一些数据库适用于各种应用程序,一些数据库是专用的。但是,大多数数据库是很大的独立应用程序(例如,MySQL
需要单独的安装、一些配置和它自己的守护进程),对于许多软件可能不需要使用这么复杂的数据库。请考虑一个在桌面上使用的地址簿程序:它适合部署
MySQL 来存储姓名和电话号码吗?可能不适合。
另外,如果应用程序要在非常小的设备或能力很有限的计算机上运行,那么应该怎么办?这类硬件可能不支持多处理、大量内存占
用或对物理存储的大量需求。显然,可以使用嵌入式数据库。通常情况下,嵌入式数据库打包为库,与应用程序代码直接链接。这种解决方案让应用程序独立于外部
服务,但是也要付出一定的代价:通常不能用 Structured Query Language (SQL) 表达查询。
为了构建 SQLite,需要从 SQLite 下载页面下载源代码集(由所有源代码组成的单一文件)、解压它并运行 ./configure && make && sudo make install。
$ # As of March 2009, the latest version was 3.6.11.
$ wget http://www.sqlite.org/sqlite-amalgamation-3.6.11.tar.gz
$ tar xzf sqlite-amalgamation-3.6.11.tar.gz
$ cd sqlite-3.6.11
$ ./configure && make
$ sudo make install
$ # Lighttpd requires libpcre3-dev and zlib1g-dev
$ wget http://www.lighttpd.net/download/lighttpd-1.4.22.tar.gz
$ tar xzf lighttpd-1.4.22.tar.gz
$ cd lighttpd-1.4.22
$ ./configure && make && sudo make install
接下来,必须创建一个配置。最简单的配置只需设置文档根、服务器端口、几个 Multipurpose Internet Mail Extension (MIME) 类型以及守护进程的默认用户和组: