LinuxQuestions.org
Register a domain and help support LQ
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

Reply
 
LinkBack Search this Thread
Old 09-30-2006, 06:17 PM   #1
Dinesh Siva
LQ Newbie
 
Registered: Sep 2006
Posts: 5

Rep: Reputation: 0
Questions from a text-book


Hey, I am currently learning linux/unix and very new to this. I would appreciate any help I can get to these questions below. Thanks.
---------------------------------------------------------
1. Use the cal command to determine on what day of the week you were born.


2. Use the cal command to discover what is unusual about the year 1752.


3. Clear the screen, and view the online manual for the cal command. What is the explanation for the year 1752?


4. Create a file called classdate containing today’s date.


5. Find documentation about the who command and the finger command. What are the differences in information these two command provide?


6. On one command line run both the who and finger commands so that you can compare their output back-to-back.


7. Append the calendar for September to the end of the classdate file you created earlier.


8. Create a file listing two tasks on your to-do list using redirect.


9. Add another task to your to-do list.

Last edited by Dinesh Siva; 09-30-2006 at 06:19 PM.
 
Old 09-30-2006, 06:19 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi and welcome to LQ,

Please do read the rules first. The above looks like homework and that we don't do for you, as stated in the rules.
 
Old 09-30-2006, 06:24 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,555

Rep: Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681
Welcome to LinuxQuestions

1. Per the rules: http://www.linuxquestions.org/linux/rules.html
Do not expect LQ members to do your homework - you will learn much more by doing it yourself.

2. Please do not mark threads as urgent. This is not urgent for any member here who kindly donates their time to help others.
 
Old 09-30-2006, 06:25 PM   #4
Dinesh Siva
LQ Newbie
 
Registered: Sep 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Dinesh

No this is not homework. These are just questions. I tryed doing them but not sure if they are correct or not?? I would really appreciate the help. Thanks.
 
Old 09-30-2006, 06:35 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,555

Rep: Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681
Well as least show us what you have done.
 
Old 10-01-2006, 10:10 AM   #6
Dinesh Siva
LQ Newbie
 
Registered: Sep 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Answers so far...

Well this is what I got so far.........
-------------------------------------------------------------------
1. cal 11 1986 (November 9)

2. In the month of September the Day ‘13’ is missing.

3. Ncal tries to guess the switch date from the local environment or falls back to September 2, 1752. This was when Great Britain and her colonies switched to the Gregorian calendar.
 
Old 10-01-2006, 10:52 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,555

Rep: Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681
Ok, now what about the rest. What have you read/tried?
 
Old 10-01-2006, 11:37 AM   #8
Dinesh Siva
LQ Newbie
 
Registered: Sep 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Stuck on number 4!!

Well in question number 4 i am stuck??
This is what I got for question 4.

----------------------------------------------------------------

"cat > todaysdate" This created the file


-------------------------------------------------

But how am I suppposed to put the current date in this file??

-------------------------------------------------

I know by typing "date" it shows the date. But i cant figure out how to put the date in this file.
 
Old 10-01-2006, 11:41 AM   #9
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
With date > filename?
 
Old 10-01-2006, 12:29 PM   #10
Dinesh Siva
LQ Newbie
 
Registered: Sep 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Question 7??

For question 7 is this the correct answer??

cal –m >> classdate
 
Old 10-01-2006, 08:19 PM   #11
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
Try reading your textbook and doing your assignment the honest way.
 
Old 10-01-2006, 08:33 PM   #12
JBailey742
Member
 
Registered: Mar 2006
Location: Saint Louis Park, MN
Distribution: Mandriva 2007.1 Spring
Posts: 338

Rep: Reputation: 30
if this is linux code, i'm in trouble. Sounds like homework to me.
 
Old 10-01-2006, 09:28 PM   #13
jon23d
Member
 
Registered: May 2006
Location: Kennewick, WA - USA
Distribution: Ubuntu
Posts: 129

Rep: Reputation: 15
this is kind of funny!
 
Old 10-01-2006, 10:54 PM   #14
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by Dinesh Siva
For question 7 is this the correct answer??

cal –m >> classdate
You know, you could try things and see if they work. That way you'll know if they're correct or not..
 
Old 10-01-2006, 11:09 PM   #15
twysm
Member
 
Registered: Jun 2004
Location: Lima - Perú
Distribution: Gentoo 2007.0
Posts: 78

Rep: Reputation: 15
READ, READ and READ... Then you'll learn...

http://floppix.ccai.com/labs.html
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Book Review: The Official Ubuntu Book LXer Syndicated Linux News 0 08-30-2006 04:54 PM
Linux version of Microsoft's COM object API : text-to-speech fun! : questions Ultrus Programming 0 08-14-2006 09:36 AM
What are the most common new Linux users questions? Have a mind to write a book:) kornerr Linux - General 33 07-31-2005 07:42 AM
Text size problem in book reviews and other areas? Whitehat LQ Suggestions & Feedback 10 12-15-2004 05:14 PM
THE DAMNED ANTIALIASED TEXT, and other questions helix5 Linux - Newbie 2 06-22-2004 10:09 AM


All times are GMT -5. The time now is 03:31 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration