Linux Admin Final Exam

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

The switch for the ls command that shows all files is:

-a

The typical directory for critical executable files is: /dev /usr /exe /bin

/bin

The hosts file is located where? /usr/hosts /student/hosts /etc/hosts /root/hosts

/etc/hosts

The user config files are located in what directory? /root/passwd /bin/passwd /etc/passwd /sbin/passwd

/etc/passwd

The folder where you can find a list of loaded drivers is /root/mods /proc/root/devices /devices/mods /proc/devices

/proc/devices

The location where information about IRQs is /root/interrupts /proc/interrupts /user/interrupts /student/interrupts

/proc/interrupts

Put the examples of computer level hierarchy in order.

0. Circuits, gates, etc 1. Microcode or hardwired 2. Instruction set architecture 3. Assembly code 4. Operating system 5. Python, C, etc 6. Executable programs

Which of the following is a likely a valid mac address A0:CC:24:BA:02 00:A0:CC:24:BA:02 00:A0:CC:24:BA:Z2 00:A0:CC:24:BA:02:BB

00:A0:CC:24:BA:02

The PID of init is always 100 1 1000 The PID is random

1

There are how many typical account types? 5 7 1 3

3

Secure HTTP traffic is typically on what port? 443 80 8080 521

443

The most common ports for HTTP traffic are (select all that apply) 80 25 443 8080

80, 8080

To save and exit in one command:

:x :wq

You have two scripts to run: MyScript1 and MyScript2 MyScript1 ; MyScript2 MyScript1 $ MyScript2 MyScript1 && MyScript2 MyScript1 || MyScript2

; 1 runs then 2runs $ both run simultaneously && 2 only runs if 1 runs suscessfully || 2 only runs if 1 fails to complete successfully

Which performs computations? Register ALU CU Bus

ALU

The typical package manager for Debian based distributions of Linux is: RPM PAD APT YUM

APT

An example of an I/O would be Camera All of the above Keyboard Mouse

All of the above

Which provides timing and control signals? RAM ALU Cache CU

CU

Match the access control types DAC RBAC MAC Restricts access based on the owner's performance. Restricts access based on roles of individual users. Restricts access based on roles and labels. LAC SAC PBAC

DAC - Restricts access based on the owner's performance. RBAC - Restricts access based on roles of individual users. MAC - Restricts access based on roles and labels.

Select all of the common kernel layers: Device Management Memory Managment Answer System Call Interface Process Management Answer File System Management

Device Management Memory Managment Answer System Call Interface Process Management Answer File System Management

A boot loader is not required for Linux. T/F

F

Admins always run in root, to work as fast as possible. T/F

F

It's not necessary to check the hash on a downloaded file from an online source you trust. T/F

F

It's typically better to have fewer accounts. Users can always share if you don't have enough. T/F

F

Linux file names are not case sensitive. T/F

F

Linux only mounts drives, not files or file systems. T/F

F

Red Hat Linux is not a multi-user system. T/F

F

Red Hat based Linux distributions are typically microkernel implementations. T/F

F

There's no need to unmount a USB drive before removing it T/F

F

You can have multiple MBR on a single drive. T/F

F

I need to quickly stand up infrastructure in the cloud to mimic my local network. The best option would be: IaaS SaaS NaaS PaaS

IaaS or infrastructure as a service

An example of an STDOUT is Monitor Keyboard Mouse

Monitor

Put the boot steps into the proper order.

Power Firmware Boot Loader Kernel Initialization

Primary memory in a computer is typically ROM Hard drive RAM USB drive

RAM

Match the terms with the best description: RAM CPU SSD Bus

RAM - Volatile CPU - Interprets programs SSD - Non-volatile Bus - Pathway

Cloud services are generally considered to be: Rapidly scale-able On demand Hard to support Expensive

Rapidly scalable On demand

A control system architecture typically made of PLC and/or PID controllers. RUSR CSA PLA SCADA

