CSCI 2344 Final Exam

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

What syntax could you use to reference a file named data_file stored in a directory two levels up from the current working directory?

../../data_file

When a user connects a drive to a Linux system, the Linux kernel assigns the drive device a file in which directory?

/dev

Which file defines the default runlevel for the Linux system?

/etc/inittab

What directory on a Linux system contains standard system user data files?

/home

What Linux system directory contains data for standard program files?

/usr

Refer to the following output. What process ID on this system is currently consuming the most memory? PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1516 rich 20 0 4006836 360012 123208 S 1.7 4.4 0:19.67 gnome-shell 1803 rich 20 0 405100 53704 40520 S 0.3 3.2 0:00.66 VBoxClient 2317 rich 20 0 11884 3940 3264 R 0.3 0.0 0:00.61 top 2694 rich 20 0 102036 11572 8392 S 0.0 0.1 0:01.28 systemd

1516

Based on the following jobs command output, what is the total number of jobs (stopped and running)? $ cat test5.sh #!/bin/bash # testing job control echo "This is a test program running on PID $$" count=1 while [ $count -le 10 ] do echo "Loop #$count" sleep 10 count=$[ $count + 1 ] done echo "This is the end of the test program" $ $ ./test5.sh This is a test program running on PID 29011 Loop #1 ^Z [1]+ Stopped ./test5.sh $$ ./test5.sh > test5out & [2] 28861 $ $ jobs [1]+ Stopped ./test5.sh [2]- Running ./test5.sh >test5out & $

2

You run the meminfo command on a Linux server and it reports the following results:MemTotal: 3996421 kBMemFree: 601133 kBMemAvailable: 1984452 kBApproximately how much physical memory is installed on the server?

4gb

you are building a server for a user who plans to create a web application on top of it. Which of the following packages is critical to this intended use?

Apache

Which of the following can be released as a single package and be guaranteed that it will run just fine on any Linux system?

Application container

What does the following command do? kill 3940

Attempts to stop the process assigned process ID 3940

The following is output from the ls command: $ ls -l total 420 -rw-r--r-- 1 root root 22180 Apr 10 17:05 ath3k.ko -rw-r--r-- 1 root root 14028 Apr 10 17:05 bcm203x.ko -rw-r--r-- 1 root root 26300 Apr 10 17:05 bfusb.ko -rw-r--r-- 1 root root 18404 Apr 10 17:05 bluecard_cs.ko -rw-r--r-- 1 root root 19124 Apr 10 17:05 bpa10x.ko What are each of the files with a .ko extension?

Device driver modules

You want to enter multiple commands on the same command line and have Linux process them all. What must you do?

Enter each command on the command line separated by a semicolon ( ; ).

You are preparing to install the sysstat application from source code onto your Linux system. You issue the tar -Jxvf sysstat-12.5.4.tar.xz command. What does the -x switch do?

Extracts the tarball

You create a file called test.txt in the /etc directory. Later you enter the following shell command: # cat /etc/TEST.txt You are unable to locate the file. What went wrong?

File names are case sensitive so test.txt and TEST.txt are not the same file.

The four main parts of a Linux system are the Linux kernel, ______, a user interface, and application software.

GNU utilities

You run the ls -il command and see the corresponding output: $ ls -il total 32 135337 -rw-rw-r-- 2 rich rich 61 Dec 11 09:34 copy.c 136723 drwxrwxr-x 2 rich rich 4096 Nov 9 09:11 dir 1136732 drwxrwxr-x 2 rich rich 4096 Nov 9 09:11 dir 2136646 -rw-rw-r-- 1 rich rich 0 Nov 9 09:11 file1 In the first long listing, what does the 135337 refer to?

Inode number

What command can you use to display a listing of all files in a directory, including hidden files?

Is -a

What shell command must you use to view the inode number for files?

Is -i

You are building a Linux system for use by individuals familiar with the Windows environment and want to provide them with a familiar look and feel. What desktop environment was designed for this purpose?

K Desktop Environment (KDE)

Compiled device drivers require the source code for the device driver as well as the source code for the kernel. The kernel program must be recompiled to add the driver. What other method allows inserting drivers into a running kernel?

Kernel modules

What office productivity software includes the Writer, Calc, Impress, Draw, Math, and Base applications?

LibreOffice and OpenOffice.org

The Basic Input/Output System (BIOS) looks for the boot loader program on a Linux system by reading the __________ on the hard drive.

Master Boot Record (MBR)

A number of methods temporarily change the runlevel on a single-user or multi-user Linux system. How do you permanently change the runlevel at which a Linux system starts?

Modify the /etc/inittab file.

You are a network administrator in a Linux-based IT environment. You are selecting a network application that works for Linux-to-Linux file sharing. What do you choose?

