Tag Archives: shell

Linux: Run Last Command as Sudo

unix linux

Objective: You wanted to run a command as root but you forgot to use sudo. There is a useful shell shortcut (using Event Designators) to re-run the previous command under sudo.

Special Shell Variables

As I always have a tendency to forget the special variables used in shell scripts, I am going to document down the variables here.

Command Line Calendar

How often have you wanted to take a quick glance of the calendar in your desktop? You may need to click a couple of dozen of times on your desktop if the period your are interested in is more than a decade back.