UNIX-Linux Chapter 8 Point Quiz

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

When using the Linux top command, look under the _________ column to determine what CPU percentage is used by active processes.

%CPU

In UNIX/Linux, you can run programs in the background. To do this, append the _____ character to the end of the command.

&

Which of the following characters would you place at the end of a command to have the specified utility program run in background mode?

&

Use the Linux ps command to display all processes running on your system and determine which users own them. ps ____________

-A u

Use the Linux ps command to see a list of all processes running on the system by user name. Pipe the output into the more command. ps _______ more

-A u | or ps -e u |

Use the Linux ps command to see a list of all processes running on the system and pipe the output into the more command. ps _____ more

-A | or -e |

Use the du command to receive a report on disk usage by the number of bytes instead of by 512-byte blocks, and pipe the output into the more command. du ________ more

-b |

Use the du command to receive a report on disk usage in human-readable format, and pipe the output into the more command. du ______ more

-h |

Use the Linux df command to view file system use in megabytes. df _____

-m

The du command supports the _______ option, which enables you to omit directories in file systems other than the one in which you are working when more than one file system is mounted.

-x

Use the find command to search your current directory for all files named core OR a.out. find __________ core __________ a.out ")"

. "(" -name -o -name

Use the find command to search your current directory and delete all files named core OR a.out. find _____ core _____ a.out ")" _______

. "(" -name -o -name -exec rm {} \;

You have just started the Linux top utility and it is running. Press _____ to access the online help.

?

There is a disk space quota on your home directory on a server, and your home directory is now approaching that quota. What is an easy step to take first to free up more space? (Choose all that apply.) Question 14 options: Use the free command to find and delete all files that are over a week old. Increase your swap space and memory. Delete all a.out files. Delete all core files.

Delete all a.out files. Delete all core files.

True or False: The Linux df command can be used to make backup copies of removable media.

False

True or False: The Linux expr command clones output streams to one or more files.

False

True or False: The Linux od command concatenates files horizontally.

False

True or False: The Linux ud utility summarizes disk usage.

False

Does the Linux ci source code management utility retrieve an unencoded revision of the RCS file?

No

Does the Linux cp command duplicate a file and alter the format of the destination copy?

No

Last week, the marketing director in your firm installed many new programs and marketing demonstration files on his computer. Today he calls you because he seems to be out of disk space. What should he have done before loading all of these new files? (Choose all that apply.) Run the ping utility to "ping" the hard disk to determine disk usage. Run the df utility to analyze used and available disk space. Run the top utility to determine whether to increase swap and regular disk space. Run the du utility to determine how disk usage is spread across directories and to obtain totals of disk usage.

Run the df utility to analyze used and available disk space. Run the du utility to determine how disk usage is spread across directories and to obtain totals of disk usage.

The president of your company often creates e-mail text and attachments using the vi editor. Unfortunately, the president often misspells words in these communications. What do you recommend?

The president can be taught to use the ispell utility.

True or False: If you use the Linux du command without any options, you receive a report based on all file usage starting with the current directory and processing down through subdirectories.

True

How can you run a command in the background?

Type & right after the command.

You have received a message that a particular Linux kernel version has a security problem. How can you determine the kernel version, or versions if you have more than one installed, that are available on your system ?

Use the command ls /lib/modules

Are the reports displayed by the Linux df utility based on the command option entered?

Yes

When creating a file that is to be processed using groff, can you use any editor that works with flat files, for example vi or Emacs?

Yes

You have obtained a program under development to test on your computer. While you are using the program, it crashes with a message that it has made an illegal function call. What is left behind after the program crashes?

a core file

Use the cat command to create a file named datafile.

cat > datafile

Which of the following UNIX/Linux security utilities changes the access permissions of a file or directory? Question 13 options: chgrp chmod mod acl chown

chmod

Which of the following commands changes the owner of a file? Question 12 options: chgrp iptables chmod chown ipchains

chown

The UNIX/Linux ______ command displays the character position and the line number of the first difference between two compared files.

cmp

The UNIX/Linux _______ command enables you to copy a file and also has the advantage that you can convert the file's contents in the process.

dd

The UNIX/Linux ________ command can be used to copy a file when a format conversion from EBCDIC to ASCII is required.

dd

In UNIX/Linux, you use the _______ command to determine disk space usage of the file systems on your hard drive.

df

Use the df command to view the numbers in human-readable form instead of displaying raw numbers for size, amount of disk space used, and amount of space available.

df -h

You have a computer resources committee meeting that starts in five minutes and you just remembered that you need to give a brief report about how much disk space is in use and how much is available on two servers, and you want to provide this information in gigabytes. Which of the following commands should you use?

