Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


Closed Thread
  Search this Thread
Old 08-16-2009, 08:26 PM   #1
LQ Newbie
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
Shell scripting

Your script should prompt for a menu to get the following system information and modify some information accordingly:
1.Display Current Date and time, the time should be in 12 hours format.
2.Open a text editor to edit a file.
3.Get a user name and show his default shell. Your script should be able to change the default shell of that user.
4.Show the operating system name, kernel version, and your home directory.
5.The number of users who are currently logged in. Also show the number of users in your group.
6.Show the computer CPU information, like processing speed etc.
7.Display the directories in the PATH variable. You should also be able to add a new directory at the path variable. The information should be shown in a simple user friendly way that is you may show each directory in the path variable in a new line.
8.Display a summary of the disk space usage for each directory argument.
Old 08-16-2009, 08:31 PM   #2
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 69
I thought classes haven't started yet... If I ever saw a homework assignment, here it is. Should I spare you a lecture about the advantages of doing your homework yourself?
Old 08-16-2009, 08:31 PM   #3
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910

welcome to LQ!

And whose instructor are you, whom is this assignment for?

Old 08-16-2009, 09:32 PM   #4
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,739
Blog Entries: 27

Rep: Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065

Originally Posted by Uncle_Theodore View Post
I thought classes haven't started yet... If I ever saw a homework assignment, here it is. Should I spare you a lecture about the advantages of doing your homework yourself?
Most elementary, High School along with college started here last week. Some state schools won't start until next week.

BTW, this looks verbatim text book. The OP needs to address the queries to his/her instructor instead of fishing here for the big one.

I wish there was a filter for this type of query. I would add 'urgent', 'Please Help', 'Script needed' ...
Old 08-16-2009, 10:08 PM   #5
Registered: Nov 2007
Location: Kentucky
Distribution: Slackware13.1
Posts: 214

Rep: Reputation: 38

Would you like fries with that?
Old 08-17-2009, 03:57 AM   #6
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Per the LQ Rules, please do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and Google searches) and we'll do our best to help. Also, keep in mind that your instructor might also be an LQ member.

Above is the standard homework response. My personal policy is to close the obvious "cut and paste" homework postings. I encourage you to start a new thread which complies with the guidelines above.

Good luck!!

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Terminal functions for shell scripting with Shell Curses LXer Syndicated Linux News 0 03-26-2008 11:50 PM
SHELL scripting/ shell functions mayaabboud Linux - Newbie 6 12-26-2007 08:18 AM
Shell Scripting: Getting a pid and killing it via a shell script topcat Programming 15 10-28-2007 02:14 AM
teaching shell scripting: cool scripting examples? fax8 Linux - General 1 04-20-2006 04:29 AM
shell interface vs shell scripting? I'm confused jcchenz Linux - Software 1 10-26-2005 03:32 PM

All times are GMT -5. The time now is 02:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration