LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   The one the only POP QUIZ!!!! New version 5.6.2.3.3 (https://www.linuxquestions.org/questions/linux-newbie-8/the-one-the-only-pop-quiz-new-version-5-6-2-3-3-a-55812/)

insane_jester 04-19-2003 12:03 PM

The one the only POP QUIZ!!!! New version 5.6.2.3.3
 
OK this was the from that last quiz i gave you and sorry to say i didn't finish putting it up and my connection was going to cut so i just clicked on accept and then edited it when i came back which it never showed my edit! So decided to just make a new one and post it up for you wonderful people.

Take key hint that this was based apon Mandrake and Slackware.

-----------------------------------------------------------------------------------
Old test
-----------------------------------------------------------------------------------

Ok here are the questions. Hope someone has the answers correctly known. Based apon mandrake & slackware.

1.) The /etc/ ______________ file contains the image and partition information for every operating system that can booted from LIlo.

2.) The _________ process, which usually has the processID of 1 (one), is the parent of all processes running ont he Linux System.

3.) The _________ command is used to display all network interfaces configured on the system.

4.) The /etc/ ___________ file contains the various run-levels used by the init process.

5.) Ina secure environment, the passwords for all users is stored in the /etc/ _______ file, instead of the /etc/passwd file.

6.) A ___________ is a program that translates user commands into operating system instructions.

7.) The ___________ environment variable specifies where the systems looks for executables or commands.

8.) The __________ command must be run to update the MBR whenever the partition table is modified.

9.) Besides using a Bios password, a password can also be added in the /etc/ _________ file to prevent un-authorized users from booting a Linux Image.

10.) In general, in order to modify any file in the /etc/ directory, you must be logged in as ____________ or be a member of the root group.

Section 2!

1,) when the timeout statement is either removed or commented out from the lilo.conf file, LILO

a.) waits indefintely for user input before booting

b.) boots the default image automatically without waiting for user input

c.) waits for the default of 5 seconds only before booting

d.) None of the above

2.) All of the following programs can be used to modify the /etc/lilo.conf file except:

a.) vi
b.) emacs
c.) starOffice
d.) pico <--yes a option d sorry about that but this should solve your controversy!
------------------------------------------------------------------------------------
New section
------------------------------------------------------------------------------------

3.) in both slackware and mandrake, the following is the default shell program:

a.) /bin/bash
b.) /bin/ksh
c.) /bin/tcsh
d.) all of the above

4.) User specific environment files are located in:

a.) /etc directory
b.) the user's home directory
c.) /root directory
d.) /profile directory

5.) In order for the Command Line Interpreter to look for executables and commands located in the users current working directory, the following must be added to the PATH enviornment variables:

a.) $PWD
b.) dot(.)
c.) astrisk (*)
d.) none of the above

6.) During the boot process, the partition table is ready by:

a.) LILO
b.) BIOS
c.) INIT
d.) none of the above

7.) The main reason why many Linux distributions don't add the current directoy (.) to the $PATH variable is:

a.) to prevent viriuses planted in the current directory from being executed accidentally

b.) to differentiate executables from configuration files which usually begins with a dot (.)

c.) to prevent file names from being expanded un-necessarily

d.) all of the above

8.) The PS1 variable contains the:

a.) password option for a given user
b.) prompt presented to the user after login
c.) present session number of the user
d.) none of the above

9.) When running a task in the foreground, the following key sequence can be used to suspend the task and put it in the background mode:

a.) CTRL-X bg <enter>
b.) CTRL-S bg <enter>
c.) CTRL-C bg <enter>
d.) CTRL-Z bg <enter>

10.) The following command can be used to display the list of currently running processes in priority order:

a.) jobs
b.) top
c.) prty
d.) level

11.) Which of the following comamnds can be used to change the priority of a running process?

a.) top
b.) bash
c.) ps
d.) renice

------------------------------------------------------------------------------------
Using the following coding scrpit-1 answer the 3 following questions

#!/bin/bash
#script-1
#add user account john

/bin/mkdir /home/john
/sbin/useradd -g users -d /homejohn -s /bin/bash john
/sbin/passwd john


Note: might be easier to do in slackware!

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

