1 Flashcards Preview

Test > 1 > Flashcards

Flashcards in 1 Deck (25)
Loading flashcards...
1
Q

You are using an application that you want to appear on the screen of another machine. What environment variable would you have to set or edit to
achieve this?

A. DISPLAY
B. REMOTE
C. REMOTE_XWINDOW
D. SCREEN

A

A. DISPLAY

2
Q

After installing and configuring Xfree86, you notice that when you start X, the display is not centered. What program can you run to find a better
modeline setting?

A. XF86Setup
B. xf86config
C. xvidtune
D. xvideoagent

A

C. xvidtune

3
Q

You are running X in networked environment. You want to allow anyone on your network to display their X applications on your desktop. What command
can you use to disable all access control for X?

A

xhost +

4
Q

You just started X for the first time and noticed that the display does not use the entire screen.
What program can you use to fix this?

A. xvidtune
B. xf86config
C. XF86Setup
D. tweakscreen

A

A. xvidtune

5
Q

Which of the following is the default XFree86 configuration file?

A. /usr/X11R6/etc/XF86Config
B. /var/X11/XF86Config
C. /etc/X11/XF86Config
D. /usr/etc/X11/XF86Config

A

C. /etc/X11/XF86Config

6
Q

You have just set up the Gnome Display Manager as your default display manager. What file should you edit to change the default greeting for it?

A. /etc/X11/prefdm
B. /etc/X11/XF86Config
C. /etc/X11/gdm.conf
D. /etc/X11/gdm/lnit/Default

A

D. /etc/X11/gdm/lnit/Default

7
Q

You are formatting a single hard disk for a Linux install. What is the maximum number of primary partitions you can create?

A. 0
B. 1
C. 2
D. 3
E. 4
F. 5
A

E. 4

8
Q

You are compiling some software from source. After running ./configure with the appropriate arguments and no errors, what is the next command to
run?

A

make

9
Q

You have two shell scripts, foo and bar. You wish to have bar execute if foo returns an exit status of 0 Select the correct command:

A. foo; bar
B. foo || bar
C. foo && bar
D. foo % bar

A

C. foo && bar

10
Q

In order to append the output of ls to a file called bazz, which of the following command lines would you use?

A. ls >bazz
B. ls >& bazz
C. ls &> bazz
D. ls&raquo_space; bazz

A

D. ls&raquo_space; bazz

11
Q

Which command is used to dump files in octal format?

A. od
B. octdump
C. dumpoct
D. cat -o

A

A. od

12
Q

You have created a really long letter and after you are done, you notice that you used the name “Bob” many times but your forgot to capitalize it in many
instances. Which command would you replace “bob” with “Bob” in all instances and generate a new letter for printing?

A. sed ‘/bob/Bob’ letter > newletter
B. sed s/bob/Bob/ letter newletter
D. sed ‘s/bob/Bob/g’ letter > newletter
E. sed s/bob, Bob/’ letter > newletter

A

D. sed ‘s/bob/Bob/g’ letter > newletter

13
Q

QUESTION 13
You are logged in as user tux1, but now you want to switch users to tux2 with tux2’s environment.
How would you do this?

A. su tux2
B. su -e tux2
C. su - tux2
D. su -m tux2
E. su -f tux2
A

C. su - tux2

14
Q

You wish to kill a process with a PID of 123. Select the command which will allow the process to “clean up” before exiting.

A. kill -1 123
B. kill -9 123
C. kill -15 123
D. kill -17 123

A

C. kill -15 123

15
Q

You have read/write permission on an ordinary file foo. You have just run ln foo bar. What would happen if you ran rm foo?

A. foo and bar would both be removed.
B. foo would be removed while bar would remain accessible.
C. foo would be removed. bar would still exist but would be unusable.
D. Both foo and bar would remain accessible.
E. You would be asked whether bar should be removed.

A

B. foo would be removed while bar would remain accessible.

16
Q

Which command will print line numbers before each line in a file?

A. ln
B. nl
C. cat -n
D. numline

A

B. nl

17
Q

You need to create a simple hierarchy of directories: images/photos/summer/ottawa/. None of the directories on that path exists. What command will
create all of the needed directories in one step?

A. mkdir -r images/photos/summer/ottawa/
B. mkdir -R images/photos/summer/ottawa/
C. mkdir -p images/photos/summer/ottawa/
D. mkdir -P images/photos/summer/ottawa/
E. mkdir -m images/photos/summer/ottawa/
A

C. mkdir -p images/photos/summer/ottawa/

18
Q

While using the vi editor, you wish to move ahead one page. You should press the control key and:

A. A
B. D
C. F
D. U

A

C. F

19
Q

You enter the command date +%M. What does the output show you?

A. the current year
B. the current month
C. the current hour
D. the current minute
E. the current second
A

D. the current minute

20
Q

When you are looking for brief information about a program in your PATH with its associated man pages, you would use …

A. which
B. whereis
C. locate
D. where

A

B. whereis

21
Q

Which command will print out the attributes of the file foobar?

A. ls –attrfoobar
B. lsattr foobar
C. printattr foobar
D. fileattr foobar

A

B. lsattr foobar

22
Q

Which of the following commands will list the quota for the user foobar?

A. repquota foobar
B. quota foobar
C. lsquota foobar
D. printquota foobar

A

B. quota foobar

23
Q

The command mkfs -t ext3 /dev/hdb1 -T largefile creates what size of inode?

A. 4 kilobyte
B. 1 megabyte
C. 2 megabyte
D. 4 megabyte

A

B. 1 megabyte

24
Q

In XF86Config which section is concerned with fonts?

A. the Fonts section
B. The Files section
C. The xfsCodes section
D. The Graphics section
E. The modeline section
A

B. The Files section

25
Q

You have a USB storage device that you cannot get working. You have enabled all appropriate USB options in the latest 2.2 kernel but still cannot get
your device working.

What is most likely the source of the problem?

A. You have not configured your usb.usermap properly
B. You are using the wrong kernel for this type of device
C. The USB device is not USB 2.0 compliant
D. There is a USB resource conflict

A

B. You are using the wrong kernel for this type of device