linux+ 1st quiz

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

The following are the correct definitions for the ls command options:

-a displays all directory content, including hidden content. -l displays extended information, including the owner, modified date, size, and permissions. -R displays the contents of a directory and all of its subdirectories. -d displays directories but not files.

Proxy

A computer that provides indirect internet access to the computers in your network.

Web server

A program responsible for accepting HTTP (Hypertext Transfer Protocol) requests from clients.

SNMP

A protocol used to communicate with and monitor network devices and servers.

SSH

A protocol used to securely log on to remote systems using encryption.

VPN

A type of network that uses encryption to allow IP traffic to travel securely over the TCP/IP network.

When working with Linux, it is important to understand what distributions are and how they are used. Which of the following BEST describes a Linux distribution?

A unique bundling of the Linux kernel.

Logging

Capturing a timeline of events that have taken place on the computer in the form of a file.

You want to copy all the text files from the /home/kcole/documents directory to the /home/mruiz/personal directory. While copying the files, you want to be prompted before overwriting a file in the /home/mruiz/personal directory. What command would you enter to accomplish this task?

Explanation The -i option prompts before overwriting a file in the destination directory. In this scenario, you would enter the cp -i /home/kcole/documents/*.txt /home/mruiz/personal command.

Which of the following are rules that apply to Linux files and directories? (Select three.)

Explanation The following are rules that apply to Linux files and directories: File and directory names are case-sensitive. The filenames testout.txt, TestOut.txt, and TESTOUT.txt are three different files. The dot (.) in a filename is unnecessary. However, it can be helpful to use a dot-based filename extension to identify the file type. The forward slash is used as a delimiter when showing the directory path from the root directory to a file or directory. For example: /home/kcole/bin/myaddresses.dat. The following rules apply to Windows files and directories: The backslash is used as a delimiter for a file or directory path. The dot (.) is used to separate the base file name from the extension. File and directory names are case-insensitive. The filenames testout.txt, TestOut.txt, and TESTOUT.txt would reference the same file. Volume designators (drive letters) are case-insensitive. For example, "D:\" and "d:\" refer to the same volume.

Which of the following commands is designed to delete an empty directory?

Explanation The rmdir command is designed to delete an empty directory. The rm command removes the directory and file information from the file system, making the directories and files inaccessible. The mv command moves or renames directories (and files). The cd command changes the present working directory.

Your company uses both Linux desktops and Windows desktops. Which of the following server roles should you use to provide a central location for users of both operating systems to share files?

File servers

Linux and Cloud comptuing

IaaS

Load balancer

Increases response time to back-end servers by distributing the workload across the available servers.

Running Linux and Windows on the same physical computer.

Linux virtualization

embedded linux

Manages intelligent devices, such as automation and control equipment.

Your company has been expanding the number of servers in the company's data center, and there is an increased need to gather metrics, watch process states, work with logs, watch services states and file system usage. Which of the following sever roles should be installed to provide this functionality?

Monitoring

Name server

Resolves (or maps) the fully qualified domain names (FQDNs) to IP addresses.

Which of the following is the primary role of a mail transfer agent (MTA)?

Store messages so they can be downloaded or send email to a destination MTA

You have just finished editing the grub file in the vi editor and want to change to the command-line mode, save the changes, and exit the editor. What would you enter in the vi editor to accomplish these tasks?

You would enter :wq to accomplish these tasks. The : switches you to the command-line mode from command mode; the w saves the current document; the q exits vi.

What command would you enter to change to the /home/kcole parent directory?

cd ..

Your company develops applications to run on Linux systems. You currently have four development teams, each working on a different aspect of the same application. Which of the following server roles would give you the BEST method for testing all team members' code without affecting your part of the project or your operating system and personal files?

containers

Alex, a webmaster, is implementing an order processing system on the company's website. Which of the following server roles should Alex implement with the order processing application?

database A database server should be implemented with the order processing application to store the data gathered by the application. Monitoring refers to the process of monitoring essential Linux services, including operating system metrics, process state, logs, service state, and file system usage. Clustering is often used to create a failover system, a load balance system, or a parallel processing unit. A failover cluster means that if one system fails, the other servers will take over the load, giving end users uninterrupted access to the desired data. A VPN (Virtual Private Network) is a type of network that uses encryption to allow IP traffic to travel securely over the TCP/IP network.

You want to create a /sales/documents/quarterly_reports directory. The documents directory does not exist yet. What command would you enter to create the quarterly_reports directory?

mkdir -p /sales/documents/quarterly_reports explanation: You can use the -p option to create all directories within the specified path when that path does not already exist. In this scenario, you can enter mkdir -p /sales/documents/quarterly_reports or md -p /sales/documents/quarterly_reports to create both the documents and quarterly_reports directories.

You want to rename the /home/kcole/documents directory to /home/kcole/personal. What command would you enter to perform this task?

mv /home/kcole/documents /home/kcole/personal explanation: To rename the directory to personal, you would enter the mv /home/kcole/documents /home/kcole/personal command.

You want to remove the /home/kcole/documents directory with all its subdirectories and files without prompting. What command would you enter to accomplish this task?

rm -rf /home/kcole/documents explanation: You would enter the rm -rf /home/kcole/documents command to delete the documents directory with all its subdirectories and files without prompting.

Which of the following commands would update the modification date and last accessed time for the /home/kcole/personal_info file?

touch /home/kcole/personal_info explanation: Explanation Because the personal_info file already exists, the touch /home/kcole/personal_info command would update the modification date and last accessed time for the file. The mkdir /home/kcole/personal_info command would create a personal_info directory. The cd /home/kcole/personal_info command would change the present working directory to personal_info. The rm -rf /home/kcole/personal_info command would remove the personal_info directory (if one existed) and all its subdirectories and files without prompting.

linux on mobile devices

used by google on many of the physical products it sells

An IT technician has been given a work order to install the Apache web server on a system configured with a YUM repository. Which of the following commands will install the web server?

yum install httpd Explanation yum install httpd is used to install Apache on a system using a YUM repository. dnf install httpd would work on systems where dnf is used instead of YUM. yum install apache2 will return No package apache2 available. rpm -ivh apache2 will return No such file or directory. The rpm command needs the full .rpm file name.


Set pelajaran terkait

Albert Unit 14, UNIT 14, Max Unit 5 & 9 Group

View Set

Chapter 32 Australia and New Zealand

View Set

Activity and Exercise Ch 44 Activity, Test Your Knowledge, Review questions & NCLEX from quizlet

View Set

mission statement vs vision statement

View Set