Dec 10, 2014

Current time in terminal - debian

Create a file 'now' and copy paste the following into it.

#!/bin/bash
date '+%A %D %X'

then save it and give executable permission to that file.
chmod +x ./now

Now copy that file to any of the system path. (echo $PATH gives the system paths)
cp ./now /usr/local/bin

that is it, next open a new terminal and type now and press enter. It will give the current time
Thursday 12/11/14 16:28:08

With a bit formatting we can have this printed in different colors.

#!/bin/bash
now=$(date '+%A %D %X')
red='\033[0;31m'
NC='\033[0m' # No Color
echo -e "${red}$now${NC}"


For Web Developer

  open -a "Google Chrome" --args --disable-web-security