Linux Test

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

What option is used with the groupadd command to specify group ID? a) -g b) -f c) -o d) -n

-g

As defined in the Filesystem Hierarchy Standard (FHS), the topmost directory in a Linux file system is the root directory. Indicated by a single forward slash (/). Below the root directory are various subdirectories that are standardized as part of the FHS. Which subdirectory stores hardware and software device drivers and maintains the file system entries that represent the devices connected to the system? a) /bin b) /dev c) /opt d) /lib

/dev

An intern reviews subdirectories used to support Linux systems through advisement of the FHS. What subdirectory stores optional files of large software packages? a) /sbin b) /bin c) /opt d) /home

/opt

During a senior engineering's absence, you have been asked to perform software package management on a Linux network management workstation. You are using the APT ( Advance Package Tool) Package manager. Notes from the senior engineer indicated the following: * You need to ensure that the system database knows of all new software packages. * You need to build a dependency tree. * The network-manager package needs to be the latest version for some testing. (You will need to get information on the package, so be sure the latest version is installed.) * The traceroute package has not been working properly and should be reinstalled. (The engineer notes that it would be best to uninstall the package and any configuration files first.) Base on the scenario and the information displayed, use the dropdown selectors to select the appropriate network troubleshooting commands and subcommands. Update apt-cache stats show upgrade purge install showpkg apt-get check 1) user@powerstation:~$ sudo apt ___________________ All packages are up to date. 2) user@powerstation:~$ sudo ___________________ 3) ______________________ Total package names: 78735 (1575k) Total package structures: 78926 (3473k) 4) user@powerstation:~$ sudo apt ______________________ network-manager Package: network-manager Version: 1.10.6.2ubuntu1.1 5) user@powerstation:~$ sudo apt _____________________ network-manager network-manager is already the newest version (1.10.6-2ubuntu1.1) 6) user@powerstation:~$ sudo apt _____________________ traceroute Removing traceroute (1:2.1.0-2) - 7) user@powerstation:~$ sudo apt _____________________ traceroute Setting up traceroute (1:2.1.0-2) - 8) user@powerstation:~$ sudo apt-cache _____________________ traceroute Dependencies: 1:2.1.0-2-libc6(2.2.14) 9) user@powerstation:~$ sudo _____________________ 10) ______________________ Building dependency tree Reading state information... Done

1) Update 2) apt-cache 3) stats 4) show 5) upgrade 6) purge 7) install 8) showpkg 9) apt-get 10)check

Which command supported by Vim, has the function that reverts to the last saved format without closing the file? a) :w (file name) b) :q c) :! (any Linux command) d) :e!

:e!

A Linux power user wants to provide input data from a current source, stopping when a line containing the provided string occurs. Which of the following operators will facilitate this objective? a) >> b) < c) << d) >

<<

A technician attempts to access several files and directories but does not have valid permissions. What is likely keeping the technician from viewing the directories? a) Attribute b) Permission c) Policy/Non-policy d) Access control list

Access control list

What Process describes the abstraction of physical storage devices into virtual storage devices? a) Device mapping b) Logical volume manager c) Physical volume tools d) DM-Multipath

Device mapping

While working on a trouble ticket, an administrator is to create a new group called "service team" After entering the command groupadd service team on a server interface, an administrator receives a return code 2. What does this code mean? a) Invalid argument syntax b) Group name not unique c) success d) GID not unique

Invalid argument syntax

A technician evaluates current technology issues with a group of employees. What is associated with permission issues? a) It is the effective allotment and monitoring of quotas for all users. Issues arise when all allocated space has been consumed. b) It begins with starting basic checks and ensuring that an account does exist with a valid password. c) It is logging on with a standard user account and then changing the identity to one with administrative privileges. d) It exists when the user forgets the credential pair, it has expired, or it has been locked.

It exists when the user forgets the credential pair, it has expired, or it has been locked.

A cyber consultant reviews the three-step process for computing software. How does the make command support this process? (Select all that apply.) a) It will automatically look for the makefile in the current directory. b) It processes input/output on a per-character basis. c) It installs the program, placing the files in the current locations. d) It will assist in completing the compile process.

It will automatically look for the makefile in the current directory/It will assist in completing the compile process

Which Linux distribution is Debian-based and used for penetration testing? a) Kali Linux b) Ubuntu c) Red Hat Enterprise Linux (RHEL) d) Fedora

Kali Linux

A software technician considers the various methods of detecting device issues. What, when considered as three layers of commands, could make it easier to anticipate issues? a) LVM b) Inode exhaustion c) Mount option problems d) I/O error

LVM

A technician reviews the various types of storage designs available to the team. What is NOT a type of storage design? a) Object b) Block c) File d) MBR

MBR

A software consultant creates a memorandum on device issues. What type of issue is associated with errors in the /etc/fstab file? a) LVM b) I/O error c) Inode exhaustion d) Mount option problems

Mount option problems

A technician evaluates device issues associated with storage disks. What may fail during the initial installation of the drive or during later boot sequences? a) SSD trim b) NVMe c) RAID d) SSD

NVMe

A system administrator is having challenges accessing a file. What provides a way for system administrators to enforce access levels on users for files and directories? a) Policy/Non-policy b) Attribute c) ACL d) Permission

Permission

A system administrator must provide a different way of delegating privleges than using sudo to provide more granular control to users. What toolkit will provide this for the system administrator to use? a) cURL b) PolicyKit c) /etc/sudoers d) X FORWARDING (X11)

PolicyKit

A technician reviews a system's file location space. What type of issue occurs when all allocated space is gone? a) User login b) Quota issue c) Privilege elevation d) Password issue

