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 [...]
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 the [...]
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