Download your favorite Linux distribution at LQ ISO.
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!


  Search this Thread
Old 08-19-2008, 11:39 PM   #1
LQ Newbie
Registered: Aug 2008
Posts: 2

Rep: Reputation: 0
Trying to pass my test!

Hi everyone!

I have a linux test for computing but have no idea how to use linux...well actually i lie can use it to browse and whatever but i need help attaching the time and/or date to a text file and then use cat to check that i did it??? i know this question is in the test because i failed the test last time because of this question ive been looking all over the net for weeks now and no answer! anyhelp would be helpful! thank you!
Old 08-20-2008, 12:51 AM   #2
Registered: Sep 2007
Location: Folsom, California
Distribution: Debian 4.0 (Etch), Debian 5.0 (Lenny), Ubuntu 8.04
Posts: 302

Rep: Reputation: 32
Sorry charlie. We don't help kids pass tests. We only help people learn how to use linux.

Try paying attention in class, taking notes, studying, doing your homework, etc.
Old 08-20-2008, 01:00 AM   #3
LQ Newbie
Registered: Sep 2003
Location: egypt
Distribution: slackware 12.1 , ubuntu 8.04
Posts: 13

Rep: Reputation: 0
ok you can issue this command from your shell (i assume u know what shell is)
~$ date > date
this will display date and time , see below

Wed Aug 20 08:55:35 EEST 2008

so if you issued :

~$ date > DateTime

this will append the date and time to the file named DateTime and will save it to the directory you issued the command from

then issue this command :
~$ cat DateTime
this will display the contents of the file DateTime in day DD mm hh:mm:ss EEST year like what u can see above

hope that helps you
Old 08-20-2008, 02:04 AM   #4
LQ Newbie
Registered: Aug 2008
Posts: 2

Original Poster
Rep: Reputation: 0
thank you so much wfareed

[mod_edit]personal attack removed[/mod_edit]

anyway thanks for this im going to have a chat with my teacher about other methods of learning some of this stuff!

Last edited by Tinkster; 08-20-2008 at 04:31 AM. Reason: Congratulations on your conclusion; doing it yourself is gonna be the most rewarding in the long run
Old 08-20-2008, 03:08 AM   #5
Senior Member
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
You should look up on the term "redirection" (that is what the ">" sign is doing - take two of them and you can append instead of overwrite whats in the file already).
"cat" can be used to display the contents as well as to add to a file - "echo" is another way.
Try and make use of the "man" command.

I'm positive that any decent effort on your side would have yielded some results - now you got almost a ready made solution - despite your being a moron yourself and having made that obvious with your comment.
There was no sign of you having done any research - the answer you got was to be expected.

You should seriously consider an apology as well as then asking a more specific question elsewhere because nobody is going to write here anything else than flames in your direction.

I wonder how old you are - 14 judgeing by your manners...
Old 08-20-2008, 03:50 AM   #6
Senior Member
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,462
Blog Entries: 6

Rep: Reputation: 51
You should seriously consider an apology as well as then asking a more specific question elsewhere because nobody is going to write here anything else than flames in your direction
Good Shot Back to GRUMMIE..

Poor Fellow....Learn Something from the above sentence.

Last edited by your_shadow03; 08-20-2008 at 03:51 AM.
Old 08-20-2008, 04:13 AM   #7
Senior Member
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Originally Posted by grummie View Post
[mod_edit]and cleaned up, too[/mod_edit]...
Pal, most people won't help you if you haven't tried help yourself hard enough. The question you asked is simple, and if you didn't try to solve it yourself, then it looks like you are trying to make other people do your test. People are most likely help you only if something of following is true:
1) You honestly tried to find an answer, but couldn't. If you tried to find answer, post what have you tried. Such information could prove that you aren't lazy free-rider trying to get other people do his work for free.
2) You problem is unique, incredibly interesting and incredibly complex. In this case there will be possibility that someone will solve your problem because of its complexity, even if you are trying to use other people to do your work (although in this case there will be chance that they will solve your problem, but won't help you anyway).

People won't help you if you'll call people all sort of names. No one cares how much you work, that's your problem.

Besides, your comment about "morons" is reported for moderation.

Last edited by Tinkster; 08-20-2008 at 04:32 AM. Reason: mod_edit .. no point in having the nasties in a quote
Old 08-20-2008, 09:11 PM   #8
Registered: Jul 2007
Location: United Kingdom, W Mids
Distribution: SUSE 11.0 as of Nov 2008
Posts: 195

Rep: Reputation: 40
I read somewhere just recently, that one shouldn't waste time arguing with fools and morons, because they will only try to drag you down to their level and beat you with experience.
If as much time was put into research and self-help as seeking an easy answer these kids would turn out a lot smarter. Sobering thought, that in ten to twenty years time they will be a part of the generation in charge of us all.
Old 08-20-2008, 09:41 PM   #9
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
To be honest, the people in the generation that will take over are unlikely to be the moronic kids... I mean, not all kids are moronic. Those who are after quick fixes like this one will only become a manager in case where it's more troublesome to fire an unproductive team member so promoting them out of the team makes things easier all round... only chance. And that's a trend that is going to die, alot of companies get useless managers and I think companies are starting to learn why...

Originally Posted by grummie View Post
Hi everyone!

I have a linux test for computing but have no idea how to use linux...
They aren't going to ask exactly the same question again, you are better off actually learning what you are suppose to know, else you will likely just fail again.


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: PHP, Perl and Python pass Homeland Security test LXer Syndicated Linux News 0 01-09-2008 02:10 PM
FC3: Media test pass - but MD5SUM is wrong Vikinghat Fedora - Installation 9 10-24-2006 04:58 AM
Fedora core 5 disk 3 - won't pass media test jimlauman Linux - General 23 05-08-2006 11:14 PM
test suit errors on gcc during pass-2 rangalo Linux From Scratch 2 12-28-2005 03:33 AM
Glibc Pass II Test Results g_goblin Linux From Scratch 0 11-17-2003 12:42 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:21 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