Siêu thị PDFTải ngay đi em, trời tối mất

Thư viện tri thức trực tuyến

Kho tài liệu với 50,000+ tài liệu học thuật

© 2023 Siêu thị PDF - Kho tài liệu học thuật hàng đầu Việt Nam

Tài liệu FINAL EXAMINATION FUNDAMENTALS OF LINUX - 1 docx
MIỄN PHÍ
Số trang
3
Kích thước
135.3 KB
Định dạng
PDF
Lượt xem
956

Tài liệu FINAL EXAMINATION FUNDAMENTALS OF LINUX - 1 docx

Nội dung xem thử

Mô tả chi tiết

#1 #1

INFORMATION TECHNOLOGY COLLEGE OF HO CHI MINH CITY

FACULTY OF INFORMATION TECHNOLOGY

--oOo--

FINAL EXAMINATION

SUBJECT: FUNDAMENTALS OF LINUX

CLASSES: C9CTs

DURATION: 90 minutes

(only reference to “Fundamentals of Linux” paper-book

and English-Vietnamese paper-dictionary allowed )

Choose the best answer for each question.

1) As a system administrator, you are instructed to

backup all the users’ home directories. Which of the

following commands would accomplish this?

a) tar xvf usersbackup.tar /home/*

b) tar cvf usersbackup.tar /home/*

c) tar cvf usersbackup.tar /home/usr/*

2) What would be displayed as the result of issuing the

command ps –ef?

a) Display information about every process on the

system with full listing.

b) Only display names of all processes of current

user.

c) Display information about stopped processes on

the system with full listing.

3) You enter the command

cat MyFile | sort > DirList&

and the operating system display

[4] 3499

What does this mean?

a) This is the job number 4 and the PID of the

command 3499

b) This is the job numner 4 and the PID of the job is

3499

c) The PID of the command is 3499 and the priority

is 4

4) Which command would you use to get a list of all files

inside the rpm-packet votandung.rpm in /home/cntt?

a) rpm –a /home/cntt/votandung.rpm

b) rpm –l /home/cntt/votandung.rpm

c) rpm –d /home/cntt/votandung.rpm

5) How could you describe the following commandline?

command1 | command2

a) The command command1 redirect its output to

the command command2.

b) The command command1 writes its output into

the file command2.

c) The command command2 is only processed if

the command command2 leaves with an error.

6) What would the following command result in?

echo $(date) > A.txt

a) The current date and time of the system will be

written into the file A.txt

b) The date and time values in A.txt file will set for

the date and time of the system.

c) Displays errors.

7) Which of the following commands could be used to

search for a particular term inside a textfile without

opening the file?

a) grep

b) diff

c) find

8) What would the following command result in? (Files:

file1.txt, file2.txt. Directories: tm1, tm2, tm3)

cp /tm1/file1.txt /tm2/file2.txt /tm3

a) This isn’t a valid command.

b) file1.txt, file2.txt and tm3 are copied to current

directory.

c) file1.txt and file2.txt are copied to /tm3

9) You've started three jobs in the background. Now you

would like to bring one particular of them into the

foreground again. How could you do it?

a) Use the command fg jobname

b) Get the list of jobs using the jobs-command and

then use fg jobID

c) Switch through all background-jobs using the

Ctrl-Tab key

10)Which statements about priority of processes are true?

a) A priority value reaches from 0 to 20

b) A less priority value means higher priority

c) Priority-values can be changed with the ps￾command

11)What does the following command mean?

ls *[A-Z][0-9]

a) List all files that end with one uppercase letter

and then one digit.

b) List all files that begin with one uppercase letter

and one digit.

c) List all files that have one letter or one digit.

12)What is the number of the first logical partition on

/dev/hda?

a) /dev/hda1

b) /dev/hda4

c) /dev/hda5

13) In what file do you configure which partitions should

be mounted on bootup?

a) /etc/fstab

b) /etc/mkfstab

c) /root/fstab

14) You are working with vi, writing a textfile. Being in

command mode, you want to move the cursor to last

line of file. Enter the necessary command?

a) G

b) 1G

c) Press “End” key.

15) You need to search the entire directory structure to

lacate a specific file. How could you do this and still

Page 1 of 3 (exam #1)

Tải ngay đi em, còn do dự, trời tối mất!