Quota issue

What is the process of accepting input data from a source other than the keyboard and sending output data to a destination other than the display device? a) Standard output b) Piping c) Text stream d) Redirection

Redirection

Which type of user account plays two roles on a Linux system? a) Root user b) Standard user c) Service d) Wheel group

Root user

A cyber engineer reviews a company factsheet on storage devices. What issue is associated with a drive in which the data is not being deleted but identified as available? a) SSD b) RAID c) NVMe d) SSD trim

SSD

A cyber architect reviews procedures that discuss device issues. What action removes data, frees space, and further provides an optional feature that proactively removes data so that the space is ready for new information to be written? a) RAID b) SSD trim c) NVMe d) SSD

SSD trim

You have a user who is denied permission to execute a script that they themselves created. What is the cause of this problem? a) The execute permission is not automatically set for new files. b) Like with any other file, the user needs write permission in order to change a script's contents. c) The user needs read permission in order to execute a script. d) By default, the write and execute permissions on directories enable users to delete the objects therein.

The execute permission is not automatically set for new files.

There are many common symptoms that can relate to permission issues. What symptom can be caused by the owner not being granted read access? a) The owner of a text file is denied permission to view the contents of the text file. b) A user is denied permission to remove a directory, despite having write permission. c) A user is denied permission to remove a file, despite having full permissions on that file. d) The root user is denied permission to modify a file.

The owner of a text file is denied permission to view the contents of the text file.

If a user is unable to access a file, despite the owner context having full permissions what is causing this to happen? a) The user is not the owner of the file. b) The directory's owning group is not the same as the user's group. c) The file's owning group is set to the same group that these users are members of. d) By default, files created by a user take on that user's group ID.

The user is not the owner of the file.

Which Linux Debian-based distribution is the most popular for general use? a) Ubuntu b) Red Hat Enterprise Linux (RHEL) c) Fedora d) Slackware

Ubuntu

What does the principle of Least Privilege state? a) Users should be given no more authority on the system than they need to perform their job. b) Users should log in with a standard user account then elevate their privlege to root as needed. c) Users delegate specific commands to specific users without granting them full privileges on the server. d) Users have an opportunity to correct mistakes before they become part of the running configuration.

Users should be given no more authority on the system than they need to perform their job.

A consultant reviews an article on understanding bash interaction with Linux and text editors. What complex text editor would use three different modes; insert, command, and execute, where each mode maps keyboard keys to different functions? a) gzip b) zip c) bzip2 d) Vim

Vim

A technician wants to display project file contents. What command will combine file contents from multiple sources into one? a) touch b) tree c) cd d) cat

cat

What is the name of a Linux command used to change your current directory? a) cd b) mkdir c) ls d) pwd

cd

Which of the following commands is the absolute mode command to set an SGID? a) chmod 4555 [filename] b) chmod u+s [filename] c) chmod 2555 [filename] d) chmod g+s [filename]

chmod 2555 [filename]

An engineer wants to compress files. What is a compression utility that would reduce selected files' size and frequently has the .gz file extension? a) Vim b) zip c) bzip2 d) gzip

gzip

An administrator works on a ticket for the human resources department. The ticket is for a new employee, user "jwilson", and the account needs to mirror to account jdoe. What command does the administrator need to use to see all of the groups jdoe is a member? a) id jdoe b) usermod jdoe c) tail /etc/passwd |grep jdoe d) groupmod jdoe

id jdoe

What command will list the attributes of all files in a directory? a) lsattr b) lsattr -a c) lsattr -Ra d) chattr -R

lsattr -a

Which command displays information about all block storage devices that are currently available on the system? a) lsblk b) blkid c) fsck d) resize2fs

lsblk

A technician wants to use a manipulation command that invokes the editor. What command can the technician use? a) printf b) nano c) sed d) awk

nano

What mount option specifies that only the root user can mount a device or a file system? a) rw b) sync c) async d) nouser

nouser

A consultant attempts to navigate directories. What command presents the working directory and may be used to confirm location before a backup job, a file transfer, or the deletion of files? a) pwd b) cd c) rm d) tree

pwd

Which command is a program that you can use to modify text files according to various parameters? a) ln b) awk c) sed d) grep

sed

An intern researches commands that display file metadata. What should the intern use to display file metadata in a relatively user-friendly structure? a) Soft link b) Hard link c) stat d) file

stat

An engineer compresses files. What command would recognize compression utilities such as gzip and bzip2? a) cpio b) tar c) dd d) xz

tar

Which command is used to create a user account and configure basic settings? a) passwd b) useradd c) chage d) tree

useradd

What are the three commands used to properly edit the /etc/passwd file? (Select all Three) a) useradd b) usermod c) userdel d) chage

useradd/usermod/userdel

After completing a customization of the Kernel on a server, an administrator needs to restart the server. What commands can the administrator use to see those users still currently logged into the server? (Select all the apply.) a) id b) w c) who d) pwd

w/who

In Linux, Which command will provide a one-line description of a given command's purpose? a) whatis b) apropos c) info d) man

whatis


Ensembles d'études connexes

7 fundamentals of reconnaissance

View Set

3118 Pharmacology Final - EXAM 2

View Set

The Tempest: Act 3, Scene TWO -- p3

View Set

AP Psychology: Chapter 1 - Case Study, Survey, and Natural Observation Methods

View Set

Small business management unit 3

View Set

Textbook Chapter 2 - Biology - Chemistry of Life

View Set

Unit 8: Psychological Disorders and Therapies

View Set

CHAPTER 3 Platform as a Service (PaaS)

View Set