12.) When script-1 above is executed by the root user, the owner of the /home/john directory will be:

a.) john
b.) users
c.) root
d.) none of the above

13.) When script-1 above is executed by the root user, the group of the /home/john directory will be:

a.) root
b.) users
c.) john
d.) none of the above

14.) In order for the user john to be able to login after script-1 is executed, the ownership of the /home/john directory must be changed from:

a.) john to root
b.) root to john
c.) john to users
d.) users to john

------------------------------------------------------------------------------------
Using yet another script solve the following question!

By the way its the final one its worth 30pts where all the rest are only 5pt questions

have fun!

#!/bin/bash
#script-2
#aliases
alias woman=xman
alias ww = man
------------------------------------------------------------------------------------

When script-2 above is executed and the user types the "ww man" command, the system will display:

a.) manual pages for the man command
b.) manual pages in graphical mode
c.) manual pages beginning with the ww only
d.) all man pages except those beginning with the letters ww

You have plenty of time to go and find the answers for i wont tell you until 3 weeks have passed. starting from today which is April 19th 2003

Hope you love my little quiz's.. more to come later.

Insane jester

acid_kewpie 04-19-2003 01:42 PM

have you found found our own real quiz section? http://www.linuxquestions.org/questions/quiz.php

I'm sure jeremy would be more than happy to add your to it if you ask him to...

insane_jester 04-19-2003 02:01 PM

why not to have it in the quiz section
 
Yeah i have thought about putting it up in the quiz section but i thought most people wouldn't even try it their and besides it is more fun to see how many people say or agree with one of the answers instead of just finding out what the percentage was. after three weeks i will see if i can have it placed in the quiz section. But until then its more fun this way.

Thanks for the tid bit though.

Insane jester

bluenirve 05-20-2003 05:18 PM

hey,
I think this is right, so correct me if I'm wrong...
there an is error in the code (the last problem)... it should be:
#!/bin/bash
#script-2
#aliases
alias woman=xman
alias ww=man

(Notice the 2 spaces gone before and after the = on line 5)

Crashed_Again 05-20-2003 06:23 PM

Never saw those quizzes before. Boy, I did real bad on the Slackware one. I've never used it before and I guess that means I shouldn't even try huh?

If you make a quiz, how do submit it? Do you have to be a mod?

insane_jester 05-20-2003 06:32 PM

NO sorry that is how it should be. Really it doesn't matter if there is the space or not. Atleast i never had a problem doing it either way.

bluenirve 05-20-2003 06:32 PM

ok, I ran it and had problems, so whatever :)

insane_jester 05-20-2003 06:35 PM

In responce to your question Crashed again, i have never really submitted a quiz to there quiz section for i found you get more open answers from doing it this way. And people help each other out, :) But i'm sure if you ask acid_kewpie She'll be able to tell you for she is a Mod. I'm just a newbie whom came on to ask of your knowledge. But i've been a linux user of many diffrent builds for a while now. Around 3 years i believe i don't remember. Well that is your best option that i can give.

insane_jester 05-20-2003 06:38 PM

I did my test on linux Mandrake forgot the version lol, with slackware 5, and with Red Hat 8.. Either way you do it the result should be the same. That your answer will be that you get the answer of (A)

manthram 05-20-2003 06:40 PM

acid is not a she, acid is a "he" :D

i think his signature says ...Chris ;)

insane_jester 05-20-2003 06:40 PM

By the way i do have another half of this quiz out there somewheres. IT gives this half and the other half of the quiz. Be sure to check it out. IF you want the Answers to check yourself send me an email at Jester_to_the_insane@yahoo.com Asking for answers to The Linux Quiz. Be sure to include that information in your subject line.

insane_jester 05-20-2003 06:43 PM

Lol i was typing fast just guessed sorry Chris. But i still think it might be a she for chris can be a used as a girl's name. And something about Kewpie's and girls.. Just jumped to think its a girl for kewpies are angels and they are dolls. But who knows. I'm sure acid_kewpie Will correct me if i'm wrong lol.

manthram 05-20-2003 06:48 PM

then i think should go to the members profile and check out his website


All times are GMT -5. The time now is 03:22 PM.