NFS

You are installing a Linux system for a customer who prefers the GNOME desktop. Which GNOME application will provide a graphical file manager?

Nautilus (now called Files)

Which of the following is not a primary task of the Linux kernel?

Network address allocation

What is a database solution that can handle large quantities of data by forgoing structured database tables?

NoSQL

You use the rm command to delete the file named test1. You then see that test5, which was hard linked to test1, still exists. When you view the contents of test5 what do you find?

The contents of test1

What symbol is used on a Linux system to reference the current directory?

The dot (.)

You are examining the GRUB Legacy configuration file for a Linux system and see the following entries: default 0 timeout 10 color yellow/white blue/red title Ubuntu Linux root (hd1,0) kernel (hd1,0)/boot/vmlinuz initrd /boot/initrd title Windows 10 rootnoverify (hd0,0) GRUB Legacy refers to hard drive disks and partitions using a numbering system. With that in mind, where is the Ubuntu operating system installed?

The first partition of the second hard drive

When you boot a Linux system, which step occurs first?

The power-on self-test (POST) runs.

Devaki creates a file late Friday before leaving work for the weekend and then shuts down her Linux computer. On Monday morning, Devaki boots up her Linux computer and uses the locate command to find the file she created late Friday, but it is not found. She is normally able to use locate to find files on her computer. What is the most likely reason the file is not found?

The updatedb program was not able to update the database that locate uses because the computer was powered down.

Which of the following is true of the Linux KDE Plasma and GNOME 3 desktop environments?

They require about the same amount of system resources to run as the Microsoft Windows desktop environment.

What is the default email client for the Ubuntu distribution of Linux?

Thunderbird

What firmware program loads when the computer powers up, can load a boot loader of any size, and can load a Linux operating system without a boot loader program?

Unified Extensible Firmware Interface (UEFI)

You want to test a derivative Linux distribution on your computer without installing it to see if it will function properly on the PC's hardware. This specialized distribution should run the entire system. How will you do this?

Use a LiveDVD version burned to a USB stick to boot the system to Mint.

Which of the following gives you super user privileges to run a single command while logged in as a normal user? Before issuing the command, the user is prompted for their own password to validate who they are.

Using sudo

Which of the following is not a component of the GNU coreutils package?

Utilities for configuring firewalls

You just installed a fresh Ubuntu distribution. You notice that a number of security patches have not been updated. Which apt command should you run to get the latest applications and their dependencies?

apt upgrade

You are selecting a shell for your Linux system. You are concerned about the amount of memory used by the shell. Which of the following shells would be the best choice?

ash

What is the default shell used in most Linux distributions?

bash

To restart a job in background mode, use the __________ command along with the job number.

bg

You have just created a shell script with the name script1. You try to run script1 from the shell but it fails. What command must you use so that the text file you saved the script in will be marked as a program file?

chmod

The following is output from the ls command on a system: $ls -l total 56 -rw-r--r-- 1 rich rich 414 Nov 23 11:30 data drwxr-xr-x 2 rich rich 68 Nov 23 11:30 critical -rw-r--r-- 1 rich rich 132 Nov 23 11:23 files.dat -rw-r--r-- 1 rich rich 14918 Nov 23 11:24 info.txt -rw-r--r-- 1 rich rich 0 Nov 23 11:23 mydata.txt -rw-r--r-- 1 rich rich 473 Nov 23 11:30 sample Which of the following is a directory?

critical

During the installation of a Linux package, the package manager may notice some required __________, which are other packages needed to run the application.

dependencies

When the kernel wishes to access a memory page and the page is not located in physical memory, where does it go to retrieve the page?

disk

Raid technology is the use of one disk drive that is written very fast.

false

True or False? A Linux system can have only one primary partition.

false

True or False? In Linux, processes run only in the background.

false

True or False? In Linux, the relative path to a file starts at the root directory (/) and includes every directory along the virtual directory tree to the file.

false

