PS1

My PS1 appears as; pecan.makuch.org:/mkm/home/mkm $ cat .ps1 # set PS1 prompt to host:path crlf $ PS1=’$PWD’ PS1=”$HOSTNAME:$PS1″ PS1=”$PS1 $ ” pecan.makuch.org:/mkm/home/mkm $ host followed by pwd and a newline. I have my init file (.bashrc or .profile) load my .ps1 This way when I cd to a long path, I still have the whole […]

Continue reading

dstamp.pl

This is a perl snippet I use for logging date/time stamps; $ cat x this is a file with some data in it typically log file type of stuff pecan.makuch.org:/mkm/home/mkm $ cat x | dstamp.pl 20111103-002836 20111103-002836 this is a file 20111103-002836 with 20111103-002836 some data in it 20111103-002836 typically log file type of stuff […]

Continue reading

df.squeeze.pl

I don’t like the way df looks, not even df -h. $ df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_pecan-root 448G 6.5G 419G 2% / tmpfs 1.9G 76K 1.9G 1% /dev/shm /dev/sda1 985M 74M 861M 8% /boot /dev/mapper/mkm-mkm 443G 367G 55G 88% /mkm /dev/mapper/pecanbackup-pecanbackuplv 1.8T 1.2T 605G 66% /mnt/localbackup ns4300n0:/VOLUME1/BACKUP 2.8T 2.2T 584G […]

Continue reading