Bash In Bites(advanced)





This will be written piece by piece, slowly.

I do strongly recommend that you at least do help commandname or man command name.

This is the more advanced parts of introduction, not a fullblown course

It was inspired by a conversation with my beloved wife about how many people only have time for a small bash lesson per day. Her exact phrase was "bite sized bash".




This is too Geeky!!! I wanna wuss out!



Did you know that you can easily get more swap space for that cdrom remix (if you got hdd space that is, and root access or plenty of quota left)

dd if=/dev/zero of=/swap.img bs=1k count=32k

where 32k is the size in megs of the swap, ie 32k=32meg swap, 100k=100 meg swap

mkswap /swap.img
swapon /swap.img

your swap is now active, to remove it...

swapoff /swap.img
rm /swap.img


Did you know that:

^text_to_find^text_to_replace_it_with

will let you scan through the last commandline used with a "search replace"

for instance:
car blabla foo bar >>collection
-bash: car: command not found
^car^cat





w0nderer