SCADA

The output of the following, complete script would be: MY_NAME='WoolyComputer'​ echo Welcome $MY_NAME! echo Welcome $MY_NAME Script will not run WoolyComputer Welcome WoolyComputer

Script will not run (no shbang)

One benefit of a monolithic kernel over a microkernal is: Stability Speed RAM use Size

Speed

The type of firewall where network packets are more deeply reviewed. The firewall can identify traffic associated with other packets, and can view the TCP/IP handshake to make more informed decisions about the type of traffic being passed. User level Stateful Packet Filtering Stateless

Stateful

The type of address setting that can be used on a host that insures clients find the host at the same address each time.

Static

GRUB2 allows the user to customize the boot menu. T/F

T

YUM stands for Yellowdog Updater, Modified. T/F

T

Select all of the typical authentication methods Token thumbprint PIN password

Thumbprint PIN Password

A "bare metal" deployment of a hypervisor, that runs it's own OS is considered what type of hypervisor? Type 3 Type 1 Type 4 Type 2

Type 1

Which of the following is not a typical use of a Linux server? Apache Windows NTP DHCP

Windows

Chose three technologies that can be used for communication between hosts. Latanet Wired ethernet Bluetooth Wi-Fi

Wired ethernet Bluetooth Wi-Fi

The typical package manager for Red Hat distributions of Linux is: YUM GUM PAM apt-get

YUM

The typical package manager for Red Hat distributions of Linux is: apt-get GUM YUM PAM

YUM

Authentication is the act of verifying an identity act of providing access to resources

act of verifying an identity

The first software program that runs when a a computer starts is the firewall boot loader text editor antivirus

boot loader

One command to read the contents of a file is dog concat readFile cat

cat

I've got more files than will show on my screen when I cat myFile.txt. I can use what command to make it easier to view the file? cat myFile.txt | less less myFile.txt myFile.txt | less cat myFile.txt && less

cat myFile.txt | less

The short CD command to change to the last directory you were just in, regardless of it's location is:

cd -

The short cd command that moves you to the parent directory is (be sure to enter the whole command):

cd..

To expire a password on 9-1-2020 for Bob, the command would be: chage -E 2020-9-1 Bob change -E 2020-9-1 Bob change 2020-9-1 Bob chage 2020-9-1 Bob

chage -E 2020-9-1 Bob

To change group ownership on a file called myFile.txt to a group called ApUsers: chown ApUsers myFile.txt chown :ApUsers myFile.txt chown :ApUsers:myFile.txt chown ApUsers:myFile.txt

chown :ApUsers myFile.txt

To change file ownership on a file call myFile.txt to a user named Bob: chown Bob myFile.txt chown Bob:myFile.txt chown ApUsers myFile.txt chown Janet:ApUsers myFile.txt

chown Bob myFile.txt

To change file ownership on a file called myFile.txt to a user named Janet and a group called ApUsers: chown Janet:ApUsers:myFile.txt chown ApUsers:Janet myFile.txt chown Janet:ApUsers myFile.txt chown Janet ApUsers myFile.txt

chown Janet:ApUsers myFile.txt

A device that is connected to, or receiving service from another computer is usually referred to as a client server router host

client

What daemon is used to schedule and run tasks? badger cron ntp init

cron

The Linux CLI tool for performing a bit-by-bit level archive is clone dd comp ghost

dd

A command to see all disk space by file system, shown in Gb and Mb rather than bytes would be: df -ah df showspace -ah df -a

df -ah

To view messages that were send to the kernel's message buffer you could use the command dmesg mesg mesg -a showmesg

dmesg

To view space used by directory we can use dd space -a du free

du

Some typical terminal (not GUI) editors in Linux are (select all that apply) emacs VIM nano notepad Leaf

emacs, VIM & nano

To see all variables in use: variables -a var -a show var env

env

Which command would show all information about SD drives? fdisk -l /sd* fdisk -l /dev/sd fdisk -l /dev/sd* fdisk -l /dev/hd*

