Check your unread messages in Gmail, from terminal
Using the following command, you can check your unread messages in gmail, from terminal: $ curl -u username –silent “https://mail.google.com/mail/feed/atom” | perl -ne ‘print “\t” if //; print “$2\n” if /(.*)/;’ replace username with your gmail username. This command will promt for your password, enter it and view your unread in your gmail account .
How to make terminal ask for password every time you type sudo command
when you type sudo command for the first time in a terminal it will ask you the sudo password.This password will be remembered by that terminal for 15 minutes by default. If you want terminal to ask for password each time you type sudo command just do as said below.1. Type at terminal sudo visudo
Read More