How to resolve dependencies generated during installation with “dpkg -i” ?

While I was trying to install chrome browser of a fresh installed ubuntu 14.04 with deb, it reported following error, dpkg: dependency problems prevent configuration of google-chrome-stable: google-chrome-stable depends on libappindicator1; however: Package libappindicator1 is not installed. dpkg: error processing package google-chrome-stable (–install): dependency problems – leaving unconfigured Errors were encountered while processing: google-chrome-stable Now, … Read more

How to disable and / or enable ICMP ping from Linux host ?

To disable the ICMP ping from certain Linux host, lets say which has IP of use below command, Type below command on the console of linux PC on which you are trying to enable / disable the ping. Now, if you try to ping to same machine, we will get something like below, Now … Read more

How to rename part of a filename and replace the string in those files ?

If we want to rename only certain part of the filename, for example, we want to change a filename “memory_map.c” to “memory_mapping.c” i.e. we just want to rename “map” to “mapping” of the file, we  can use following command, So, using above command, we change only part of filename from “map” to “mapping”. Now, we … Read more

Linux commands to find files based on type, size etc.

Use below command for finding some files and searching text into those files, repalce DIR_TO_SEARCH with the proper path of directory you want to search in, Linux command for find and grep This command, finds all c files in DIR_TO_SEARCH directory and greps text “main” into those c files and prints the path of file … Read more

How to resolve : getaddrinfo: new-hostname No address associated with hostname

Recently, we got the error “getaddrinfo: new-hostname No address associated with hostname” while working with some commands, This error means, we are missing somewhere an assignment of IP and its related hostname. You can use command “hostname”, To get, the hostname of your machine. Now, to assign an IP with this hostname is, Add, a … Read more

How to Change Hostname for Ubuntu Machine ?

Recently, we wanted to change the hostname of our Ubuntu machine, Lets, check now what is current hostname, So, its set to “new-hostname” Now, to change the hostname lets say “my-netbook”, user the command as, Now, open a new terminal and verify that its changed, So, its now changed 🙂 In certain case, using sudo … Read more

Fix : Lost Sudo user in Linux

Add “Sudo” user If somehow you Lost a “sudo” user which happened to me today, after upgrading Ubuntu, you can recover the sudo used by following below commands, switch to root user, Now, after successful reboot, you should have a “sudo” user as your “username” Subscribe with Valid Email Id to receive updates in Inbox. … Read more

How to Get the Size of a Directories in Linux ?


If you want to identify which folder in your disk is consuming more disk space, so as you can delete some of files / folders to free up the disk space, there is an excellent tool “ncdu” which shows the highest disk consuming directories at the top, and you can easily browse to the individual … Read more