偶然发现看 man page 的时候 search 过的字符串是有 history 的, 猜想是 less 的功能, 查了一下根目录下的文件, 发现有一个 .lesshst, 查 less 的 manual, 里面有说到 .lesshst:
. . . Name of the history file used to remember search commands and shell commands between invocations of less. . .
Sometimes I wonder about my life. I lead a small life. Well, valuable but small. And sometimes I wonder, do I do it because I like it, or because I haven't been brave? So much of what I see reminds me of something I read in a book, when shouldn't it be the other way around? I don't really want an answer. I just want to send this cosmic question out into the void. So good night, dear void.
偶然发现看 man page 的时候 search 过的字符串是有 history 的, 猜想是 less 的功能, 查了一下根目录下的文件, 发现有一个 .lesshst, 查 less 的 manual, 里面有说到 .lesshst:
. . . Name of the history file used to remember search commands and shell commands between invocations of less. . .
Posted by
Display Name
-
4:30 PM
0
comments
Labels: Utils
Posted by
Display Name
-
6:02 PM
0
comments
Labels: Make/Build, Utils
ubuntu 6.06 上看 man pages 的时候能全屏显示, 但 Fedora 3 上却不能, 研究一番, 可以自己编译 man-db 来解决:
Posted by
Display Name
-
5:26 PM
0
comments
Labels: Debian/Ubuntu, Utils
Expect 5.43 的 script 结束时总是很慢, 用 expect -d 发现最后有条 message:
write() failed to write anything - will sleep(1) and retry...查了下 code, 在 exp_chan.c : ExpOutputProc() 中有个 sleep(1), 把它换成 usleep(10 * 1000) 就好了.
Posted by
Display Name
-
6:14 PM
0
comments
Labels: Tcl/Expect
原来 Del.icio.us 是 Yahoo 的了, 而且改名为 Delicious.com 了.
Posted by
Display Name
-
12:54 PM
0
comments
Labels: Misc
Public networks (both wired and wireless) are great. After all, what would life be without connecting while at airports, hotels and coffee shops? However, the danger to your personal data exists even if you connect to a fee based open network. Your passwords, credit card numbers, and any data you send can be seen and associated with you personally. Standard antivirus software won't protect you as this threat is on the network, not your laptop or iPhone.
That's why AnchorFree is pleased to offer Hotspot Shield. Our application keeps your Internet connection secure and anonymous on public networks.
Posted by
Display Name
-
12:59 PM
0
comments
Posted by
Display Name
-
2:50 PM
0
comments
Labels: Google
If set to any value, then unknown will not attempt to auto-exec any commands.
SEE ALSO: auto_execok(n)
Posted by
Display Name
-
1:12 PM
0
comments
Labels: Tcl/Expect
Posted by
Display Name
-
7:16 PM
0
comments
Labels: Network/Security
Posted by
Display Name
-
11:14 AM
0
comments
Labels: Misc, Shell/Scripting
# terminfo and termcap for nice 256 color terminal
# allow bold colors - necessary for some reason
attrcolor b ".I"
# tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# erase background with current bg color
defbce "on"
Posted by
Display Name
-
4:49 PM
0
comments
Webmin is a web-based interface for system administration for Unix. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more. Webmin removes the need to manually edit Unix configuration files like /etc/passwd, and lets you manage a system from the console or remotely. See the standard modules page for a list of all the functions built into Webmin, or check out the screenshots.
Posted by
Display Name
-
9:26 AM
0
comments
在 ubuntu 6.06.2 上试验了一下, pid 长到 32767 之后, 新的 pid 并不是从 1 开始分配的, 而是从 300 开始, 貌似系统给自己预留了一些 :-)
Posted by
Display Name
-
12:44 PM
0
comments
Labels: *nix, Debian/Ubuntu
Posted by
Display Name
-
3:18 PM
0
comments
Labels: Network/Security, Utils
# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
The following packages have been kept back:
openssh-client openssh-server
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
# apt-get install openssh-client openssh-server
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
openssh-blacklist
Suggested packages:
rssh
The following NEW packages will be installed:
openssh-blacklist
The following packages will be upgraded:
openssh-client openssh-server
2 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2909kB of archives.
After unpacking 4280kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com dapper-updates/main openssh-blacklist 0.1-1ubuntu0.6.06.1 [2125kB]
Get:2 http://us.archive.ubuntu.com dapper-updates/main openssh-server 1:4.2p1-7ubuntu3.4 [207kB]
Get:3 http://us.archive.ubuntu.com dapper-updates/main openssh-client 1:4.2p1-7ubuntu3.4 [577kB]
Fetched 2909kB in 45s (63.6kB/s)
Preconfiguring packages ...
Selecting previously deselected package openssh-blacklist.
(Reading database ... 93922 files and directories currently installed.)
Unpacking openssh-blacklist (from .../openssh-blacklist_0.1-1ubuntu0.6.06.1_all.deb) ...
Preparing to replace openssh-server 1:4.2p1-7ubuntu3.3 (using .../openssh-server_1%3a4.2p1-7ubuntu3.4_i386.deb) ...
Unpacking replacement openssh-server ...
Preparing to replace openssh-client 1:4.2p1-7ubuntu3.3 (using .../openssh-client_1%3a4.2p1-7ubuntu3.4_i386.deb) ...
Unpacking replacement openssh-client ...
Setting up openssh-blacklist (0.1-1ubuntu0.6.06.1) ...
Setting up openssh-client (4.2p1-7ubuntu3.4) ...
Setting up openssh-server (4.2p1-7ubuntu3.4) ...
* Restarting OpenBSD Secure Shell server... [ ok ]
#
Posted by
Display Name
-
10:10 AM
0
comments
Labels: Debian/Ubuntu