Search Results for: awk

Check Status Of All Services In Linux

Write bash shell to check the status of all services which are running/stopped in Linux? Ans : #Created on:02-02-2011 #Last modified:02-02-2011 #Purpose:To Check the status of services #Author:Surendra Kumar Anne #The below for loop will take inputs from chkconfig command to check the services which are running/stoped on the machine. for i in `chkconfig --list | awk '{print $1}' | grep -v :` do /sbin/service $i status done This script will take services names from checkconfig command and execute service command on that service. Update:Recently I came to know that there is a command which you can right away use to list all the services which are in running or stopped status In Ubuntu initctl list In Redhat based: #service...

Read More

How To See Total Processes Are Running, Files Opened, Memory Used By An User?

To see all the process run by a perticular user #ps -u username u -u used to specify user name, and u at the end of the command shows you complete path of the command executed. Example #ps -u rajesh u or To see all the files opened by user #lsof | grep username Example #lsof | grep rajesh To see memory used by a perticular user #ps -u username u | awk ‘{print $2}’ Example ps -u krishna u | awk ‘{print $2}’ Now you will get all the PID’s run by user Krishna. So try to get memory usage by using pmap command. Please visit https://www.linuxnix.com for more linux admin...

Read More

How to : Use Google Sets And Squared To Enhance Your Linux Administration Skills

Long time back we thought of posting this, now the time has come. This post is all about how to use Google’s tools “unknown to many” services to enhance your admin skills. I strongly suggest you to use these tools extensively to enhance your knowledge on a given topic. Most of the people will say use google, google is your friend etc. Even some times Google is refered as GOD in IT industry which is acronym to “Google Oriented Development” but they don’t tell how to use it. This is one step towards it. OK let us come to what actually this Google Sets and Squired do for us. Google sets(http://labs.google.com/sets) : Automatically create sets of items from a few examples. This can be easily explained by taking an example. Suppose you know How to add user, Remove user, Modify user details,Delete user.. etc. In Linux user management. Now you want to enhance more of your knowledge on this area. So just type below commands in google sets form.useraddadduserusermoduserdelnewusersWhen you sa grow to “small set” it will create a set of commands/related words up to 15 in number. If this 15 commands is not enough for you enhancing of knowledge you can “grow set”. Once that set is grown you can use that keywords to enhance your knowledge. Enter your commands in to this form Once you fill the...

Read More

Over 16,000 readers, Get fresh content from “The Linux juggernaut”

Email Subscribe

ABOUT ME..!

My photo
My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra (@) linuxnix dot com.