banner

[Rule] Rules  [Home] Main Forum  [Portal] Portal  
[Members] Member Listing  [Statistics] Statistics  [Search] Search  [Reading Room] Reading Room 
[Register] Register  
[Login] Loginhttp  | https  ]
 
Forum Index Thảo luận hệ điều hành *nix LPI Test  XML
  [Question]   LPI Test 15/12/2007 05:11:08 (+0700) | #1 | 103962
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]
Tớ chọn lọc trong quyển LPI ra một số câu, mời anh (chị) em vào thảo luận:

Phần 1: General Linux

1. What does the device file /dev/hdb6 represent?
a. An extended partition on a SCSI disk drive
b. A logical partition on a SCSI disk drive
c. An extended partition on an IDE disk drive
d. A primary partition on an IDE disk drive
e. A logical partition on an IDE disk drive

2. In response to the df command, the system reports a Use% of 98% for the filesystem mounted on /home. Which one of the following best describes the significance of this information?
a. Files on /home are consuming 98% of the physical disk.
b. File read/write activity on /home is consuming 98% of system I/O capacity.
c. Files on /home are consuming 98% of the /home filesystem.
d. Inodes on /home are nearly exhausted.
e. Inodes on /home are 98% free.

3. Carolyn has a text file named guest_list containing 12 lines. She executes the following command. What is the result?
Code:
#  split -4 guest_list gl

a. The first four columns in the text are written to new files glaa, glab, glac, and glad.
b. The first four columns in the text are written to new files aagl, abgl, acgl, and adgl.
c. The lines of guest_list are evenly divided among new files glaa, glab, glac, and glad.
d. The lines of guest_list are evenly divided among new files glaa, glab, and glac.
e. The lines of guest_list are evenly divided among new files aagl, abgl, and acgl.

4. An ext2 filesystem is configured with user quotas enabled. The soft limit is set at 100 MB per user, the hard limit is set at 110 MB per user, and the grace period is seven days. User bsmith already owns 90 MB of the data stored on the filesystem. What happens when bsmith writes a new file of size 30 MB? Select one.
a. The write will fail, but the superuser can recover the entire file within seven days.
b. The write will fail, and the file will be truncated permanently.
c. The write will succeed, but the file will be truncated permanently.
d. The write will succeed, but the file will be available for only seven days.
e. The write will succeed, but the file will be truncated in seven days.

5. Which of the following commands displays the comments from a bash script? Select all that apply.
a. find "^#" /etc/rc.d/rc.local
b. sed '/^#/ !d' /etc/rc.d/init.d/httpd
c. grep ^# /etc/rc.d/init.d/httpd
d. grep ^# /etc/passwd
e. locate "^#" /etc/skel/.bashrc

6. Which one of the following answers creates an environment variable VAR1, present in the environment of a bash child process?
a. VAR1="fail" ; export VAR1
b. VAR1="fail" \ export VAR1
c. VAR1="fail"
d. set VAR1="fail" ; enable VAR1
e. export VAR1 \ VAR1="fail"

7. What does the & character do when placed at the end of a command?
a. It allows another command to be entered on the same line.
b. It causes the process to be stopped.
c. It restarts a stopped process.
d. It causes the process to be placed into the foreground.
e. It causes the process to be placed into the background.

8. What is the PID of init? Select one.
a. 0
b. 1
c. 2
d. undefined
e. unknown

9. What command can display the contents of a binary file in a readable hexadecimal form? Select one.
a. xd
b. hd
c. od
d. Xd
e. dump

