LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-08-2002, 08:08 PM   #1
OlRoy
Member
 
Registered: Dec 2002
Posts: 304

Rep: Reputation: 86
Misc Questions


I need your help. I don't even understand the first two questions and have looked for a hour for the last two. The last one i even tried doing it and nothing happend. These are questions off the study guide for the final so its not going to be graded, i just need to know the answers.


20. Your script has just executed the grep command and returned an error message. What would the output of the following commands in the same script be?

if [ *$?* = 0]

then

echo zero

else

echo one

fi

A. Zero
B. One
C. No Output
D. An error message

48. Which command displays the value of the variable FILE?

A. echo ~FILE
B. echo FILE
C. echo $FILE
D. echo #FILE


54. Which quoting mechanism displays all characters literally and allows for variable expansion?

A. "" (double quotes)
B. '' (single quotes)
C. ``(back quotes)
D. \ (backslash)


56. You intended to type the command rm 'test' but accidentally inserted a space and tyed rm ' test'. What is the result?

A. All files in your current directory containing 'test' will be deleted
B. All files in your current directory will be deleted and all files startring with 'test' in subdirectories will be deleted
C. All files in your current directory containing will be deleted and all files in the subdirectory test will be deleted
D. All files in your current directory will be deleted
 
Old 12-08-2002, 08:25 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Well, we don't really much like doing peoples homework/study answers to them. This is something you should really be able to do on your own. There are tons of resources available.
 
Old 12-09-2002, 05:37 PM   #3
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
this look like a very basic university homework. Come on.
 
Old 12-09-2002, 06:03 PM   #4
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
I suppose you have a linux box that runs

I think the thing to do would be to simply try each one and see the outcome. This way you will learn it.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Misc. Questions About 10.2 Duo Secundus Slackware 1 09-29-2005 05:40 AM
Misc shell questions Cyth Linux - Software 1 03-13-2003 09:31 AM
Misc Questions.... ugenn Linux - General 2 06-27-2002 01:00 PM
Misc. Linux questions. ugenn Linux - Newbie 7 04-16-2002 09:42 AM
More Misc Linux Questions... ugenn Linux - Newbie 4 04-16-2002 09:38 AM


All times are GMT -5. The time now is 10:38 PM.

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