IFT 250: Intro to Unix Utilities

Ace your homework & exams now with Quizwiz!

Which of the following matches an element zero or one time? ? * + None

?

Which of the following are file types? Link (l) Files (-) Directories (d) Character Devices (c) Block Devices (b) Additional types, not listed

All answers are correct

Features of the Unix/Linux operating system include: Large Repository of Apps Constant Updates/Releases Rich Programming Tools High Level Performance Available on All Modern Hardware Platforms Easily Scable All the Above

All the Above

Which of the following applies to file names? Must be unique in the same directory Limited to 255 characters Can only contain upper and lower case letters, numbers and some special characters All the Above

All the Above

Which of the following commands would you use to get help while using the UNIX command line? help info man All the Above

All the Above

Which of the following commands would you use after a command with a pipe | to control paging on the monitor? less more Both Above are Correct No Answer

Both Above (less more)

Unix is written in the ________ programming language. This allows for portability across hardware platforms. Assembler C Python Fortran

C

Debian-based and Red Hat-based systems use the same package manager. True False

False

Once you start a process, there is no way to change its niceness level except for stopping it and restarting it with the nice command. True False

False

The locate utility traverses the directory hierarchy to search for files in real time. True False

False

sed uses 2 styles of addressing know as: Column Addressing Line Addressing Substitute Addressing Context Addresssing

Line Addressing Context Addressing

________________________________ is software that manages the computer's hardware and provides a convenient and safe environment for running programs. It acts as an interface between programs and the hardware (CPU, RAM, hard disk drive, printer, CD-ROM, etc). Application Operating system Driver Middleware

Operating system

Which environment variable contains a value that is a list of directories that are searched when you enter the name of an executable program? PS1 SHELL PAGER PATH

PATH

After you download and unpack a source code package, you enter the new directory that is provided. What files should you look for in that directory before attempting to compile and install the code? STEPS INSTRUCTIONS README INSTALL

README INSTALL

A process is running in the foreground and you press Ctrl+C on the keyboard. Which signal code is sent to the process? SIGKILL SIGINT SIGHUP SIGTERM

SIGINT

A _____________ is a component in Unix that runs on top of the kernel and provides a command line user environment. Shell Window Graphic User Interface X-Window

Shell

ACLs allow us to specify a more granular set of permissions to files and directories over the regular method of setting permissions. True False

True

All of the following utilities are commonly associated with the use of regular expressions: awk, grep, and sed. True False

True

Bash is both a UNIX/Linux shell type and a scripting language. True False

True

Files are containers for storing data and directories are containers for storing files. True False

True

UNIX/Linux uses a hierarchical directory structure. True False

True

grep scans its input for a pattern, then displays the selected pattern, lines numbers and/or the file names where the pattern occurs. True False

True

sed is a multipurpose tool that combines the work of several filters. sed performs noninteractive operations on a data stream. sed has a host of features that allow you to select lines and run instructions on them. True False

True

What command would you use to look up the MAC addresses that are cached on your system? arp rarp ifconfig neighbbors

arp

When viewing the output of the ls -l command, what letter is used to identify devices that transfer data one character at a time? b c p s

c

To change the permissions associated with a file, use the ____________ command. chgrp chmod perm chown

chmod

Which of the following commands can you use to compare each byte of two files and terminates the moment it encounters a difference? comm cmp diff disp

cmp

Which mode does vim place you into when it starts? command edit insert input

command

While head and tail are used to slice a file horizontally, which of the following commands can you use to cut a file vertically? slice grep vert cut

cut

What command could you use to make a bit stream image of your hard drive/solid-state drive? img dd mkiso fdisk

dd

Which of the following commands would you use to print a string of text to the monitor? print echo show output

echo

You have several processes running in the background, as shown by the jobs command below: [1]+ Running gedit & [2]+ Stopped crontab e Which command will bring the gedit program to the foreground? fg 1 bg 1 fg [1] bg [1]

fg 1

