Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I want to know about the file which can run multiple commands in linux.
In windows we use the batch files which can run multiple dos command
I want to know how we run multiple command by double click
And also want to know the command "pause" which is window dos command.which command is used in linux.
for examlpe i want to compile a java source file In window we write
but in linux
The method to put a number of commands in one file is a 'shell script'. It may use any extension (many people use .sh for scripts written for sh/bash), you need only to make sure it has executable permission set. The file looks this way
In the script you can use if, for and similar constructions. Details are in 'man bash' (waring: very long).
Which result would you like to have by using pause? Stop after a screen? Then it'd be
Good point...I don't know anything about bat files, so just suggested what I did know.
There's also "select", which is similar to read, though I can't recall how it's used at the moment....think it has to do with limiting the user to specific input.