How to check CentOS version ?

Recently we changed our hosting server to CentOS VPS, where we got the access to root user, and wanted to install some packages, for the same it was necessary to know the version of CentOS. We tried below command to know the version of CentOS. ( CentOS seems related to fedora, since we have used … Read more

Install SQLite3 on Ubuntu

If you are working on creating database for some project, higher chances are that you will end up creating database using some automated tool or install scripts, but sometimes you need to create database manually. This posts helps you with installation of SQLite database. For other information regarding databases’s refer to “Database, Backup, Restore” page. … Read more

How to recover data / folder deleted with rm -rf

Today Accidentally I deleted one of my folder in ubuntu which has contained important files, but I wanted to copy those to another machine by tarring it, while there was another archive / tar with same name, I wanted to delete that .tar but deleted folder resulting deleting very important files. To recover those files … Read more

FTP Clients for using on Ubuntu

For testing FTP server connection from Ubuntu command line, we can use following command, $ ftp my_ftp_server_IPConnected to my_ftp_server_IP220———- Welcome to Pure-FTPd [privsep] [TLS] ———-220-You are user number 4 of 50 allowed.220-Local time is now 14:37. Server port: 21.220-This is a private system – No anonymous login220-IPv6 connections are also welcome on this server.220 You … 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 192.168.0.100 use below command, Type below command on the console of linux PC on which you are trying to enable / disable the ping. $ sudo iptables -A INPUT -p icmp –icmp-type any -j REJECT $ sudo iptables -A OUTPUT … Read more

How to Add new user and Delete existing user on Ubuntu ?

In this post we demonstrate, how you can create a new user in Ubuntu, give the sudo / admin permissions to this user and also delete any existing user. Adding a new user in Ubuntu Now, if we check the home directory of the newly created user, we will see it only created “examples.desktop” and … 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, $ ls -al memory_map.c -rw-rw-r– 1 user user 642 Aug 19 22:53 memory_map.c $ rename ‘s/map/mapping/’ … Read more

Ubuntu doesn’t detect WiFi Access Point

Recently I came across very different problem when I moved to a place where there was few more access points, my laptop had ubuntu 14.04. [ Note: Users has reported that this works on latest Ubuntu versions also ] $ lsb_release -a I could see lot of other access points in my ubuntu network manager, … Read more