Quickly Find The Username Of Originally Logged In User Using Linux Command Line

wholog
surgeprice.display("ihaveapc.com_336x280_abovepost"); When using Linux Terminal (either in Ubuntu, Linux Mint or any other distribution) it is possible that the current user working at the Terminal will be different then the one that originally logged in. The below command will display the username that originally logged in to the system. logname To know who is the current user at the Terminal,...

A Menu Based Linux Shell Script To Display Local And Public IP Addresses Of The System

Listing local ip address of the system
When connected to the internet, the computer in use has a public ip address (or external ip address) that is assigned by the ISP and which is how it appears to the visiting websites and then there is the local ip address (or internal ip address) which is how it can be identified locally to other systems. Let’s suppose that we need a simple Linux shell script that offers a menu based choice like...

How To Download Facebook Albums Quickly Using Facepaste

Album download in progress through Facepaste
Facepaste is a Firefox add-on that makes it simple to downloads entire albums from Facebook. The advantage of using this add-on is that no third party can access your Facebook account on your behalf unlike many stand alone Facebook album downloaders. Install Facepaste from here by selecting “Add to Firefox”. After installing, to download any Facebook album, just select a picture from it and...

How To Quickly Backup/Restore WordPress Blog Using Linux Terminal

wp
It is important to have regular blog backups and WordPress blogs essentially have two components that need to be backed up :The WordPress database (that contains blog posts, comments, tags etc) The images and other stuff like config files (robots.txt, web server config and so on).Here is how to backup WordPress database named “wordpress” to a directory path /srv/dbdump directly through...

How To Quickly Transfer Files From One Linux System To Another Using netcat

How To Quickly Transfer Files From One Linux System To Another Using netcat
Here’s how to quickly transfer files from one Linux system to another using netcat: 1. Issue the following command in terminal on the source Linux system – cat <file name> | nc -l <port number> For example, to transfer a file ‘About.txt’ using port 5000, we need to issue the following command in terminal on the source Linux system – cat About.txt | nc -l 5000  2....

How To Quickly Switch Back To Previous Directory When Using Linux Terminal

Showing current working directory
One of the earlier posts described how to quickly switch to home directory when using Linux Terminal. What if one needs to go back to the previous directory when using the Terminal? Here is a simple way to do that : Open Terminal and type : cd - The below example shows the initial directory as /home/avp/Music. To switch back to it from another directory, simply issue the command as mentioned.This...