Redhat Chapter 3 Test - Linux

¡Supera tus tareas y exámenes ahora con Quizwiz!

Which directory contains persistent, system-specific configuration data? * a. /etc b. /root c. /run d. /usr

a. /etc

Which directory contains temporary files? * a. /tmp b. /trash c. /run d. /var

a. /tmp

What does df command do? * a. Lists the directories on different file systems b. shows the difference between directories c. creates a file at a different location d. none of the above

a. Lists the directories on different file systems

28. Source file and a link file created using soft link will have different inode numbers. * a. True b. False

a. True

By default if any regular file is created, the number of link is displayed as 1 ? * a. True b. False c. Can't be determined

a. True

There are two hard links to the "file1? say hl and h2 and a softlink sl. What happens if we deleted the "file1? * a. We will still be able to access the file with hl and h2 but not with sl b. We will not be able to access the file with hl and h2 but with sl c. We will be able to access the file with any of hl, h2 and sl d. We will not be able to access the file with any of hl, h2 and sl

a. We will still be able to access the file with hl and h2 but not with sl

Which command is used to return to the current user's home directory, assuming the current working directory is /tmp and their home directory is /home/user? * a. cd b. cd .. c. cd . d. cd * e. cd /home

a. cd

Which command will always return you to the working directory used prior to the current working directory? * a. cd - b. cd -p c. cd ~ d. cd ..

a. cd -

Which directory is the top of the system's file system hierarchy? * a. /etc b. / c. /home/root d. /root

b. /

Which directory contains user home directories? * a. / b. /home c. /root d. /user

b. /home

Deleting a soft-link --- ? * a. Deletes the destination file b. Deletes just the softlink c. Deletes both the softlink and the destination file d. None of the above

b. Deletes just the softlink

A user creates a link to a file file1 using the following command "ln file1 file2". Which of the following is not true? * a. file1 and file2 have the same inode numbers b. The number of links for file1 is displayed as 1 c. The number of links for file1 is displayed as 2 d. The number of links for file2 is displayed as 2

b. The number of links for file1 is displayed as 1

Which command will always change the working directory to the parent of the current location? * a. cd ~ b. cd .. c. cd ../.. d. cd -u1

b. cd ..

Which command will always change the working directory to /bin? * a. cd bin b. cd /bin c. cd ~bin d. cd -bin

b. cd /bin

What command(s) one can use to know existing hard links to a file. Check all that apply * a. ln b. ls -l c. ls -il d. show link

b. ls -l & c. ls -il

Which command displays the absolute path name of the current location? * a. cd b. pwd c. ls ~ d. ls -d

b. pwd

Which directory contains non-persistent process runtime data? * a. /tmp b. /etc c. /run d. /var

c. /run

Which directory contains installed software programs and libraries? * a. /etc b. /lib c. /usr d. /var

c. /usr

Which directory contains regular commands and utilities? * a. /commands b. /run c. /usr/bin d. /usr/sbin

c. /usr/bin

Which command will always change the working directory up two levels from the current location? * a. cd ~ b. cd ../ c. cd ../.. d. cd -u2

c. cd ../..

Which command will change the working directory to /tmp if the current working directory is /home/student? * a. cd tmp b. cd .. c. cd ../../tmp d. cd ~tmp

c. cd ../../tmp

Which directory is the administrative superuser's home directory? * a. /etc b. / c. /home/root d. /root

d. /root

Which directory contains dynamic data, such as for databases and websites? * a. /etc b. /run c. /usr d. /var

d. /var

Lisa is working on her local workstation which uses Ext4 file system. She starts writing an essay for her college application. She wants to take a backup creating a link on the server that has XFS file system because she knows that the workstation files may get deleted if the workstation was booted up by the Admin. What kind of link Lisa should create in such a way she doesn't lose her work? * a. Hard link as it creates a mirror copy of the document and gets updated with original document. b. She should create a Soft link file on the server. c. Creating either of the links will be just fine. d. Lisa has to first move the original file to Server using mv command and then create a soft link on the workstation.

d. Lisa has to first move the original file to Server using mv command and then create a soft link on the workstation.

You want to find all the files that do not have any numbers in the file name, what pattern you should use when searching for the files? * a. [123...] b. [[:alpha:]] c. * d. [!123...]

d. [!123...]

Creation of hardlinks that point across partitions * a. is allowed only to root user b. Can be done by all users c. The effects are unspecified d. is not allowed

d. is not allowed

Which command lists files in the current location, using a long format, and including hidden files? * a. llong ~ b. ls -a c. ls -l d. ls -al

d. ls -al

What LINUX command is used to update the modification time of a file? * a. time b. cat c. modify d. touch

d. touch


Conjuntos de estudio relacionados

Chapter 5: FL Statutes, Rules, and Regulations

View Set

Configuration Management & JSON Encoded Data

View Set

3.2: Given a Scenario, Implement Host or Application Security Solutions

View Set

Ch 14: Nursing Management During Labor and Birth

View Set

REAL 4100: Real Estate Finance & Investment Analysis

View Set

CEH CH 10: Cryptographic Attacks and Defenses

View Set