Linux 1

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

what files would you use to create aliases that are applied when a specific user starts a BASH session?

-/.profile ~/.bashrc

what actions can be used to define a persistent alias?

Add the command defining the alias to the appropriate shell configuration file.

what command displays a list of the currently defined aliases on the system?

Alias

Mary Brown is a Linux user with the username mbrown. Mary has a directory named logs in her home directory that is regularly updated with new log files when certain system events occur. She runs the following commands several times a week to check this directory:

Alias logcheck="cd /home/mbrown/logs;ls -al"

What is displayed when the uname -a command is run?

All system information

What man page sections shows a list of options available for a Linux command and explains what the options do?

DESCRIPTION

Users are complaining that they are unable to connect to any servers or the internet. Based on the symptoms they describe, you suspect that the users are not being assigned the correct IP addresses. What fixes this.

DHCP

f you are viewing the contents of a man page, which key can you press to get back to the beginning of the page?

Home

what statemnets BEST describes the PATH environment variable?

It contains the directory prefixes ti search for programs and files.

Infrastructure as a Service

Linux and Cloud Computing

Users are complaining that the clocks for their operating systems do not match the current time for the location in which they live. What fixes this.

NTP

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

Name server

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

SSH

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.

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

VPN

what commands creates a shortcut that can be used to run the fail -f /var/log/messages?

alias sysmesg="tail -f /var/log/messages"

the vi mode the works with the file system.

command line mode

The initial vi mode used when vim is started.

command mode

the vi mode that vim uses to write and edit text in the file

edit mode

ou need to set the COMP variable to the value 1745.What commands sets the variable so it is inherited by subsequent child shells?

export COMP=1745

Which of the following commands should a Linux user enter to see a list of all the commands the user recently ran at the command prompt?

history

Move the cursor down a line

j

Move the cursor up a line

k

Move the cursor one space to the right

l

what commonly predefined alias is configured to run the ls -l command?

ll

You are working on a Linux System and need more information about the uname command. What you enter at the command prompt to learn about the uname command syntax and options?

man uname

Which command displays all environment variables defined in the shell?

printenv

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

web server

A technician had been given a work order to install the Apache webserver on a system configured with a YUM repository. Which of the following commands will install the webserver?

yum install httpd

What command would you enter while in vi command mode to copy the entire line of text to the general buffer?

yy

After a user starts a BASH session and the scripts in /etc/profile are applied, what is the next file that could affect the shell session?

~/.bash_profile

A friend sent you a shell script file that is 117 lines long. He says that he wants to examine code on lines 82 and 87. What command would enter while vi Command Mode to go directly to line 82?

#82

A user is requesting that each time she logs in, a particular entry be written to a log file. This will only apply to her and she is using the Bash shell. In which configuration file would you make an entry for this action to take place?

.profile

What command would you enter while in vi command mode to find the term Sam?

/Sam

All users at your site are using the Bash shell. You want to set a variable that will apply to every user and always have the same value. Which file would you place this variable in?

/etc/profile

Anna, a system administrator, wants to set a global variable that can be used each time she logs. Currently, she has to set the variable each time a terminal is opened.What files would need to be modified to make a global variable persistent?

/etc/profile ~./bash_profile

A Linux user has an executable file named ni that can save a snapshot of network information with the date and time in a log file. The executable ni file is in the /root directory, and /root is the current working directory. Which of the following commands would run the executable file?

/root/ni and ./ni

Using the vi editor in Insert Mode, you made a few changes to the /boot/grub/grub.conf

1. Press the Esc key2. TypeP ":wq"

After opening a file in vi, you want to switch from Command Mode to Command Line Mode. What key invokes Command Line Mode?

:

As an administrator, you are tasked with configuring an Apache web server by modifying the /etc/apache2/apache2.conf file. You open the file in vi. As you're looking at the file, you knock your spill-proof drink container onto the keyboard. It rolls over several keys as you try to pick it up. Now there are extra characters everywhere in the text buffer. Which of the following commands can you use to exit vi without saving any changes that were made to the text buffer?

