20070328

unix sex philosophy

unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep

20070325

edquota problem | open is a directory

You should touch a filename quota, not to create a folder quota. Rename it or remove the folder.

from docs.sun.

crontab edit problem

if crontab -e gives some random number, and you didn't see any existing cron, might be you didn't set your EDITOR variable:

$ EDITOR=/usr/bin/vi
$ export EDITOR
$ crontab -e

20070324

understanding between blocks and kilo bytes

I admit I'm a bit slow for this kind of basic convertion. During my young age, I always wonder about blocks and bytes and how to convert between them and recently it became clear after some try and error calculation on df output. This is important because some program require user to input size in blocks such as ulimit.

In ulimit manpage, I read an option which is
-c The number of 512-byte blocks on the size of core dumps.

So I can assume that 1 block equals to 512 bytes (to reader, please assist, thanks). If I look at one line of my df output:

/export/home (/dev/dsk/c0t0d0s7 ):53645828 blocks 3232280 files

Then I know that my home directory took 53645828 * 512 / 1024 of Kilobytes. To be sure it is correct, use df -b:

/dev/dsk/c0t0d0s7 26822914

That means 53645828 blocks equals to 26822914 bytes.

one of the reasons apt-get fails

My apt-get failed lastnight, and I realized it was because of my /etc/services:

finger 79/tcp
ssh 80/tcp # customized port
ssh 80/udp # customized port
#www 80/tcp http # WorldWideWeb HTTP
#www 80/udp # HyperText Transfer Protocol
link 87/tcp ttylink


After I commented the ssh lines and uncommented the www lines, apt-get runs fine.

20070308

forgot, forgot, forgot...

insmod Insert an LKM into the kernel.
rmmod Remove an LKM from the kernel.
depmod Determine interdependencies between LKMs.
kerneld Kerneld daemon program
ksyms Display symbols that are exported by the kernel for use by new LKMs.
lsmod List currently loaded LKMs.
modinfo Display contents of .modinfo section in an LKM object file.
modprobe Insert or remove an LKM or set of LKMs intelligently. For example, if you must load A before loading B, Modprobe will automatically load A when you tell it to load B.

from tldp.