Week 1 Linux Test

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Which keyboard key retrieves the last command that you entered in the default Linux shell?

UP arrow

Which Linux text editor has a graphical user interface (GUI)?

gedit

Which command displays the name of the computer that you are logged in to in the default Linux shell?

hostname

Which command displays the permissions for files and directories?

ls -l

A systems administrator must see a list of all files in the /var/log directory in long format. Which command and option should the administrator use?

ls -la /var/log

Which command allows you to add a user to a group?

usermod

A Linux administrator must compare and display the outputs of two different files. Which Linux command can the administrator use to compare the file outputs?

diff

Which directory contains a user's personal files by default?

/home

A systems operator is editing a file in Vim, and they want to exit the editor without saving the file. Which command should the operator use?

:q!

A developer is editing a file in Vim, and they want to save the file and exit the editor. Which command should the developer use?

:wq

What is a Linux daemon?

A program that provides a service and runs in the background.

Which statement is a best practice for using the root account?

Always log in as a standard user, and switch the user to the root account only when you must elevate permissions.

What is the name of the default Linux shell?

Bash

Which statement reflects the principle of least privilege?

Give the least number of users the least amount of file access first, and grant more permissions only when the user has a need.

Which component of the Linux operating system allocates the memory that is used to run applications?

Kernel

What are the main components of a Linux distribution? (Select TWO)

Kernel Complementary tools and applications

Which statement about the Linux operating system is true ?

Linux is open source .

Which statements apply to setting user passwords? (Select TWO)

Passwords are set with the passwd command. Users can reset their own passwords.

Which statement about symbolic links is true?

Symbolic links point to a hard link, instead of the actual file.

Which keyboard key automatically completes commands in the default Linux shell?

TAB

What is the default text editor for virtually all Linux distributions?

Vim

Which command changes the current working directory to a different directory?

cd

Which command allows the user to set permissions for files and directories?

chmod

Which of the following is an example of Absolute mode?

chmod 757 filename

Which command is used to change the user or group of a file or directory?

chown

A Linux administrator downloaded a file from the internet. The administrator believes that the file is corrupted. Which Linux command can the administrator use to check whether a file is corrupted?

cksum

Which command displays the absolute path to the user's current location in the file system?

pwd

Which command gives you full administrative privileges and allows you to switch to the root user's environment?

sudo -i

Which option for the tar command enables a user to create a tarball?

-cvf tarball.tar

Which permissions does a standard user have? (Select TWO).

Control any files that the user owns Access any files that the user has permissions for

A systems administrator is editing a text file in Vim and is in the Insert mode. The administrator wants to exit the Insert mode and return to the Command mode. What keyboard key should the administrator press?

ESC

Which search options can be used with the find command? (Select TWO).

File name File size

Which statements about Linux file names are true? (Select TWO).

File names are case sensitive. Extensions are optional.

Which command enables you to review the manual page for the hostname command?

man hostname

Which command displays the name of the account that you are logged in as in the default Linux shell?

whoami


Ensembles d'études connexes

Health Assessment -Exam 4 - Ch. 25,26,27

View Set

Statistical vs. Non-Statistical Question

View Set

Chapter 9: System Design and Scalability

View Set

(3) class NCLEX questions & prep u (med surg) CANCER part 1 & 2

View Set

RHIT - Information Technology Domain 4

View Set

MANA3335 MindTap Case Activity: Chapter 10: Managing Employee Motivation and Performance

View Set