True or False? Interrupt requests (IRQs. are locations in memory where the CPU can send data to and receive data from the hardware device.

false

True or False? The kernel manages physical memory but cannot create or manage virtual memory.

false

True or False? You can use only startup scripts to start applications in runlevels.

false

Arturo just connected a new drive to his Linux system. He wants to create a partition on the disk. Which of the following is a partitioning tool?

fdisk

Tonya would like to view a list of the partitions on a hard disk attached to a Linux system. What command can she use to achieve this task?

fdisk

What is the default file manager for GNOME desktop environments?

files

You are developing a new web application that will be used heavily by Linux users. What web browser is most important to test for compatibility with your application, based on the fact it is the most common default software in Linux?

firefox

Alice suspects that the file system on a Linux computer she administers has become corrupted. What tool will detect issues with the disk and repair the file system?

fsck

Most Linux utility programs are written using the C or C++ programming language. You have downloaded one such program and are ready to compile it. To do so, you need the ____________ and the make packages installed.

gcc

The Linux compression gzip package contains a number of utilities. Which utility displays the contents of compressed text files?

gzcat

Which of the following is not true of the sudo command?

individual accounts can use sudo, but groups of users cannot be configured to use sudo.

Which of the following processes must start first on a Linux system?

init

Susan needs to kill a process on her Linux system. She is concerned that open files associated with the process could be damaged and possibly unrepairable if she stops the process abruptly. Which command can Susan use to find out which files are open and then close files before starting a kill process?

isof

In Linux, the function of starting, stopping, killing, and resuming jobs is called:

job control

What allows developers to insert device driver code into a running kernel without having to recompile the kernel?

kernel modules

Which kill command, along with the process ID, unconditionally terminates the process?

kill -9 ID

You want to stop a process (process ID 1216) on a Linux system by causing the least impact. Which command should you issue first according to generally accepted procedures?

kill -TERM 1216

On a Linux system, you want to scrape data from webpages for scripting purposes without having to download all of the graphics elements. What web browser do you use?

lynx

Which of the following is a command used to create file systems in Linux?

mkfs

What command can be used to manually connect to a drive that does not automatically appear when connected to the system?

mount

Gunther wants to stop all processes that start with http by using a wildcard. First, he wants to generate a list of all processes that start with http to see exactly which processes are running. What is the correct combination of commands?

pgrep, pkill http*

What is the basic command for removing a directory from a Linux filesystem?

rmdir

Red Hatâ "based systems use several different front-end tools for software management. What command-line tool are they all based upon?

rpm

You need to install a Linux server on a predominantly Windows network. What software package allows the emulation of Microsoft services on a Linux platform?

samba

When shell commands are grouped together so they can be executed as a program, they are called:

shell scripts.

In the command shell on a Debian-based system, you want to run an administrative task without having to switch to the root user. What command must you use to perform this?

sudo

You are managing memory on a Linux system that does not have sufficient physical memory to run all of the applications you require. To augment the physical memory, you arrange to have locations on the computer's hard drive switch out the contents from this location to physical memory. What is the name of this location?

swap space

You are concerned about CPU utilization on a Linux system that you manage. You would like to identify the applications using the most CPU time. Which of the following should you use?

top

True or False? A Linux package management system controls the installation of software applications and libraries.

true

True or False? A package management system enables a user to search for new software packages or updates and security patches to software packages already installed on a system.

true

True or False? Adding a drive partition with a file system to the Linux virtual directory file system is called mounting the file system.

true

True or False? After connecting a drive to a Linux system, you need to create one or more partitions on it.

true

True or False? During bootup, boot kernel messages are temporarily stored in the kernel ring buffer.

true

True or False? GRUB2 supports the ability to load hardware driver modules.

true

True or False? GRUB2 utilizes environment variables to configure settings instead of commands.

true

True or False? In Linux, a mount point is a directory placeholder within the Linux virtual directory that points to a specific physical device.

true

True or False? In the systemd initialization process, each unit requires a configuration file that defines which program starts and how the program should be started.

true

True or False? Linux handles both hard disk drive (HDD) and solid-state drive (SSD) storage devices the same way, although the connection methods may differ.

true

True or False? Linux represents hardware devices as special files called device files.

true

True or False? RAID technology enables implementation of data redundancy for fault-tolerance by combining multiple drives into one virtual drive.

true

True or False? The Linux kernel creates device files in the /dev directory to interface with hardware devices.

true

True or False? The Master Boot Record (MBR) is the first sector on the first hard drive partition on a system.

true

True or False? The fdisk command does not allow the size of an existing partition to be altered.

true

True or False? The gparted utility enables you to mount or unmount partitions.

true

True or False? To find out if a Linux system uses the SysVinit or system init program, use the ps command.

true

true or False? The runlevel of a Linux system can be changed using either the init command or the telinit command.

true

A Linux shell keeps a record of the commands you have issued during your session. You want to reuse a string you typed five commands ago. You can press the up arrow five times or __________ to jump to that command.

type history 5

You would like to remove a USB drive from a Linux system. What command should you issue before physically disconnecting the drive from the system?

unmount

Isabella is working on an Ubuntu-based system. She wants to determine her privilege elevation status. She must validate her account name by using the __________ command and then determine the groups to which her account belongs by using the __________ command.

whoami, groups


Set pelajaran terkait

PEDS Chapter 46: Nursing Care of the Child With an Alteration in Cellular Regulation/Hematologic or Neoplastic Disorder 1

View Set

Salesforce Admin - Practice Test Question

View Set

Chapter 14 Care of the patient with neurological disorders

View Set