Category Archives: Guides

How to Reopen Closed Tabs on Google Chrome

have you ever accidentally closed your tab while working/surfing the internet? this can be very frustrating, lucky you chrome allow us to restore recently closed tabs in a shortcut key.

Using a Keyboard Shortcut:
By using the keyboard shortcut Ctrl+Shift+T, Chrome will open the last tab that was closed. Use the keyboard shortcut again, and it will open the tab that was closed before that, and so on. You can use this method to restore up to the last 10 tabs that have been closed during your browsing session.

Using the New Tab Page:
Open up a new tab. Go to Recently closed tabs section located in the lower-right of the page. You will find the last 3 tabs that have recently been closed during your browser session.

How to Send email direct from linux terminal

To send an email from console you need to use mail command, which is an intelligent mail processing system which has a command syntax reminiscent of ed with lines replaced by messages.

To send an email to [email protected] you need to type following command:

$ mail [email protected]

Subject: Hello
Kamusta kana? sana ok ka/// :)
. <Type  DOT (.) followed by ENTER KEY>
Cc: <Press ENTER KEY>

You need to type . (dot) to send an email.

To send contains of file (such as /var/log/messages) as mail body then use following command:

$ mail -s 'Subject here' [email protected] < /var/log/messages

Please note that above command will NOT route an email if you do not have properly configured MTA/mail server. and check your spam folder for paid services like gmail for the mail might end up there

Test if local SMTP server is running

To test if a local SMTP server is running, you can try to ping the port 25

$ echo -e “quit” | nc localhost 25

220 ubuntu ESMTP Postfix (Ubuntu)
221 2.0.0 Bye
If no SMTP server is listening

$ echo -e “quit” | nc localhost 25

localhost.localdomain [] 25 (?) : Connection refused