Tag Archive: Linux

Project: pwdshort – Bash Shell CWD Shortener

As a hardcore linux user, I frequently use the bash shell. As a developer I often have directories with long names, often with many subdirectories.

The problem I was encountering was that the CWD displayed in my $PS1 prompt was so long …

Continue reading »

Permanent link to this article: http://permafrostcodingstudio.com/articles/project-pwdshort-bash-shell-cwd-shortener/

Script: Indent Lines From Stdin

In many of my shell scripts, I call other shell scripts to accompish various tasks. Sometimes the output from these sub-script calls is useful, but I like to differentiate between the output from the sub-script and the main script. Enter indent-stdin: A basic …

Continue reading »

Permanent link to this article: http://permafrostcodingstudio.com/articles/script-indent-lines-from-stdin/

List Recently Installed Packages

To list all of the packages installed with apt-get install today: Ubuntu 13.04

$ cat /var/log/dpkg.log | egrep `date +%Y-%m-%d` | grep "\ install\ "

to limit it to N items, use tail:

$ cat /var/log/dpkg.log | egrep `date +%Y-%m-%d` | grep "\ install\ …

Continue reading »

Permanent link to this article: http://permafrostcodingstudio.com/articles/list-recently-installed-packages/