:q!

what vi key combinations should you press while in Insert Mode to save the file you are working on and quit

<Esc>:wq

Tim, a system administrator, wants to simplify the provisioning and disabling of user accounts. What server roles should Tim install and configure?

Authentication server

Which of the following is the standard shell for MOST Linux computers?

Bourne-again shell(bash)

Your company recently setup a VPN and wants to use a digital certificate for authentication instead of a pre-shared key. What server roles would allow the company to provide this functionality internally instead of using an external provider?

Certificate Authority

Your company is running a critical business application. The executive team wants to endure the server is available at all times, even in the event of a server failure. What server roles would be used to provide a failover server in the event of a system failure?

Clustering

Your company develops applications to run on Linux systems. You currently have four teams working on a different aspect of the same application. what would you use to test all the code.

Containers

Manages intelligent devices, such as automation and control equipment.

Embedded Linux

Alex, a webmaster, is implementing an order processing system on the company's website. What server roles should be used to provide a central location for users of both operating systems to share files?

File servers

what nano editor keyboard shortcuts will display help text which includes a list of all keyboard shortcuts.

G (Ctrl +G)

Move the cursor one space to the left

H

what commands configures the shell to retain 300 recently used commands in the ~.bash_history file for multiple shell sessions?

HISTFILESIZE=300

what environment variable specifies the number of past commands stored in memory in the current shell sessions?

HISTSIZE

what nano text editor features makes it easier for beginners to learn that the vi test editor

Keyboard shortcuts are displayed at the bottom of the editor

Used by Google on many of the physical products it sells

Linux on mobile devices

Running Linux and Windows on the same physical computer.

Linux virtualization

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

Load balancer

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

Logging

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 server roles should be installed to provide this functionality?

Monitoring

You want the directory /sbin/special to be include in the PATH environment variable. You also want to keep all current directory entries currently in the PATH variable.

PATH=$PATH:/sbin/special

Which of the following server roles would you implement to provide services offered by CUPS and IPP?

Print server

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

Proxy

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

SNMP

What would you enter at the command prompt to start a new Bourne-again shell (bash) session?

bash

You want to view the number of commands your bash shell is set to save by examining the current HIST SIZE environment variables.

echo $HISTSIZE

commands shows the value of the LANG environmental variable currently set for the language the operating system uses?

echo $LANG

two users should have identical settings, yet one is having problems with the display oh his screen , and you suspect there is a difference in their environment variables?

env

As a Linux user, you have access to an executable file named myapp. It's found in the current directory, but not in the command path. What would you enter at the command prompt to start the myapp file and replace the shell with myapp process?

exec ./myapp

You recently used the HOST=FS4 command.What commands should you use to change the HOST variable to a global variable that will be inherited by subsequent child sells and processes?

export HOST

Tim, a technician, created a local variable named val and set it to 5000 at the bash prompt. Tim wants to use the variable in a script. But when the script is executed, the value of val is not set to 5000.What commands would allow Tim to set a global variable that would be available to the script?

export val=5000

What commands searches man pages for a specific keyword

man -k and apropos and whatis

While in the vi Command Mode, you copy a whole line of text to the general buffer. You then navigate to a different location in the file. Which of the following commands will pastes the copied text?

p

What would you enter at the command prompt to display the current working directory?

pwd


Ensembles d'études connexes

Unit 6: Diving into the Finance Instruments

View Set

Microbiology Homework Chapter 9A

View Set

Oceanography Study Guide Chapter 1

View Set

APUSH chapters 2-5 Test Study Guide

View Set

Buscando amistad Lección 14 Estructura: 14.1

View Set

Army Physical Readiness Training - PRT

View Set

molecular bio: test 1 chapter 3 questions

View Set

Microsoft PowerPoint Fundamentals

View Set