Author Archive: Bobbin Zachariah

Founder of LinOxide , passionate lover of linux and technology writer. Started his career in Linux / Opensource from 2000. Love travelling, blogging and listening music. Reach Bobbin Zachariah about me page and also below google plus page.

rss feed Google Plus

11 Linux du Commands to Check Disk Usage Size of Files and Folders

The Linux disk usage du command is one of the best commands in Linux to check the directory size including its other contents as well as the size of individual files. This command is also very useful in checking the space hogs mean those files and directories that are consuming a large amount of disk […]

June 20, 2013 | By
| Reply More

Linux Shell Script To Delete Empty Directories

Linux shell script that search for empty directories and delete them. If system administrator don't want to keep empty directories, this script can quickly remove all of them. You can input the path where you need to search for empty directories. Script will confirm before it deletes the empty directory. Linux Shell Script #!/bin/bash #Check […]

June 17, 2013 | By
More

Linux Shell Script To Find Kernel Version From Multiple Servers

Linux shell script that will login to server via ssh and get kernel version via uname -r command. List of all the servers are in server_list.txt file, script will take name by name and try to ssh with the root user and run uname -r command. Output will be written to variable and after into […]

June 13, 2013 | By
| 1 Reply More

Linux Shell Script: Find Memory Usage Of An Application/Program In Linux

Memstat.sh is a shell script that calculates linux memory usage for each program / application. Script outputs shared and private memory for each program running in linux. Since memory calculation is bit complex, this shell script tries best to find more accurate results. Script use 2 files ie /proc//status (to get name of process) and […]

June 5, 2013 | By
| 1 Reply More

Linux - Finger Command To Find User Details

On Linux operating system, you can simply check the information of any user from remote or local command line interface. That is ‘finger’ command. To use this command, your Linux machine need have ‘finger’ utility installed on it. This feature is a very basic with Linux system, so you can easily find install package proper […]

May 29, 2013 | By
| Reply More

Shell Script To Check File Exists Under A Path

This Shell script helps to check if the specified file exits under a given path. Script prompt you to provide file name and directory path. Shell Script #!/bin/bash #We tell user that he need to enter filename echo -n "Please enter file to check: " #We write filename to variable file read file #We tell […]

May 26, 2013 | By
| Reply More

Shell Script To Run Commands In Users Home Directory

Shell script that run linux commands in all users home directories and outputs its results. Scripts accepts user name and command as the argument. Shell Script #Next line tell with shell to use #!/bin/bash #we store in variable path to file UserListFile=/tmp/user.list #We create function with name Usage Usage () { #printing help echo "$0 […]

May 22, 2013 | By
| Reply More

Linux Shell Script To Delete Duplicate Files

Shell Script is looking for duplicated names in files withing sub-directories, and after check md5sum. If md5sum of the files same then we conclude its duplicated. This helps system administrator to delete unnecessary copy to reduce used space. Script also ask user to enter directory where to search, and check if input is empty. Linux […]

May 19, 2013 | By
| 2 Replies More

Shell Script To Find Directories Which Consume Highest Space

Shell script to show X number of directories that consume space in a path. This script useful if user need quickly to clean up space, so first user need to check what directory take most of space and the delete according to your wish. Commands used are du with different keys , then sort and […]

May 16, 2013 | By
| Reply More

Linux Shell Script To Collect Linux System Information

Shell script that take info about linux system like logged users, uptime, load average, free memory, disk usage. Script helps to see all info about system in a second. Administrator can modify the script bit ,if it requires to find system information from multiple server. Script run commands w, uname, uptime, free and df. From […]

May 12, 2013 | By
| Reply More

How To Create or Display Hidden Files / Folders in Linux

Here we will discuss how to create and display hidden files and folders in linux/Unix Operating Systems. Mostly our favorite 'ls' command doesn't display hidden files or folders in linux. If any file's name starts from '.' prefix (for ex: .test) then that will call as hidden file and 'ls' or 'll' command will not […]

May 7, 2013 | By
| Reply More

6 Linux chattr Commands to Protect Files by Immutable Feature

chattr (Change Attribute) is a command line Linux utility that is used to change the file attributes. It sets/unsets certain attributes to a file in Linux system to secure accidental deletion or modification of important files and folders, even though you are logged in as a root user. So, you make the file immutable. In […]

May 5, 2013 | By
| Reply More

How To Change Time Zone In MYSQL

This article is all about changing time zone in MySql. If mysql time zone is not correct, if different from your time zone, you can change it by following steps. Check current mysql time zone You should check the current time as below Login to mysql with root user, run below command #mysql or #mysql […]

May 2, 2013 | By
| Reply More

HowTo List And Delete Iptables Rules

Iptables is a kind of firewall which is by default available in all Linux distributions. When you install any distro of Linux, iptable would be surely there but, it is programmed in a way that it allows all the traffic by default. There is lot more information available on iptables, but most of them are […]

April 30, 2013 | By
| Reply More