Programming Tutorials

linux Tutorials

41. while loop in Linux Shell Script

By: Dorris : 2011-01-15

Description: Loop is executed as long as given condition is true. For e.g..>the for loop program can be written using while loop as:


42. case..esac..in Linux Shell Script

By: Dorris : 2011-01-15

Description: The case statement is good alternative to Multilevel if-then-else-fi statement. It enable you to match several values against one variable. Its easier to read and write.


43. sh -x and sh -v in Linux

By: Dorris : 2011-01-15

Description: While programming shell sometimes you need to find the errors (bugs) in shell script and correct the errors (remove errors - debug). For this purpose you can use -v and -x option with sh or bash command to debug the shell script. General syntax is as follows:


44. Download Linux. Which linux and where?

By: Dorris : 2011-01-11

Description: When Linus Torvalds first developed Linux back in August of 1991, the operating system basically consisted of his kernel and some GNU tools. With the help of others Linus added more and more tools and applications.


45. How to use Linux?

By: Vivek G. : 2011-01-09

Description: You can use Linux as Server Os or as stand alone Os on your PC. (But it is best suited for Server.) As a server Os it provides different services/network resources to client. Server Os must be:


46. What is a Shell Script in linux?

By: Vivek G. : 2011-01-09

Description: Computer understands the language of 0's and 1's called binary language. In early days of computing, instructions are provided using binary language, which is difficult for all of us, to read and write. So in Os there is special program called Shell. Shell accepts your instruction or commands in English (mostly) and if its a valid command, it is pass to kernel.


47. How to write your first Shell Script in linux?

By: Vivek G. : 2011-01-09

Description: Following steps are required to write shell script:


48. Variables in Linux Shell Script

By: Vivek G. : 2011-01-09

Description: To process our data/information, data must be kept in computers RAM memory. RAM memory is divided into small locations, and each location had unique number called memory location/address, which is used to hold our data. Programmer can give a unique name to this memory location/address called memory variable or variable (Its a named storage location that may take different values, but only one at a time).


49. How to define User defined variables in Linux Shell Script

By: Vivek G. : 2011-01-09

Description: 'value' is assigned to given 'variable name' and Value must be on right side = sign.


50. Rules for Naming variable names in Linux Shell Script

By: Vivek G. : 2011-01-09

Description: Variable name must begin with Alphanumeric character or underscore character (_), followed by one or more Alphanumeric character. For e.g. Valid shell variable are as follows