How To Quickly Check Your Unread Gmail From Linux Mint / Ubuntu Terminal

Here’s how to quickly check your unread Gmail from Linux Mint / Ubuntu terminal:

1. Issue the following command at the terminal -

sudo apt-get install curl

How To Quickly Check Your Unread Gmail From Linux Mint / Ubuntu Terminal

2. Now, to quickly check unread Gmail, issue the following command at the terminal -

curl -u <username>@gmail.com:<password> –silent “https://mail.google.com/mail/feed/atom” | tr -d ‘\n’ | awk -F ‘<entry>’ ‘{for (i=2; i<=NF; i++) {print $i}}’ | sed -n “s/<title>\(.*\)<\/title.*name>\(.*\)<\/name>.*/\2 – \1/p”

How To Quickly Check Your Unread Gmail From Linux Mint / Ubuntu Terminal

How To Quickly Check Your Unread Gmail From Linux Mint / Ubuntu Terminal