
Sunday, August 23, 2009
Posted by venu k
9 comments | 7:10 AM

Hard link: Hard link refers to "The specific location of physical data".Hard Link is a mirror copy of the original file.Hard links share the same inode.Any changes made to the original or Hard linked file will reflect the other.Even if you delete any one of the files, nothing will happen to the other hard links.But soft link which points to deleted hard link become a dangling soft link.You can't link a directory even within the same file system.Hard...
Friday, August 14, 2009
Posted by venu k
4 comments | 11:43 PM
#!/bin/bash#**********************************************************************************************# gcd.sh: greatest common divisor uses Eclidean algorithm# Usage : gcd.sh num1 num2 num3 .... (any number of arguments)# The algorithm used to calculate the GCD two integers is known as the Euclidean algorithm.# Based on Euclidean algorithm this script is written(Recursive method).# For checking supplied arguments are integers or not check GCD of two numbers code#***********************************************************************************************#...
Thursday, August 13, 2009
Posted by venu k
5 comments | 10:35 AM
I written three different methods to calculate GCD of two numbersMethod 1: #!/bin/bash#*******************************************************************************************# gcd.sh: greatest common divisor uses Eclidean algorithm# Usage : gcd.sh number1 number2# The algorithm used to calculate the GCD between two integers is known as the Euclidean# algorithm(Recursive method).#*******************************************************************************************#----------------------------------------------------------------------#...
Monday, August 10, 2009
Posted by venu k
6 comments | 8:57 AM
#************************************************************************************#Locking a terminal using a shell script. #This script locks your terminal until you enter correct password (open2world)#It also traps signals and interrupts #You can't terminate the script by Ctrl+c or Ctrl+\ or Ctrl+z and Ctrl+d #************************************************************************************cleartrap "" 1 2 3 20lines=`tput lines`b=`expr...
Subscribe to:
Posts (Atom)