df -h

When you want to see directory, subdirectory, and file size information in UNIX/Linux, use the _______ command.

du

Use the du command to receive a report on disk usage, and pipe the output into the more command.

du | more

Which of the following UNIX/Linux file processing utilities is used to backup files? Question 7 options: ls dump fnt ln grep

dump

Assume that you are using the Linux ispell command to spell-check a document. Press ______ to be prompted to type in a replacement word.

enter

Identify the Linux command that gives you information about swap space and memory use.

free

Which of the following UNIX/Linux file-processing utilities processes embedded text formatting codes? Question 16 options: groff awk gron grep od

groff

Use the dd command to copy the file datafile into a file named datafile.bak, and convert all of the text to lowercase. dd ______ datafile ______ datafile.bak _________

if= of= conv=lcase

Make a copy of the document datafile using the dd command, and call the copy datafile.bak. dd _____________ datafile.bak

if=datafile of=

The Linux ______ network utility enables you to view IP address information and configure a network interface.

ifconfig

Assume that you have just created a text file named myfile in Linux. Use the utility designed to check and correct the spelling errors in the document. ________ myfile

ispell

If you often work with plain-text documents, it is helpful to know about the Linux _______ command for spell checking.

ispell

Issue the Linux command to check the file myfile for spelling errors. _______ myfile

ispell

When using the Linux top command, press ________ to stop a process that is running.

k

To force a process to terminate in UNIX/Linux, you would use the _____ command.

kill

Which of the following system status utilities terminates a running process? Question 11 options: sleep susp vmstat ps kill

kill

Provide the Linux command to stop the process with process ID (PID) 12169.

kill 12169

On a single command line, use the Linux touch command to create the file letters, and then use the dd command to make a backup named letters.bak. touch _____ dd _____ letters.bak

letters; if=letters of=

Run the man program in the background with the argument df.

man df&

Which of the following UNIX/Linux communication utilities denies or accepts messages? Question 6 options: mesg talk wall dmesg chat

mesg

The Linux ____________ network utility shows network connection information such as network connections, routing tables, and interface statistics.

netstat

The Linux ________ network utility uses TCP/IP to contact another network station and test network connectivity.

ping

The make utility is in which of the following utility classifications?

programming utility

In Linux, use the ______ command to view processes on your system.

ps

The UNIX/Linux ______ command shows you a list of the processes currently running.

ps

Assume that you are using the Linux process status (ps) command. Which command parameter was used to generate the output below? USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMANDroot 5335 0.0 0.1 1652 444 tty1 Ss+ 07:17 0:00 /sbin/mingetty tty1root 5336 0.0 0.1 1656 424 tty2 Ss+ 07:17 0:00 /sbin/mingetty tty2

ps u

When using the Linux top command, press _____ to exit.

q

The Linux _______ network utility is used specifically to display routing table information and configure routing.

route

Which of the following UNIX/Linux communication utilities lets users simultaneously type messages to each other?

talk

Which of the following UNIX/Linux network utilities is used to connect to a remote computer on a network? Question 11 options: telnet ping route netstat wvdial

telnet

Sometimes, your system might respond slowly or seem to have delays. In these conditions, it is useful to employ the Linux ______ command to monitor CPU use by processes and other system information.

top

You are the system administrator for a server and need to determine what CPU resources are currently being used by the user ifstone. Which of the following commands would you use? Options: du ps top free df

top

Start the Linux top utility so that it updates every 15 seconds.

top -d 15

Provide the complete command used to run the Linux top utility in secure mode.

top -s

There is a disk drive failing on your Linux server and you need to send a message to logged in users that the server will be shutdown in 10 minutes. Which of the following commands can you use to send the message? Options: chat notice mess wall broadcast

wall

The UNIX/Linux _______ file-processing command counts lines, words, and bytes in a file.

wc

Which of the following system status utilities displays brief information about the users who are logged on to a system? Question 20 options: edquota who free finger ls

who

Which of the following UNIX/Linux network utilities controls the modem dialer or dial-up connection over the phone lines?

wvdial

On a single command line, use the touch command to create the files core and a.out in the source subdirectory of your home directory. touch ______ core ______ a.out

~/ ; touch ~/

On a single command line, use the touch command to create the files core and a.out in your home directory. touch ________ core _______ a.out

~/source/ ~/source/


Set pelajaran terkait

Module 11: Gastrointestinal Drugs Pre-Assessment

View Set

Unit 7 - Respiratory Dysfunction

View Set

CHAPTER 11: SUPPLY CHAIN MANAGEMENT

View Set

Occlusion Midterm Sample Questions

View Set

Paramedic - Anatomy and Physiology Prep Quiz

View Set