10. Which one of the following commands copies files with the .txt extension from /dir1 into /dir2, while preserving file attributes such as dates?
a. mv --copy /dir1/*.txt /dir2
b. mv /dir1/*.txt /dir2
c. cp -k /dir1/*.txt /dir2
d. cp -p /dir1/*.txt /dir2
e. cp -p /dir2 < /dir1/*.txt

11. Alex wants to protect himself from inadvertently overwriting files when copying them with cp. How should he go about this?
a. Put alias cp='cp -i' in ~/.bashrc.
b. Put alias cp='cp -i' in ~/.bash_profile.
c. Put alias cp='cp -p' in ~/.bashrc.
d. Put alias cp='cp -p' in ~/.bash_profile.
e. Put alias cp='cp -I' in ~/.bashrc.

12. Monica consults the /etc/passwd file expecting to find encrypted passwords for all of the users on her system. She sees the following:

jdoe: x:500:500::/home/jdoe:/bin/bash
bsmith: x:501:501::/home/bsmith:/bin/tcsh
 

Which of the following is true? Select one.
a. Accounts jdoe and bsmith have no passwords.
b. Accounts jdoe and bsmith are disabled.
c. The passwords are in /etc/passwd-
d. The passwords are in /etc/shadow
e. The passwords are in /etc/shadow-

13. What does the "sticky bit" do? Select one.
a. It prevents files from being deleted by anyone.
b. It marks files for deletion.
c. It prevents files from being deleted by nonowners except root.
d. It prevents files from being deleted by nonowners including root.
e. It marks files for archive.

14. How are the cat and tac commands related? Select one.
a. cat displays files and tac does the same but in reverse order.
b. cat concatenates files while tac splits a file into pieces.
c. cat creates file catalogs while tac displays the catalogs.
d. The two commands are links to the same executable.
e. There is no relation or similarity between cat and tac.

15. Which one of the following would be a consequence of a filesystem running out of inodes?
a. More inodes would be automatically created in the filesystem.
b. Quotas would become disabled on the filesystem.
c. The filesystem would be corrupted.
d. The filesystem would be marked read-only.
e. No writes would be possible on the filesystem until existing files were deleted.

16. Consider the following line of console output, excerpted from among other lines of output. Which one of the commands produced it?
/dev/hda8 1.9G 559M 1.2G 30% /home 

a. du -s
b. du -k
c. df -h
d. df -k
e. df -m

17. Which of the following statements is true about an X server? Select one.
a. An X server is a high-performance system offering graphical programs over a network.
b. An X server sends its graphical output to a window manager.
c. An X server is under the control of a window manager.
d. A window manager is under the control of an X server.
e. A window manager is also known as an X server.

18. When using xdm, which of the following files can be used to start a window manager? Select one.
a. Xservers
b. Xaccess
c. xdm-config
d. Xsession
e. Xsetup_0

19. When partitioning a disk with more than 1024 cylinders, which of the following could affect the system's ability to boot? Select all that apply.
a. Location of LILO on disk.
b. Location of /boot on disk.
c. Location of /var on disk.
d. Disk transfer rate.
e. Disk seek time.

20. How many target devices can be added to an 8-bit SCSI-2 bus? Select one.
a. 6
b. 7
c. 8
d. 15
e. 16

21. Which of the following accurately describes the contents of the xdisp:1.0 DISPLAY environment variable? Select one.
a. System xdisp is to send X programs to the first display of the local X server.
b. System xdisp is to receive X programs on the first display of its X server.
c. System xdisp is to receive X programs on the second display of its X server.
d. Local program xdisp is to use the second display of the local X server.
e. Local program xdisp is to use the second display of any available X terminal.

22. Which file contains information on the I/O port assignments in use? Select one.
a. /dev/ioports
b. /etc/ioports
c. /etc/sysconfig/ioports
d. /etc/proc/ioports
e. /proc/ioports

23. Which of the following is the text file that contains directories where the dynamic linker should look for libraries? Select one.
a. ld.so.conf
b. conf.ld.so
c. ld.so.cache
d. so.config
e. configld



Let's build on a great foundation!
[Up] [Print Copy]
  [Question]   Re: LPI Test 15/12/2007 21:34:29 (+0700) | #2 | 104078
[Avatar]
nora
Elite Member

[Minus]    0    [Plus]
Joined: 20/09/2006 00:08:43
Messages: 360
Location: UK
Offline
[Profile] [PM]
Tớ làm hết, một số câu phải test trên linux để tìm kết quả, có lẽ sai nhiều, nhưng quan nó (quanta)check thử smilie

format answer form: question - answer(s)

1 - c
2 - a
3 - d
4 - e (Havent had this problem in linux, but have had it in shared hosting, i could still write the file but i didn't notice when it will be truncated.)
5 - b - c -d
6 - a
7 - a
8 - b
9 - c
10 - d
11 - a - b
12 - d
13 - c
14 - a
15 - e
16 - c
17 - e
18 - c
19 - d - c
20 - e
21 - c
22 - e
23 - a

[Up] [Print Copy]
  [Question]   Re: LPI Test 15/12/2007 23:16:09 (+0700) | #3 | 104083
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]

nora wrote:
Tớ làm hết, một số câu phải test trên linux để tìm kết quả, có lẽ sai nhiều, nhưng quan nó (quanta)check thử smilie

format answer form: question - answer(s)
1 - c
2 - a
4 - e (Havent had this problem in linux, but have had it in shared hosting, i could still write the file but i didn't notice when it will be truncated.)
5 - b - c -d
7 - a
17 - e
18 - c
19 - d - c
20 - e
 

Chào nora, cảm ơn nora đã tham gia thảo luận.

Những câu trên tớ trích lại là những câu chưa đúng. Có 1 vài câu hơi tiếc (có lẽ do nora đọc chưa kỹ): 1, 2, 7, 17, 19. Những câu còn lại, theo tớ là tương đối khó, cần nắm chắc kiến thức để trả lời. Có một số câu nora lại trả lời rất tốt: 15, 21, 22, 23. Sau bài test này cũng học được nhiều cái mới

ps: Sao lại "xuyên tạc" cái nickname của tớ đi vậy smilie smilie
Let's build on a great foundation!
[Up] [Print Copy]
  [Question]   Re: LPI Test 16/12/2007 00:02:32 (+0700) | #4 | 104085
281
Elite Member

[Minus]    0    [Plus]
Joined: 27/05/2007 00:22:15
Messages: 228
Offline
[Profile] [PM]
cho 281 ké tạm 4 câu:

1. e
2. c
4. b
7. e
[Up] [Print Copy]
  [Question]   Re: LPI Test 16/12/2007 00:08:20 (+0700) | #5 | 104086
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]

281 wrote:

cho 281 ké tạm 4 câu:

1. e
2. c
4. b
7. e 

Chính xác.
1. Nếu được, bạn vui lòng nói rõ thêm về cách ký hiệu dành cho: IDE, SCSI disk và cách đánh số các loại partitions: primary, extended, logical.
2+4: Giải thích thêm thì càng tốt

ps: Vẫn "lăn tăn" câu 7 à?
Let's build on a great foundation!
[Up] [Print Copy]
  [Question]   Re: LPI Test 16/12/2007 00:28:23 (+0700) | #6 | 104089
281
Elite Member

[Minus]    0    [Plus]
Joined: 27/05/2007 00:22:15
Messages: 228
Offline
[Profile] [PM]
Một ổ cứng thì có thể chia tối đa thành 4 Primary Partitions và được đánh số từ 1 đến 4. Logical Partitions thì được đánh số bắt đầu từ 5.

kí hiệu cho IDE là hdx và cho SCSI là sdx.


Câu 7 sau khi suy nghĩ kỹ thì e là đúng nhất. Còn nếu là 2 kí tự && thì a mới đúng.
[Up] [Print Copy]
  [Question]   Re: LPI Test 16/12/2007 00:38:28 (+0700) | #7 | 104091
281
Elite Member

[Minus]    0    [Plus]
Joined: 27/05/2007 00:22:15
Messages: 228
Offline
[Profile] [PM]
Câu 2 thì khó giải thích hơn là đưa ra ví dụ cụ thể
Code:
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda6             33309228   5553268  26063916  18% /
udev                     10240       216     10024   3% /dev
/dev/sda3                96832      4463     87369   5% /boot
shm                     508012         0    508012   0% /dev/shm


Câu 4:

soft limit là 100, hard limit là 110 . Trong khi đó bạn đã sử dụng 90:
a) nếu file chép vào là 10MB thì chưa vượt giới hạn. --> miễn bàn
b) nếu file chép vào là 20MB --> vượt soft limit nhưng chưa vượt hard limit --> file vẫn chép thành công nhưng sẽ bị xóa sau 7 ngày
c) nếu file chép vào là 30MB --> vượt hard limit --> chép không thành công.
[Up] [Print Copy]
  [Question]   Re: LPI Test 16/12/2007 00:45:13 (+0700) | #8 | 104093
281
Elite Member

[Minus]    0    [Plus]
Joined: 27/05/2007 00:22:15
Messages: 228
Offline
[Profile] [PM]
câu 5. b - c

câu 17. b
câu 18. d
câu 20. d
[Up] [Print Copy]
  [Question]   Re: LPI Test 16/12/2007 00:54:17 (+0700) | #9 | 104095
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]

281 wrote:
Một ổ cứng thì có thể chia tối đa thành 4 Primary Partitions và được đánh số từ 1 đến 4. Logical Partitions thì được đánh số bắt đầu từ 5. 

Còn extended partition?

281 wrote:
kí hiệu cho IDE là hdx và cho SCSI là sdx. 

x có thể là những ký tự nào?

281 wrote:
Câu 7 sau khi suy nghĩ kỹ thì e là đúng nhất. Còn nếu là 2 kí tự && thì a mới đúng. 

ok.

281 wrote:
Câu 2 thì khó giải thích hơn là đưa ra ví dụ cụ thể
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda6 33309228 5553268 26063916 18% /
udev 10240 216 10024 3% /dev
/dev/sda3 96832 4463 87369 5% /boot
shm 508012 0 508012 0% /dev/shm 
 

Ở câu 2, chỉ có 2 đáp án có thể chọn là a hoặc c. Đáp án a. là sai vì: /home có thể không phải là partition duy nhất trên physical disk. Đáp án tốt nhất là c.
(Edited by quanta at Sun Dec 16 04:23:14 ICT 2007)

281 wrote:

Câu 4:

soft limit là 100, hard limit là 110 . Trong khi đó bạn đã sử dụng 90:
a) nếu file chép vào là 10MB thì chưa vượt giới hạn. --> miễn bàn
b) nếu file chép vào là 20MB --> vượt soft limit nhưng chưa vượt hard limit --> file vẫn chép thành công nhưng sẽ bị xóa sau 7 ngày
c) nếu file chép vào là 30MB --> vượt hard limit --> chép không thành công.
 

ok, tớ bổ sung thêm 1 chút là: Việc "write" nó vẫn tiếp tục cho đến khi nó gặp hard limit (110 MB), sau đó "write" sẽ failed và dữ liệu sẽ mất.
Let's build on a great foundation!
[Up] [Print Copy]
  [Question]   Re: LPI Test 16/12/2007 01:03:17 (+0700) | #10 | 104096
281
Elite Member

[Minus]    0    [Plus]
Joined: 27/05/2007 00:22:15
Messages: 228
Offline
[Profile] [PM]

quanta wrote:

Còn extended partition?
 


extended partition sẽ là 1 trong 4 primary partitions. Extended partition sẽ được chia thành các logical partitions. Chính vì vậy logical partitions luôn luôn bắt đầu được đánh thứ tự từ "5".

quanta wrote:

x có thể là những ký tự nào?
 


là những ký tự a,b,c,....
[Up] [Print Copy]
  [Question]   Re: LPI Test 16/12/2007 01:13:50 (+0700) | #11 | 104098
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]
Nhắc lại: 281 và mọi người nhớ giải thích cho các câu trả lời của mình. Cảm ơn

281 wrote:

câu 17. b
câu 20. d
 

2 câu này chưa đúng.

281 wrote:

extended partion sẽ là 1 trong 4 primary partitions. Extended partition sẽ được chia thành các logical partitions. Chính vì vậy logical partitions luôn luôn bắt đầu được đánh thứ tự từ "5".
 

Chính xác. Nhưng giới hạn cuối của logical partitions là bao nhiêu? (được bắt đầu từ 5 và kết thúc ở bao nhiêu)

281 wrote:

quanta wrote:
x có thể là những ký tự nào? 

là những ký tự a,b,c,....
 

Có thể là e được không?
Let's build on a great foundation!
[Up] [Print Copy]
  [Question]   Re: LPI Test 16/12/2007 01:26:40 (+0700) | #12 | 104100
281
Elite Member

[Minus]    0    [Plus]
Joined: 27/05/2007 00:22:15
Messages: 228
Offline
[Profile] [PM]

quanta wrote:

Chính xác. Nhưng giới hạn cuối của logical partitions là bao nhiêu? (được bắt đầu từ 5 và kết thúc ở bao nhiêu)
 

trên lý thuyết là không giới hạn. Nhưng thực tế, đối với IDE thì extended có thể chia tối đa thành 63 logical, đối với SCSI là 15.

quanta wrote:

Có thể là e được không?
 


d,e,f,g,h,i,j,k,l,m,n... đều được.
[Up] [Print Copy]
  [Question]   Re: LPI Test 16/12/2007 01:39:44 (+0700) | #13 | 104103
281
Elite Member

[Minus]    0    [Plus]
Joined: 27/05/2007 00:22:15
Messages: 228
Offline
[Profile] [PM]
Vậy 17 chỉ có thể là a. vì X server hoạt động theo mô hình Client-Server. client và server có thề ở cùng một máy hoặc trên các máy khác nhau, thậm chí có thể khác cấu trúc và hệ điều hành.

câu 20. c
[Up] [Print Copy]
  [Question]   Re: LPI Test 16/12/2007 06:36:44 (+0700) | #14 | 104144
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]

281 wrote:

quanta wrote:

Chính xác. Nhưng giới hạn cuối của logical partitions là bao nhiêu? (được bắt đầu từ 5 và kết thúc ở bao nhiêu)
 

trên lý thuyết là không giới hạn. Nhưng thực tế, đối với IDE thì extended có thể chia tối đa thành 63 logical, đối với SCSI là 15. 

Google nó bảo thế, nhưng trong quyển LPI đáp án chỉ là từ 5 đến 16 thôi. Bỏ qua vụ này, chắc không ai tạo nhiều đến thế làm gì, "nát" hết HDD, hì.

281 wrote:

quanta wrote:

Có thể là e được không?
 

d,e,f,g,h,i,j,k,l,m,n... đều được. 

OK. Ban đầu tớ chỉ nghĩ là gắn được tối đa 4 HDD trên chuẩn IDE nên x chỉ có thể là: a, b, c, d.

281 wrote:

Vậy 17 chỉ có thể là a. vì X server hoạt động theo mô hình Client-Server. client và server có thề ở cùng một máy hoặc trên các máy khác nhau, thậm chí có thể khác cấu trúc và hệ điều hành.

câu 20. c
 

Vẫn chưa đúng cả 2 câu.
Let's build on a great foundation!
[Up] [Print Copy]
  [Question]   Re: LPI Test 16/12/2007 12:37:17 (+0700) | #15 | 104202
[Avatar]
azteam
Member

[Minus]    0    [Plus]
Joined: 17/03/2007 21:12:46
Messages: 177
Location: /dev/null
Offline
[Profile] [PM]
I think:
Câu 17.d
Câu 20.d
[Up] [Print Copy]
  [Question]   Re: LPI Test 16/12/2007 12:52:28 (+0700) | #16 | 104203
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]

azteam wrote:

Câu 17.d 

Đúng. Cho vài lời giải thích đi bạn.

azteam wrote:
Câu 20.d 

Sai.
Let's build on a great foundation!
[Up] [Print Copy]
  [Question]   Re: LPI Test 16/12/2007 12:54:14 (+0700) | #17 | 104205
[Avatar]
lihavim
Elite Member

[Minus]    0    [Plus]
Joined: 08/06/2004 15:19:32
Messages: 506
Offline
[Profile] [PM]
Câu 17. c
Lý giải: X nó hoạt động theo mô hình server-client, trong đó X server đứng trung giản giữa các thiết bị và client application với vai trò liên lạc. Vì thế nên theo em, thằng window manager sẽ giữ vai trò quản lý, nó sẽ "tác động" lên X server để có được kết quả theo ý muốn, như việc "hướng dẫn" X server nhận tín hiệu đầu vào từ cái gì, hiển thị thế nào...

Edit: Hề hề, post xong rồi mới thấy người ta đã trả lời, ra là mình suy đoán sai smilie. Nhưng quái, sao vẫn thấy cái mình nói... đúng đúng smilie.
[Up] [Print Copy]
  [Question]   Re: LPI Test 16/12/2007 14:05:19 (+0700) | #18 | 104217
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]

lihavim wrote:
Câu 17. c
Lý giải: X nó hoạt động theo mô hình server-client, trong đó X server đứng trung giản giữa các thiết bị và client application với vai trò liên lạc. Vì thế nên theo em, thằng window manager sẽ giữ vai trò quản lý, nó sẽ "tác động" lên X server để có được kết quả theo ý muốn, như việc "hướng dẫn" X server nhận tín hiệu đầu vào từ cái gì, hiển thị thế nào...

Edit: Hề hề, post xong rồi mới thấy người ta đã trả lời, ra là mình suy đoán sai smilie. Nhưng quái, sao vẫn thấy cái mình nói... đúng đúng smilie

Câu này tớ cũng nhầm. Đây là đáp án trong LPI (xin post nguyên văn để anh em so sánh):

d. A window manager is a client, controlled by the X server. Answers a and b are incorrect because they imply that the X server originates the graphical output. Answers c and e are common misconceptions. 

Trích thêm 1 đoạn từ: http://gentoo-wiki.com/WM hoặc http://cybercitation.com/Graphical-User-Interface/X_window_manager.php:

A window manager is software that controls the placement and appearance of application windows under the X Window System, a graphical user interface on Unix systems that enables a user to interact with a number of application programs simultaneously. Each one typically has its own independent window, and when a window manager is available, interaction between the X server and its clients is wwwected through the window manager.
 

Đọc thêm:
http://www.linuxdevcenter.com/pub/a/linux/2005/08/25/whatisXwindow.html?page=1
http://www.onlamp.com/pub/a/bsd/2000/06/21/FreeBSD_Basics.html?page=1
Let's build on a great foundation!
[Up] [Print Copy]
  [Question]   Re:LPI Test 16/12/2007 14:23:05 (+0700) | #19 | 104221
[Avatar]
nora
Elite Member

[Minus]    0    [Plus]
Joined: 20/09/2006 00:08:43
Messages: 360
Location: UK
Offline
[Profile] [PM]
úi, sai gần 1/2 Có lẽ mình ko xem lại câu trả lời smilie mình cũng học thêm được mấy câu smilie

câu 20 tớ cũng không hiểu rõ, nên cứ nhắm mắt chọn thử tại ko muốn bỏ trống smilie
Tìm trên google thì thấy:

The SCSI bus in Eagles, Roadrunners, the AM-4000, and newer computers, which requires a
SCSI dispatcher and supports up to seven devices, is the “SCSI-2 bus.” 


như vậy câu trả lời là B?

thanks "quan nó"

[Up] [Print Copy]
  [Question]   Re: LPI Test 16/12/2007 16:31:52 (+0700) | #20 | 104234
281
Elite Member

[Minus]    0    [Plus]
Joined: 27/05/2007 00:22:15
Messages: 228
Offline
[Profile] [PM]

quanta wrote:

là sai vì: trên physical disk không chỉ có /home, còn có thể có nhiều partitions khác.
 


quanta hoàn toàn vẫn có thể để /home trên 1 đĩa cứng riêng biệt chứ và chỉ dành riêng cho /home.


chừng nào rãnh cho anh em thêm mấy chục câu nữa nha quanta.

thân mến.
[Up] [Print Copy]
  [Question]   Re:LPI Test 16/12/2007 18:20:18 (+0700) | #21 | 104244
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]

nora wrote:
úi, sai gần 1/2 Có lẽ mình ko xem lại câu trả lời smilie mình cũng học thêm được mấy câu smilie

câu 20 tớ cũng không hiểu rõ, nên cứ nhắm mắt chọn thử tại ko muốn bỏ trống smilie
Tìm trên google thì thấy:

The SCSI bus in Eagles, Roadrunners, the AM-4000, and newer computers, which requires a
SCSI dispatcher and supports up to seven devices, is the “SCSI-2 bus.” 


như vậy câu trả lời là B?

thanks "quan nó"

 

Đáp án:

b. An 8-bit SCSI bus has three address lines, thus providing 23 or 8 addresses. Setting aside one for the controller, there are 7 addresses for devices. 

281 wrote:

quanta wrote:
là sai vì: trên physical disk không chỉ có /home, còn có thể có nhiều partitions khác. 

quanta hoàn toàn vẫn có thể để /home trên 1 đĩa cứng riêng biệt chứ và chỉ dành riêng cho /home.
 

Chính xác. Câu hỏi có yêu cầu chọn "best describe" nên ý tớ là:
/home có thể không phải là partition duy nhất trên physical disk. Câu trả lời đúng và tốt nhất phải là c.

ps: Đã edit lại bài post trên cho chuẩn.
Let's build on a great foundation!
[Up] [Print Copy]
  [Question]   Re: LPI Test 16/12/2007 18:54:13 (+0700) | #22 | 104245
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]
Part II

1. Name the full path and name of the file that holds most of the information on system user groups.

2. Consider the following script, stored in a file with proper modes for execution:
Code:
#!/bin/bash
for $v1 in a1 a2
do
echo $v1
done

Which one of the following best represents the output produced on a terminal by this script?
a.
in
a1
a2

b.
a1
a2

c.
$v1
$v1
$v1

d. No output is produced, but the script executes correctly.
e. No output is produced, because the script has an error.

3. Which one of the following commands verbosely extracts files from a tar archive on a magnetic tape device?
a. tar cvf /dev/st0
b. tar cvf /dev/ttyS0
c. tar xvf /dev/st0
d. tar xvf /dev/ttyS0
e. tar rvf /dev/st0

4. What variable holds the list of directories searched by the shell to find executable programs?

5. Where does The Linux System Administrators' Guide originate? Select one.
Red Hat Software, Inc.

a. O'Reilly Media, Inc.
b. The Free Software Foundation
c. The Linux Documentation Project
d. Usenet newsgroup comp.os.linux

6. Which one of these files determines how messages are stored using syslogd?
a. /etc/sysconfig/logger.conf

b. /etc/syslog.conf
c. /etc/syslogd.conf
d. /etc/conf.syslog
e. /etc/conf.syslogd

7. When running a text-mode FTP client, which command retrieves multiple files? Select one.

a. get *.txt
b. retrieve *.txt
c. mget *.txt
d. mretrieve *.txt
e. get -m *.txt

8. For an Internet workstation with a single network interface, what routes must be added to interface eth0 after it is initialized? Select one.
a. None
b. Interface
c. Interface and default gateway
d. Interface, local network, and default gateway

9. Which command will display information about Ethernet interface eth0? Select one.

a. cat /proc/eth/0
b. ifconfig eth0
c. ipconfig eth0
d. ipconfig /dev/eth0
e. cat /etc/eth0.conf

10. When is the PPP interface ppp0 created? Select one.
a. At boot time by the kernel
b. At installation time by mknod
c. At dial-up time by the chatscript
d. At dial-up time by pppd
e. When the modem powers up

11. What program is run on a client machine to request an IP address from a DHCP server? Select one.
a. dhcpd
b. inetd
c. pump
d. dhcp_client
e. bootp

12. What does the printcap entry sd indicate? Select one.
a. The system default printer
b. A printer's spool directory
c. A device file for the printer
d. A location where errors are stored
e. The printer driver

13. Where is TCP wrappers configured and where is it enabled?
a. Configured in tcpd.conf, enabled in tcpd.conf
b. Configured in inetd.conf, enabled in inetd.conf
c. Configured in hosts.deny and hosts.allow, enabled in inetd.conf
d. Configured in inetd.conf, enabled in hosts.deny and hosts.allow

14. Which of the following is a valid entry in /etc/fstab for a remote NFS mount from server fs1? Select one.
a. fs1:/proc /mnt/fs1 nfs defaults 9 9
b. /mnt/fs1 fs1:/proc nfs defaults 0 0
c. fs1:/home /mnt/fs1 nfs defaults 0 0
d. /mnt/fs1 fs1:/home nfs defaults 0 0
e. /home:fs1 /mnt/fs1 nfs defaults 0 0

15. Which of the following programs will display DNS information for a host? Choose all that apply.
a. host
b. nslookup
c. nsstat
d. dig
e. ping

16. Consider the following entry in /etc/exports:
/home pickle(rw,no_root_squash)

How is this entry handled by the NFS daemon? Select one.
a. Directory /home is shared to everyone, without requiring passwords.
b. Directory /home is shared to everyone, requiring passwords.
c. Directory pickle is mounted on /home.
d. Root is not allowed access to the shared directory.
e. The mount attempt will fail.

17. From the user's point of view, which answer describes the appearance of an NFS mounted directory? Select one.
a. A new device in /dev.
b. A new local volume accessed using a volume letter, such as D:.
c. A new local volume accessed using the NFS server's name.
d. Part of the local filesystem, accessed using ordinary pathnames.
e. Part of the NFS server's filesystem, accessed using the NFS server's name.

18. Which of the following statements regarding the ICMP protocol is not true? Select one.
a. ICMP is connectionless.
b. ICMP provides network flow control.
c. ICMP is also known as UDP.
d. ICMP is used by ping.

19. What is CHAP? Select one.
a. The PPP chat script.
b. An authentication protocol using clear text.
c. An authentication protocol embedded in the PPP data stream.
d. The pppd configuration utility.
e. A modem communications protocol.

20. What server daemon resolves domain names to IP addresses for requesting hosts?

21. During the two-way communication that takes place during a chat script used to start PPP, what is chat communicating with? Select one.
a. The pppd daemon
b. The PPP server
c. The kernel
d. The modem
e. The syslogd daemon

22. What function does a print filter serve? Select one.
a. It collates output from multiple users.
b. It translates various data formats into a page description language.
c. It rejects print requests from unauthorized users.
d. It rejects print requests from unauthorized hosts.
e. It analyzes print data and directs print requests to the appropriate lpd.

23. Consider the following excerpt from file /etc/resolv.conf of a Linux workstation:
nameserver 127.0.0.1
nameserver 192.168.1.5
nameserver 192.168.250.2
 

What can be said about this configuration? Select one.
a. Two DNS servers on the public network are being used for resolution.
b. One DNS server on the local network is being used for resolution.
c. The configuration contains errors that will prevent the resolver from functioning.
d. A caching-only name server is running.
e. The resolver library will consult nameserver 192.168.250.2 first.

24. Which of the following is true regarding BIND v4 and BIND v8 configuration files? Select one.
a. The information is largely the same, but the syntax is different.
b. The syntax is largely the same, but the information is different.
c. The two BIND versions use the same configuration file.
d. BIND v4 uses a binary configuration file instead of text.
e. BIND v8 uses a binary configuration file instead of text.

25. What is the meaning and location of the following kernel configuration file excerpt? Select one.
options opl3 io=0x388 


a. Kernel option opl3 is set to use I/O port 0x388; /usr/src/linux/.config.
b. Kernel module option opl3 is set to use I/O port 0x388; /usr/src/linux/.config.
c. Kernel module opl3 is set to use I/O port 0x388; /usr/src/linux/.config.
d. Kernel option opl3 is set to use I/O port 0x388; /usr/src/linux/.config.
e. Kernel module opl3 is set to use I/O port 0x388; /etc/conf.modules or /etc/modules.conf.

26. What program can be used to interactively change the behavior of a print queue? Select one.
a. lpd
b. lpr
c. lpq
d. lprm
e. lpc

27. Which of the following represents a valid sequence of commands to compile and install a new kernel? Select one.
a. make modules_install; make modules; make bzImage; make clean; make dep
b. make dep; make clean; make bzImage; make config; make modules; make modules_install
c. make config; make dep; make clean; make bzImage; make modules; make modules_install
d. make config; make bzImage; make dep; make clean; make modules; make modules_install
e. make dep; make clean; make bzImage; make modules; make modules_install; make config

28. What program will display a list of each hop across the network to a specified destination? Select one.
a. tracert
b. rttrace
c. traceroute
d. routetrace
e. init

29. Which file holds configuration information used during the process of kernel compilation? Select one.
a. /usr/src/linux/config
b. /usr/src/linux/.config
c. /usr/src/linux/kernel.conf
d. /etc/kernel.conf
e. /etc/sysconfig/kernel.conf

30. After a PPP connection is established and authenticated, what needs to be done before the interface can be used? Select one.
a. Add a route to ppp0.
b. Enable ppp0.
c. ifup ppp0.
d. Run pppd.
e. Turn on the modem.

31. Which of the following is not the name of an Apache configuration file? Select one.
a. httpd.conf
b. html.conf
c. srm.conf
d. access.conf

32. Which statement is true regarding the configuration of a printer on a remote Windows machine? Select one.
a. It can be configured like a TCP/IP network-attached printer.
b. The input filter must be set to smbprint.
c. The Windows printer must contain PostScript capability.
d. The rp directive must be used in the printcap file.
e. Linux can't print to Windows printers.

33. Which of the following commands will display a listing of files contained in a tar archive tape in /dev/st0? Select one.
a. tar cf /dev/st0
b. tar xf /dev/st0
c. tar tf /dev/st0
d. tar -zf /dev/st0
e. tar -zcvf /dev/st0

34. What is the systemwide bash configuration file called? Include the entire path.

35. How can a nonprivileged user configure sendmail to forward mail to another account? Select one.
a. She can add a new entry in /etc/aliases.
b. She can create a .forward file containing the new address.
c. She can create an .alias file containing the new address.
d. She can create a sendmail.cf file containing the new address.
e. She cannot forward mail without assistance from the administrator.

36. How does a process indicate to the controlling shell that it has exited with an error condition? Select one.
a. It prints an error message to stderr.
b. It prints an error message to stdout.
c. It sets an exit code with a zero value.
d. It sets an exit code with a nonzero value.
e. It causes a segmentation fault.

37. Consider the following trivial script called myscript:
#!/bin/bash
echo "Hello"
echo $myvar
 

Also consider this command sequence and result:
# set myvar='World'
# ./myscript
Hello
 

a. The script ran without error but didn't echo World. Why not? Select one.
b. The syntax of the set command is incorrect.
c. The script executes in a new shell, and myvar wasn't exported.
d. The #!/bin/bash syntax is incorrect.
e. The $myvar syntax is incorrect.
f. The script is sourced by the current shell, and myvar is available only to new shells.

38. What does this short configuration file except tell the Samba daemon? Select one.
[home]
path = /home
guest ok = yes
writable = yes
 


a. The location of the Samba software is rooted at /home.
b. A printer called home uses /home as a spool directory.
c. A share called home is located on /home and is writable by authenticated users.
d. A share called home is located on /home and is writable by anyone.
e. A share called home on remote system guest will be mounted at /home.
Let's build on a great foundation!
[Up] [Print Copy]
  [Question]   Re: LPI Test 16/12/2007 19:54:12 (+0700) | #23 | 104248
281
Elite Member

[Minus]    0    [Plus]
Joined: 27/05/2007 00:22:15
Messages: 228
Offline
[Profile] [PM]
Câu 2:

Chỗ sai của đoạn script này là:


#!/bin/bash
for $v1 in a1 a2
do
echo $v1
done
 


do đó không có out put được in ra mà chỉ có thông báo lỗi in ra.

Nếu sửa lại:


#!/bin/bash
for v1 in a1 a2
do
echo $v1
done
 


thì kết quả in ra là

Code:
a1
a2


do đó e là câu trả lời đúng nhất cho câu 2 này.
[Up] [Print Copy]
  [Question]   Re: LPI Test 16/12/2007 20:11:29 (+0700) | #24 | 104249
281
Elite Member

[Minus]    0    [Plus]
Joined: 27/05/2007 00:22:15
Messages: 228
Offline
[Profile] [PM]
Đáp án cho câu 3 là
tar xvf /dev/st0 

-x : extract
-st0 : ký hiệu cho một tape drive


Đáp án cho câu 5 là
Code:
The Linux Documentation Project

trang chủ hiện tại: http://www.tldp.org/tldp-wwwect.php?url=/

đáp án cho câu 9:
Code:
ifconfig eth0


Đáp án cho câu 11:
Code:
dhcp_client


đáp án cho câu 15:
Code:
dig, nslookup


đáp án cho câu 18 là
Code:
ICMP is also known as UDP

không thể đánh đồng 2 giao thức này với nhau. Ít nhất là chúng nằm 2 ở 2 tầng khác nhau của mô hình tcp/ip.

20. What server daemon resolves domain names to IP addresses for requesting hosts?
Code:
DNS (Domain Name System) Server


23.
One DNS server on the local network is being used for resolution. (127.0.0.1



28. What program will display a list of each hop across the network to a specified destination? Select one.
tracert trong windows
traceroute trong Linux hoặc Mac OS X 


29. Which file holds configuration information used during the process of kernel compilation? Select one.
/usr/src/linux/.config 


37.
The script executes in a new shell, and myvar wasn't exported.  


38.
A share called home is located on /home and is writable by anyone.  
[Up] [Print Copy]
  [Question]   Re: LPI Test 17/12/2007 00:46:12 (+0700) | #25 | 104280
subnetwork
Member

[Minus]    0    [Plus]
Joined: 05/09/2004 06:08:09
Messages: 1666
Offline
[Profile] [PM] [WWW] [Yahoo!]

quanta wrote:

281 wrote:

cho 281 ké tạm 4 câu:

1. e
2. c
4. b
7. e 

Chính xác.
1. Nếu được, bạn vui lòng nói rõ thêm về cách ký hiệu dành cho: IDE, SCSI disk và cách đánh số các loại partitions: primary, extended, logical.
2+4: Giải thích thêm thì càng tốt

ps: Vẫn "lăn tăn" câu 7 à? 


Anh chỉ có ý kiến ý cò chổ này chứ không dám đi sâu thảo luận giải quyết các vấn đề liên quan đến "giải quyết các câu hỏi của LPI"

Trong Linux chỉ cho phép tối đa bốn partition chính (primary) và như thế Master boot record chỉ ghi tới bốn partiton này chứ không có partition thứ 5 được do việc hạn hẹp như thế người ta đề xuất thêm ý kiến ý cò này, muốn tạo thêm các partition khác để lưu trử dử liệu người ta gọi thêm partition mở rộng (extended partition) , partition mở rộng này giống y chát như thằng primary partition nhưng nó thêm 1 đặc điểm, nó có thể tạo nhiều partition cháu chắt trong extended partition . Đây chính là logical partition .

Về phần ký hiệu mô tả partition không nói thêm smilie
Quản lý máy chủ, cài đặt, tư vấn, thiết kế, bảo mật hệ thống máy chủ dùng *nix
http://chamsocmaychu.com
[Up] [Print Copy]
  [Question]   Re:LPI Test 17/12/2007 01:24:50 (+0700) | #26 | 104287
[Avatar]
nora
Elite Member

[Minus]    0    [Plus]
Joined: 20/09/2006 00:08:43
Messages: 360
Location: UK
Offline
[Profile] [PM]
Part II


1 - /etc/group
6 - c
# /etc/syslog.conf Configuration file for syslogd.
7 - c
mget
8 - d

10 - a

11 - c

12 - b. A printer's spool directory
13 - c. Configured in hosts.deny and hosts.allow, enabled in inetd.conf
14 - c. fs1:/home /mnt/fs1 nfs defaults 0 0

16. Consider the following entry in /etc/exports:
/home pickle(rw,no_root_squash)

How is this entry handled by the NFS daemon? Select one.
the onswer is a.
a. Directory /home is shared to everyone, without requiring passwords.

b. Directory /home is shared to everyone, requiring passwords.
- The entry on top allow user READ and Write.

c. Directory pickle is mounted on /home.
- NFS daemon is controlled by the file /etc/exports, follow the path is allowed client(s), it can be either IP addresses or name, therefore if a file name with an ip address /home 192.168.0.3(rw,no_root_squash) might not be a directory on /home.


d. Root is not allowed access to the shared directory.
- Root should be allowed on all directories in a system.

e. The mount attempt will fail.
- it might not be fail, consider an example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync) hostname2(ro,sync)

19 - c. An authentication protocol embedded in the PPP data stream.

21 - d. The modem
- The chat script will "ask" the modem "how can i talk to qanta?" the modem will use the "map" (PPP setting) to show the chat script how to smilie
23 - d. A caching-only name server is running.

24 - a. The information is largely the same, but the syntax is different.

25 - e. Kernel module opl3 is set to use I/O port 0x388; /etc/conf.modules or /etc/modules.conf.

26 - e. lpc
27 - c. make config; make dep; make clean; make bzImage; make modules; make modules_install

When compiling a kernel, as far as i know the first step is make config, in this case a, b, e are not correct.
looking at c and d, the next step cannot be make bzImage because this step is normally after you make clean, so c í an appropriate answer.
[Up] [Print Copy]
  [Question]   Re: LPI Test 17/12/2007 07:01:25 (+0700) | #27 | 104325
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]

281 wrote:
Câu 2:

Chỗ sai của đoạn script này là:


#!/bin/bash
for $v1 in a1 a2
do
echo $v1
done
 


do đó không có out put được in ra mà chỉ có thông báo lỗi in ra.

Nếu sửa lại:


#!/bin/bash
for v1 in a1 a2
do
echo $v1
done
 


thì kết quả in ra là

Code:
a1
a2


do đó e là câu trả lời đúng nhất cho câu 2 này. 

OK.

281 wrote:

Đáp án cho câu 11:
Code:
dhcp_client


đáp án cho câu 15:
Code:
dig, nslookup


20. What server daemon resolves domain names to IP addresses for requesting hosts?
Code:
DNS (Domain Name System) Server


23.
One DNS server on the local network is being used for resolution. (127.0.0.1
 

Đây là những câu chưa đúng.
Let's build on a great foundation!
[Up] [Print Copy]
  [Question]   Re:LPI Test 17/12/2007 07:14:13 (+0700) | #28 | 104327
[Avatar]
quanta
Moderator

Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
[Profile] [PM]

nora wrote:
Part II

6 - c
# /etc/syslog.conf Configuration file for syslogd.
 

Lưu ý một chút là Fedora 7, 8 đã đổi thành /etc/rsyslog.conf

nora wrote:

10 - a

16. Consider the following entry in /etc/exports:
/home pickle(rw,no_root_squash)

How is this entry handled by the NFS daemon? Select one.
the onswer is a.
a. Directory /home is shared to everyone, without requiring passwords.

b. Directory /home is shared to everyone, requiring passwords.
- The entry on top allow user READ and Write.

c. Directory pickle is mounted on /home.
- NFS daemon is controlled by the file /etc/exports, follow the path is allowed client(s), it can be either IP addresses or name, therefore if a file name with an ip address /home 192.168.0.3(rw,no_root_squash) might not be a directory on /home.


d. Root is not allowed access to the shared directory.
- Root should be allowed on all directories in a system.

e. The mount attempt will fail.
- it might not be fail, consider an example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync) hostname2(ro,sync)
 

Lần này bác trả lời đỉnh quá. Đoạn trích trên là những câu chưa đúng.
Let's build on a great foundation!
[Up] [Print Copy]
  [Question]   Re: LPI Test 17/12/2007 11:11:02 (+0700) | #29 | 104360
281
Elite Member

[Minus]    0    [Plus]
Joined: 27/05/2007 00:22:15
Messages: 228
Offline
[Profile] [PM]
11. What program is run on a client machine to request an IP address from a DHCP server?
c. pump

nhưng 281 không dùng thằng này mà dùng "dhcpcd"

15. Which of the following programs will display DNS information for a host? Choose all that apply.
a. host
b. nslookup
d. dig

20. What server daemon resolves domain names to IP addresses for requesting hosts?
"daemon server" này là "named"

23. What can be said about this configuration? Select one.
d. A caching-only name server is running. --> 127.0.0.1 --> named đang chạy


[Up] [Print Copy]
  [Question]   Re: LPI Test 17/12/2007 22:00:05 (+0700) | #30 | 104415
subnetwork
Member

[Minus]    0    [Plus]
Joined: 05/09/2004 06:08:09
Messages: 1666
Offline
[Profile] [PM] [WWW] [Yahoo!]

281 wrote:
11. What program is run on a client machine to request an IP address from a DHCP server?
c. pump

nhưng 281 không dùng thằng này mà dùng "dhcpcd"
 


dhcpcd (DHCP client) có nhiệm vụ nhận địa chỉ IP và một số thông tin về mạng như netmask, broadcast,... từ DHCP server.

dhcpd (DHCP server) máy này có nhiệm vụ cấp địa chỉ IP cho các máy khác trong mạng .
Xem thêm tập tin cấu hình của nó ở /etc/dhcpd.conf và dhcpd.lesses ,....
Quản lý máy chủ, cài đặt, tư vấn, thiết kế, bảo mật hệ thống máy chủ dùng *nix
http://chamsocmaychu.com
[Up] [Print Copy]
[digg] [delicious] [google] [yahoo] [technorati] [reddit] [stumbleupon]
Go to: 
 Users currently in here 
1 Anonymous

Powered by JForum - Extended by HVAOnline
 hvaonline.net  |  hvaforum.net  |  hvazone.net  |  hvanews.net  |  vnhacker.org
1999 - 2013 © v2012|0504|218|