You are currently browsing the LlamaLabs weblog archives for May, 2007.

Linux shell shortcuts

Geoffrey Grosenbach, author of the nuby on rails blog, wrote an article titled Useful Shell Shortcuts.
He talked about the Using csh & tcsh book and gave some examples of some shortcuts. I remember using those shortcuts for a while but eventually forgot them all.
What I really found interesting were the CLI tools for interfacing with [...]

The -p flag for netstat on Linux

For a long time I had been using lsof to track down which process was listening on a particular port, and I know i’m not the only person to find it that way. The -p flag for netstat helps out by showing the pid of the process that owns that listening socket. Here are [...]

Adding an additional swap file on Linux

Adjust your call to dd to get the size you want.

[root@host ~]# dd if=/dev/zero of=/swapfile bs=1024 count=1048576
1048576+0 records in
1048576+0 records out
[root@host ~]# sync
[root@host ~]# mkswap /swapfile
Setting up swapspace version 1, size = 1073737 kB
[root@host ~]# swapon /swapfile
[root@host ~]# echo “/swapfile swap swap defaults 0 0″ >> /etc/fstab

  • May 2007
    M T W T F S S
    « Apr   Mar »
     123456
    78910111213
    14151617181920
    21222324252627
    28293031  
  • Author

    A little something about you, the author. Nothing lengthy, just an overview.