Which of the following commands would you use to pull selected lines of text from a file that matches a certain pattern? grep parse pull All the Above

grep

Which of the following matches an element zero or more times? ? * + None

*

Which of the following matches an element one or more times? ? * + None

+

Which option/flag is used to compress a tar archive with bzip2? -j -b -J -B

-j

Were are storage device files located on Linux systems? /var /storage /dev /pwd

/dev

Which directory is commonly used to store system configuration files? /bin /etc /var /conf

/etc

Where do Debian-based distributions store the list of repositories that are configured on the system? /var/log/sources/repo.list /etc/apt/sources.list /var/log/repo.list /etc/apt-get/repo.list

/etc/apt/sources.list

In what directory could you find detailed information about devices? /sys /dev /proc /bin /sbin

/sys

What is the default nice value for a process not executed with the nice command? 0 -20 19 10

0

If you wanted to look at just the beginning or ending few lines of a file, which of the following commands might you use? cut head tail top

head tail

Which of the following commands would you use to review the last 50 commands executed at the command line for the user that you are currently logged on as? history date sh stty

history

What is the unique number that identifies a file in the filesystem? file size link number inode number file name

inode number

Which vim mode allows users to add text to the contents of the file? command edit insert input

insert

You have an unresponsive process with a PID number is 4335. You attempted to stop the process with the standard kill command, but it had no effect. Which command would you use to ensure that the process will terminate? kill 4335 -9 kill -NOW 4335 kill 4335 -NOW kill -9 4335

kill -9 4335

Which utility terminates processes by name, and not just by process ID number? killall close procend stopall

killall

To set a pointer with a new name or location to an existing file without making a second copy of the file, use the ____________ command. ls link ln point

ln

Which of the following commands would you use to see when a file was last modified? dir ls -l date when

ls -l

What command would you use to view the various USB devices connected to the system? probeusb usb lsusb lspci lsscsi

lsusb

Which of the following commands would you use to send mail to another user on the UNIX system? send oak mail or mailx xchang

mail or mailx

This command takes input from standard input and converts it into an argument list for a specified command. xargs x11 regex find

xargs

Which utility can read a compressed file? ngrep zgrep egrep grep

zgrep

Which of the following is both a compression utility and an archiver? zip gzip bzip2 All the Above

zip

Which of the following commands would you use to change your password for your user account? password chpass passwd set

passwd

A simple tool such as _____ can be used to see if your machine can reach another machine on your network or on the internet. arp ping nm-tool netstat

ping

Which of the following commands can you use to accept an input stream and paginate output of that stream with various options such as length of page, double space, and/or number the lines of output? page grep pr comm

pr

Which commands displays the PPID? ps -u ps -A ps -f ps

ps -f

Which of the following commands would you use to determine what directory you are current in? ls who pwd dir

pwd

On the Unix / Linux operating system, the system admin user account is ___________________. Superuser Sysadmin Administrator Root

root

Which of the following utilities is used to transfer and synchronize files between one device and another? zip regex rsync syncd

rsync

Which of the following commands would you use to review your terminal settings? stty term reset show

stty

When you delete a __________ link, only the link is deleted, not the file itself. named hard symbolic temporary

symbolic

In many UNIX/Linux data and configuration files are "fields". Sometimes these fields are separated by: tabs comma ( , ) colon ( : ) backticks ( `)

tabs comma ( , ) colon ( : )

Choose all that apply: This tool is a packet analyzer/sniffer _____. tcpdump Wireshark Splunk traceroute Snort

tcpdump Wireshark


Related study sets

Life and health Practice exam 2

View Set

UIL Social Studies Terms 2023-2024

View Set

Chapter 8. Coupled Shaft Alingment

View Set

21.1 - Gravitational field strength

View Set

Marketing Simulation Chp. 1: Create Customer Value Powerfully Fit V2 (Score: 100%, choices are based on my opinions and thinking!)

View Set

B2B0251XQ-DM WF 2 MCDP 1-3 Tactics

View Set

Worksheet 23.2: The Administrative Process

View Set