Posts tagged as:

linux

Finding which package a file belongs to on Debian

December 14, 2009

If you’re new here, you may want to subscribe to my RSS feed. Or for more frequent updates you can follow me on Twitter. Thanks for visiting!With Debian there is a handy utility called apt-file which allows you to see which package owns a file even if it is not currently installed.
I used it earlier [...]

Read the full article →

Running a unix command as a background process

December 14, 2009

If you run a command and it takes a long time on unix it blocks the current terminal, however, if you hit CTRL – Z it pauses the job, then if you type bg it resumes the job in the background freeing up the current terminal.
Also, if you prepend a & before executing the command [...]

Read the full article →

Kill A Process Using It’s PID File

December 7, 2009

Quick Tip: kill $(cat /var/run/redis.pid)
I needed to do that earlier and didn’t know how.
EDIT: Turns out you can just do this as well: kill `cat /var/run/redis.pid`

Read the full article →