LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training 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 06-03-2010, 12:44 AM   #1
ruchika_sachdeva
LQ Newbie
 
Registered: May 2010
Posts: 2

Rep: Reputation: 0
Need help - To confirm my doubts.


I am just little bit confused if I am right with answers!! Pls confirm if my answers are right?




Q.1 What does the following do

cat /etc/passwd 2> /tmp/passwd_copy >&2

Choose one answer.


a. redirects all stderror output from cat to the file /tmp/passwd_copy only


b. redirects all output (stdout and stderror) from cat to the file /tmp/passwd_copy


c. redirects all std output from cat to the file /tmp/passwd_copy, leaving stderror to the default output device


d. None of the above



Ans: b







Q.2 True or False: The following command will assign the value .bash_history to the shell variable HIST

HIST=".bash_history"

Choose one answer.


a. True


b. False



Ans: b







Q.3 The kernel is basically a large executable program that runs in the background.

Choose one answer.


a. True


b. False



Ans. a







Q. 4 Given the command and associated output below, what is the number in the square backets?
[damien@tower damien]$ yes >/dev/null &
[1] 1337

Choose one answer.


a. Number of background processes running for that user


b. Job number


c. Process ID


d. Output File Descriptor


e. None of the above





Ans. a





Q.5 Given the following xinetd service configuration from /etc/xinetd.conf:

service rlogin
{
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/etc/in.rlogind
only_from = 128.138.193.0/24 128.138.204.23 128.138.252.1
instances = UNLIMITED
disabled = yes
}

What will happen when a user, jason, attempts to use the rlogin service from a machine with the IP address 128.138.193.23

Choose one answer.


a. He will be denied access to the service as his IP address is not allowed


b. He will be allowed access to the service


c. He will be denied access to the service as he is not the superuser (root) and the service is set to only allow access to the root user


d. He will be allowed access to the service and his effective uid will be elevated to that of root


e. The service will not start as it has been disabled so no user will be able to access it



Ans. a





Q. 6 What does the following command do
sort < bigfiles.sh

Choose one answer.


a. Executes the bigfiles.sh program and writes the output to the sort file


b. Executes sort command and reads the input from the bigfiles.sh file


c. Executes the bigfiles.sh program and writes the output to the sort command


d. None of the above



Ans. b





Q. 7 If you purchase a linux server with hardware RAID, backups of your system are unnecessary due to the redundancy of your disk drives.

Choose one answer.


a. True


b. False


c. Depends on which RAID level



Ans. b
 
Old 06-03-2010, 12:52 AM   #2
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
A good number of your answers are wrong; try some of the things
out rather than hoping we'll give you correct answers to your
homework questions.



Cheers,
Tink
 
Old 06-03-2010, 12:53 AM   #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
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.
 
Old 06-03-2010, 06:36 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
ruchika*;
You were warned once already about homework posts---please do not do this again.
 
  


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
Confirm kernel compilation APB_4 Programming 2 02-27-2005 07:51 AM
confirm client on network justwantin Slackware 2 11-13-2004 05:29 PM
can anyone confirm a dead motherboard Peacedog Linux - Hardware 5 07-25-2004 05:13 PM
please confirm NAT question. musicman_ace Linux - Networking 3 06-02-2004 03:43 AM
Please confirm I know what I need to add to my XF86Config sharpie Slackware 3 02-12-2004 12:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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