Linux Essentials - Homework 5

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

Which two options can you use with the chown command to change the ownership of an entire directory tree? - r-x - -r - --recursive - ls

-r --recursive

If you wanted to hide a file from view in a Linux directory, what would you add to the beginning of it to make it not appear? - . - ? - $ - !

.

Which of the following directories servers as a mount point for a short-term mounting of additional storing media? - /media - /home - /mnt - /srv

/mnt

John is a Linux systems administrator who has been tasked with the job of investigating a compromised system running a normal Linux desktop OS. He wants to investigate and review the local software, system libraries, and other installed applications on the system. Which of the following directories will he review to accomplish this task? - /sbin - /tmp - /lib - /mnt

/sbin

If a Linux system has been properly configured, which directory can any user delete any file? - /tmp - /shadow - /passwd - /var

/tmp

Which of the following directories does Linux store temporary files? - /passwd - /etc - /home - /tmp

/tmp

In which directory would you most likely find the print spool files in a Linux OS? - /tmp - /passwd - /var - /lib

/var

Which of the following directories contains dynamically changing files, distributed across different directories? - /var - /home - /usr - /sys

/var

True or false: A file with the permissions of 755 can be read by any user on a computer, assuming all users can read the directory in which is resides.

True

True or false: It is very common to not see the GUI X desktop installed on a Linux computer being used as a server

True

Which two commands will display the executable paths of commands? - whereis - which - info - whoami

whereis which

If you wanted to ensure that there were certain temporary files not deleted during a reboot, where would you most likely place them in a properly configured Linux OS? - /tmp - /passwd/tmp - /var/tmp - /temp/perm

/var/tmp

You work as a Network Administrator for a company that uses a Linux-based network. You are a root user on the Red Hat operating system. You want to know how many words are present in the file names file1.txt. You type the following command on the terminal: wc file1.txt The command output displays the following: 40 245 1800 file1.txt How many words are present in file1.txt? - 245 - 40 - 1800 - 285

245

When a new directory is created, its permissions is always subtracted from the number ______ (rwxrwxrwx). - 777 - 111 - 767 - 555

777

Which of the following applications would you most likely find installed on a desktop computer running Linux? - Evolution - Apache - Android - Microsoft Office

Evolution

True or false: The only account that has access to the command chmod is the root account

False

What type of files are you most likely to find in the /usr/lib, according to the FHS? - LibreOffice files - Liberal files - Lost files - Library files

Library files

Which type of multitasking does a Linux OS use? - Pre-emptive - Cooperative - Single tasking - Multi-user

Pre-emptive

Which of the following users are allowed to change the ownership of a file? - System user - Other user - Root user - Guest user

Root user

Which of the following applications allow Linux computers to participate in Microsoft Windows Workgroups and Domains? - NFS - Samba - OpenOffice - Apache

Samba

Which of the following components would not be considered a major component essential to using a modern-day desktop computer? - Monitor or display - Speakers - Keyboard and mouse - Ethernet or wireless networking

Speakers

Which of the following type of permission protects a file from being deleted by another user? - Sticky key - chmod - Sticky bit - Encrypted password

Sticky bit

You want to install an open source and free email client on your Linux desktop system, which of the following applications is best suited to this? - GIMP - Firefox - Thunderbird - LibreOffice

Thunderbird

Which of the following is the best characteristic of all open source software? - The software was originally written at a college or university? - The software cannot be sold for a profit; it must be distributed free of charge - The software must be written in an interpreted language that requires no compilation - Users are permitted to redistribute altered versions of the original software

Users are permitted to redistribute altered versions of the original software

You are currently working on a Linux computer. You forgot the syntax of the tar command in order to take a backup of a directory. Which of the following measures will you take to obtain information about the tar command without leaving the command line? - Open up a web browser - Call online support - Open the documentation file - Visit the man page of the command

Visit the man page of the command

If you wanted to view all files (including hidden files and directories), in the current directory in Linux, you would type ls -____ - a - t - h - o

a

Which of the following symbolic representation can you pass to chmod to give all users execute access to a file, without affecting other permissions? - a + x - a - x - u + x

a + x

Which of the following commands is used to search the Whatis database and to display the short descriptions of the specified system command? - man - locate - apropos - whoami

apropos

Which of the following commands will you use to change the permissions set on a file or a directory? - apt-get - chown - chmod - chgroup

chmod

Which of the following commands will allow you to change the ownership of a file in Linux? - chown - chmod - chgrp - chtfrs

chown

Which of the following commands would you use to change a file's group? - ls - groupadd - chown - groupmod

chown

If you were in a root command line and wanted to change the ownership of a file named somefile.txt from ralph to tony, which command would best accomplish this? - chmod somefile.txt tony - chown ralph somefile.txt - chwon ralph:tony somefile.txt - chown tony somefile.txt

chown tony somefile.txt

Command to copy files and directories

cp

If you want to find out the sizes of several of the dot files in a directory, which of the following commands could you use to do this? - ls -p - ls -la - ls -d - ls -ld

ls -la

Which of the following commands would you use to get USB information attached to a Linux computer? - lspci - usbinfo - lsusb - ls -usb

lsusb

If you wanted to display free and used memory using the command line in your Linux OS, you would used the free -__________ command - m - r - f - a

m

Normally, optical discs and USB flash drives are mounted in subdirectories of /mnt or /______ - media - tmp - var - lib

media

Command to rename files and directores

mv

What three character symbolic string represents the read and executes permissions but no write permissions? - r-x - -r-y - -r w - r x w

r-x

Command to delete files

rm

You were creating a file name File1 and you accidentally used the word Debian in the file. You now need to replaced the word Debian with RPM. Which Linux command would be the best in accomplishing this task? - tail - less - sed - echo

sed

Which letter denotes that a sticky bit has been set on a file? - S - A - r - t

t

Which of the following letters would tell you that both a sticky bit and SGID bit have been set on a directory? - t - T - X - s

t

You want to set the sticky bit on an existing directory, subdir, without otherwise altering its permissions. To do so, you should type: chmod a+_____ <subdir> - s - p - b - t

t

Which of the following commands restores a compressed backup file named homebkup.tar.gz in the current directory of a Linux computer? - tar -cxvf homebkup.tar.gz - tar -zxvf homebkup.tar.gz - tar -xv homebkup.tar.gz - tar -xvf homebkup.tar.gz

tar -zxvf homebkup.tar.gz

Command to update the timestamp on files

touch

Which of the following commands will allow you to update access time on a file? - touch - echo - apt-get - cat

touch

You are a brand new network technician at a company that uses Linux based operating systems. You want to install the web browser Firefox on your Linux system, which of the following commands will help you accomplish this task? - yum install firefox - yum update firefox - echo install firefox - touch install firefox

yum install firefox


Conjuntos de estudio relacionados

Chapter 48: Skin Integrity and Wound Care

View Set

Chapter 18 & 19 Lymphatic/Immune and Resp. Systems

View Set

Adult Development and Aging: Chapter 8

View Set

Chapter 1: Principles of Life Insurance

View Set