fdisk -l /dev/sd*

I have a file called myFile.pft. One way I can find out what file type this is, is to use: type myfile.pft myFile file myFile file myFile.pft filer myFile

file myFile.pft

One command to show RAM and swap file usage is RAM space showfree space free

free

I have 3000 users. I want to quickly find information about the user named "Bob". One way would be to look at the passwd database. The command would be: getent Db passwd Bob getent passwd Bob getent database passwd Bob getent Bob

getent passwd Bob

A tarball is a files found and archived by antivirus software set of common settings to be applied group of applications on the desktop group of files packed and compressed

group of files packed and compressed

To create a new group called "BobClub", the command would be: groupadd BobClub add BobClub group BobClub addgroup BobClub

groupadd BobClub

A file that starts with a dot is considered unknown not compatible with linux hidden marked for deletion

hidden

The command to show the full history of commands entered in the CLI is:

history

The command to return the ip address and mail server records of a selected system domain -a host domain show -a

host

The parent of all other processes is booter time kernel init

init

The proper command to show all the network card information is ip -a ip a show ip ip

ip a

Typically, Linux distributions do have a firewall as part of the system (though often you must make it persistent). This provides stateful firewall functionality. You can view this tool's current configuration using fw -a view firewall dissl iptables -L

iptables -L

If I wanted to see all systemd journals, I could use journalctl journalctl -r journalctl -e journalctl -a

journalctl -a

A kernel usually divides software into two spaces. Pick two: kernel space security space printer space storage space user space I/O space

kernel space and user space

I can use what command to know how many files are in the /etc directory? /etc/ | wc-ls wc -l /etc ls /etc/ | wc -l wc /etc

ls /etc/ | wc -l

Use the ls command, without switches, to redirect the output of ls to a file called theFile.txt.

ls > theFile.txt

A good command to use to see information about the processor is lcpu cpu -a lspcu lcpu -a

lspcu

What command can be used to add and remove modules in a kernel? addmod/delmod mod probe modprobe

modprobe

What would you add to a command to insure that the command continues to run after you log off? nohup None, it's not required keep cont

nohup

The type of firewall where network packets are reviewed and traffic is managed based on rules in an Access Control List (ACL). Usually, traffic is accepted or denied based on things like IP address and port number. This is called "stateless" because the firewall doesn't really know what the packets actually contain, only what they claim to contain. Application layer user level packet filtering stateful

packet filtering

Breaking up a large disk into several logical disks is called breaking separating slicing partitioning

partitioning

To set a password for the user "Bob" you might use: addpassword Bob passwd Bob password Bob Bob password = ******

passwd Bob

The decision making and calculations of an operating system are performed by the motherboard Computational Program Unit processor RAM

processor

A typical command to show what directory you are currently in is ls -me dir -me pwd dir -m

pwd

The local administrator account type is also called Admin root Service Default

root

Another common name for the CLI is: Admin panel non-GUI shell text box

shell

I have to run the ls command as the superuser. The proper format would be: sudo ls ls super ls root ls

sudo ls

The command to view all kernel parameters at runtime is: sysctl sysparam -a control sysctl -a

sysctl -a

An easy way to find out what users are logged into the system would be: whologged whoami whois who

who

One way to get your user name is whoami user is: print user /user/who

whoami

To install a package "BobBank" using YUM, the command would be: yum BobBank yum install BobBank YUM install BobBank install yum BobBank

yum install BobBank


संबंधित स्टडी सेट्स

Florida Hunter Safety Module 10 Know Your Treestands

View Set

Cue Cards on Pediatrics & Management of Care

View Set

IT Essentials v7 Chapter Test 6 Study Guide

View Set

PSU MGT-210: Developing and Delivering Business Presentations

View Set

9 lawtech cookies (not finished)

View Set

CompTIA Security+ Ch. 13 Study Guide

View Set