Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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 would really appreciate some help with this script I am trying to make. If someone could help me, I would really appreciate it. Thank you.
The script needs to ask the users name and age and then output one of the below two statements depending on their age.
"Name" you are old enough to purchase alcohol.
"Name" you are not old enough to purchase alcohol.
After this the script needs to output today's date.
Then it should ask if the user would like to create a directory. If they enter a y for yes then it should ask for the absolute path of the directory and create it for them.
you won't need to use the date command. You'll need to use "read" to get input from the user, then an "if" statement to determine if what to output and then "echo" to write the output to the terminal. Telling you any more than that would essentially be doing your homework for you, and if we do that you won't really be learning, and you won't be able to do any of your more difficult homework.
So, do some reading (presumably you have course notes, and the link posted by DJ Shaji looks good) and then try to write the script. If you have problems, show us what you have done, explain the problem and we can make suggestions to help you.
This is one of MANY homework assignments I have that deal with bash scripts. If someone could just help me out with this one, you would be helping me more than you could imagine.
If you know you've got lots of homework that deals with bash scripting, wouldn't it be better if you learned how to write your own scripts?? We will always be glad to HELP you, but we aren't going to write your scripts FOR YOU, whether it's homework or not.