LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Closed Thread
  Search this Thread
Old 08-16-2009, 09:26 PM   #1
9abhinav
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, 09:31 PM   #2
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 60
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, 09:31 PM   #3
Tinkster
Moderator
 
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
Hi,

welcome to LQ!

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



Cheers,
Tink
 
Old 08-16-2009, 10:32 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,603
Blog Entries: 25

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Hi,

Quote:
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, 11:08 PM   #5
windtalker10
Member
 
Registered: Nov 2007
Location: Kentucky
Distribution: Slackware13.1
Posts: 214

Rep: Reputation: 38
?????

Would you like fries with that?
 
Old 08-17-2009, 04:57 AM   #6
pixellany
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-27-2008 12:50 AM
SHELL scripting/ shell functions mayaabboud Linux - Newbie 6 12-26-2007 09:18 AM
Shell Scripting: Getting a pid and killing it via a shell script topcat Programming 15 10-28-2007 03:14 AM
teaching shell scripting: cool scripting examples? fax8 Linux - General 1 04-20-2006 05:29 AM
shell interface vs shell scripting? I'm confused jcchenz Linux - Software 1 10-26-2005 04:32 PM


All times are GMT -5. The time now is 11:59 PM.

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