Prev Previous Post   Next Post Next
Old 2nd October 2011, 18:18
id10t id10t is offline
Senior Member
Join Date: Nov 2008
Posts: 242
Thanks: 2
Thanked 22 Times in 22 Posts
Default homework help

No, not homework *I* have to do... homework/labs for my students to do

I need some ideas for simple lab exercises for the shell scripting portion of the Linux course I teach. Been using the same 4 intro labs for a few years, and I want to change it up some...

Typically, none of my students have previous Linux experience, but this group of assignments come about half way thru the semester. Also, they typically have no programming background - for the most part, these are networking students working with Cisco, MS, and Novell stuff. All of the Novell stuff is focused on the Novell side, not the Linux host side.

That said, here are the first intro scripts they write - I'd like to change them up, but I need ideas/suggestions.

1) Write a script that clears the screen, then displays how much disk space is available and used on mounted filesystems (output of df) and how much RAM is being used and is free (output of free).

2) Write a script that displays the current date/time in 5 various formats (I assign the formats).

3) Re-write #2 so that you take a word as an argument (alpha, bravo, charlie, delta, echo) and displays the current date/time in one format (different format for each argument). This introduces workign with arguments and if/then (or a case select) statement.

4) Write a script that takes one file or directory name as an argument, and tell me if it is a file or a directory, if the user running the script has read access to the file/dir, if the user running the script has write access to the file/dir, and if the user running the script has execute permissions on the file/dir.

Ideas? Thanks!
I'm a very happy customer, I'm sure you will be too!
Reply With Quote
Sponsored Links


Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 04:18.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.