Df command usage

rajeshkumar created the topic: df command usage Filesystems using more than 90% capacity df -hP | awk ‘{x=$5;sub (“%”,””,x)}x>75’ df -h | awk ‘{if(NF==1){x=$0;getline;if(int($4)>90)print x,$0}else if(int($5)>90) print}’ ssh -q rajesh…

Read more »

Frequently Used Shell Script

rajeshkumar created the topic: Frequently Used Shell Script Shell scripts to convert file names to lower case and upper case To convert to lower case: #!/bin/sh for i in *…

Read more »

Linux Tutorials: Commands to send an email in Linux

rajeshkumar created the topic: Various Commands to send an email in Linux Sending mail To send a message to one or more people, mailx can be invoked with arguments which…

Read more »

Setting the tab in Vim

rajeshkumar created the topic: Setting the tab in Vim Setting the tab in Vim $ sudo vim /etc/vim/vimrc Then add the following line: set tabstop=4 Next, save, exit and execute…

Read more »

Recovering a Recently opended deleted files

rajeshkumar created the topic: Recovering a Recently opended deleted files Recovering a Recently opended deleted files By using lsof, you can recover a deleted file that was opened already. This…

Read more »

Securing a directory

rajeshkumar created the topic: Securing a directory Securing a directory Here is a tip that uses the sticky bit feature of Linux to secure a directory. A sticky but ensures…

Read more »

Changing port of ftp and ssh

rajeshkumar created the topic: Changing port of ftp and ssh Changing port of ftp and ssh To Change the port of ssh, edit the file /etc/ssh/sshd_config and add the following…

Read more »

Make your pendrive bootable

rajeshkumar created the topic: Make your pendrive bootable Make your pendrive bootable if you can not boot from the DVD/CD-ROM drive, but can boot using USB device such as a…

Read more »

How to check ssh is working with public key / private key

rajeshkumar created the topic: How to check ssh is working with public key / private key Code – ssh serverhostname -o ‘BatchMode=yes’ -o ‘ConnectionAttempts=1’ true Every time a ssh attempt…

Read more »

Must have collection of shell script for any SCM admin

rajeshkumar created the topic: Must have collection of shell script for any SCM admin Hello Guys, In a busy schedule of SCM jobs, everyone must have a collection of shell…

Read more »

How to check ssh is working with public key / private key

rajeshkumar created the topic: How to check ssh is working with public key / private key Code – ssh serverhostname -o ‘BatchMode=yes’ -o ‘ConnectionAttempts=1’ true Every time a ssh attempt…

Read more »

Must have collection of shell script for any SCM admin

rajeshkumar created the topic: Must have collection of shell script for any SCM admin Hello Guys, In a busy schedule of SCM jobs, everyone must have a collection of shell…

Read more »

Create a script haven’t been accessed for a week, then delete them

rajeshkumar created the topic: Create a script haven’t been accessed for a week, then delete them Create a script for a cronjob that checks a special directory for files with…

Read more »

Questions to test your linux shell Script

rajeshkumar created the topic: Questions to test your linux shell Script www.scmgalaxy.com/index.php?option=com_k…34&id=427&Itemid=442 www.scmgalaxy.com/index.php?option=com_k…34&id=426&Itemid=442 www.scmgalaxy.com/index.php?option=com_k…34&id=425&Itemid=442 www.scmgalaxy.com/index.php?option=com_k…34&id=424&Itemid=442 www.scmgalaxy.com/index.php?option=com_k…34&id=423&Itemid=442 www.scmgalaxy.com/index.php?option=com_k…34&id=422&Itemid=442 www.scmgalaxy.com/index.php?option=com_k…34&id=419&Itemid=442 www.scmgalaxy.com/index.php?option=com_k…34&id=421&Itemid=442 www.scmgalaxy.com/index.php?option=com_k…34&id=420&Itemid=442 www.scmgalaxy.com/index.php?option=com_k…34&id=418&Itemid=442 www.scmgalaxy.com/index.php?option=com_k…34&id=431&Itemid=442 www.scmgalaxy.com/index.php?option=com_k…34&id=430&Itemid=442 www.scmgalaxy.com/index.php?option=com_k…34&id=428&Itemid=442 Regards, Rajesh Kumar Twitt me @…

Read more »
linux-shell-scripting-guide-and-tutorial

Linux Tutorials: Complete Reference for Commands & Scripting

Linux User Commands Linux Commands for User Linux Commands reference in scmGalaxy forum Linux Admin Commands Linux Commands for Administrator Main Responsibilities of the Linux System Administrator 20 pmap Commands…

Read more »
shell-script-parameters

Understand Shell Script Parameters – Reference

A parameter is an entity that stores values. It can be a name, a number or some special characters. Bash shell provides two kind of parameters. Positional Parameter and Special…

Read more »
read-xml-file-using-shell-script

How to read XML file by using shell script ?

This was like the first time where I had to write something that will be able to read something out of a XML file using a shell script. Usually I…

Read more »