• RSS
  • SmsJobs
  • Sms
  • GoogleBuzz
  • Facebook
  • Twitter
  • Linkedin
  • Youtube
The Linux Juggernaut

The Linux Juggernaut

roles on……

Archive for February, 2011

Some times you want to rename a group of files to lower case from upper case.  This renaming can be achieved by using a shell script and a tr command which will translate upper case to lower case

Here is my version of the script to do the activity.

#Created on:02-02-2011
#Last modified:02-02-2011
#Purpose:To Convert files/folders from upper case to lower case names
#Author:Surendra Kumar Anne
#The below for loop will take inputs from Continue Reading
Posted by Surendra Anne On Sunday-Feb - 6 - 2011 2 Comments READ FULL POST

apt-get is the command to do package/application management in Debain based machines such as Ubuntu.

There is a slight difference between update and upgrade options.

#apt-get update

Is the command to update the source list, if you modify the source list or you want to make a sync refresh or added new ppa source then you should execute above command.

Where as

#apt-get upgrade

Command will try to download all the packages which are … Continue Reading

Posted by Surendra Anne On Saturday-Feb - 5 - 2011 2 Comments READ FULL POST

How can we show the  line numbers using vim?

Ans : It is easy to debug problem when vim shows line numbers.

This can be done when you are in command mode. To go to command more from any mode just press esc key

Then try typing below line and then enter.

:set nu

This will set the line number

How about without  setting the number?

Means  to remove the numbers  in the file

To … Continue Reading

Posted by Surendra Anne On Friday-Feb - 4 - 2011 1 Comment READ FULL POST

How to write bash shell to check the state 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 … Continue Reading

Posted by Surendra Anne On Thursday-Feb - 3 - 2011 2 Comments READ FULL POST

email newsletter

Redhat Flagship dist

Redhat announced that they are going to release RHEL7 by ...

12 examples to use f

Flower brackets examples This is a small post on how to ...

7 Linux read command

read command examples read command is useful in scripts when reading ...

7 linux sort command

Linux/Unix sort command examples This is a small tutorial on how ...

How to find command

How to find command location in Linux and Unix This is ...

  • About Linux Juggernaut

    How the blog name selected? Juggernaut: * a massive inexorable force that seems to crush everything in its way ...readmore>>

  • Contact Me

    Contact us Send an Email Phone number and vCard LinkedIn profile Advertise with us
  • About Me

    Surendra Kumar Chowdary

    My name is Surendra Kumar Anne. I am 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 Persistent Systems as Module Lead.   read more »