UNIX point quizzes

¡Supera tus tareas y exámenes ahora con Quizwiz!

When granting privileges in Linux, use a ___ before the permission to grant (allow) them.

+

When revoking privileges in Linux, use a ___ before the permissions to disallow (remove) them.

-

Which of the following are typical roles for a UNIX/Linux system?

-Standalone computer -server -client -network operating system

When using the mount command in Linux, use the ____ option to specify a file system to mount.

-a

When using the cp command to copy a source file to a destination file, UNIX/Linux might overwrite the destination file without warning unless you use the _____ option

-i

when using the mount command in linux, use the _____ option to specify a file system to mount

-t

The linux _____ command, or long listing, displays detailed file information

...

block special file

...

In Linux, the _____ directory normally contains the files needed by the bootstrap loader (the utility that starts the operating system) and the kernel (operating system) images.

/boot

in what directory would you find the kernel images?

/boot

Files in _____ reference system devices. They access system devices and resources, such as the hard disks, mice, printers, consoles, modems, memory, and CD/DVD drives.

/dev

/etc

/etc

/pro

/etc

The _____ directory contains configuration files that the system uses when the computer starts, and it contains system-critical information stored in files such as passwd

/etc

/subnet

/home

In Linux, the ___ directory is used to offer disk space for users, such as on a system that has multiple user accounts.

/home

/var

/proc

The _____ directory on a Linux system holds subdirectories that contain files such as error logs and other system performance logs that are useful to the system administrator

/var

In the Linux octal permission format, the number _____ is execute.

1

In the Linux octal permission format, the number ___ is write.

2

Some versions of Linux, such as Fedora and Red Hat Enterprise Linux, SUSE, and Knoppix, recognize up to _____ characters in your user name

32

in the linux octal permission format, the number ___ is read

4

In the Linux octal permission format, the number ___ is read and execute.

5

in linux, the ____ wildcard can take the place of any single character.

?

a(n) ____________________ loader is a utility that starts the operating system

?boot?

From the Linux command line, press ______ to delete a word or consecutive characters.

Alt+d

Employ the ext3 file system

Employ the ext3 file system

False

False

You would us a(n) exclamation point in order to exit out of the online manual in UNIX. True False

False

A tree-like structure for UNIX/Linux file systems starts at the root level. Root is the name of the file at the base of this level and is denoted by which of the following symbols?

Forward slash (/)

Your assistant is trying to manually mount a new SCSI disk drive using hda2 to reference the drive in the devices file. What is the problem with this reference?

He should be using sda2 instead.

which of the following shells includes a history feature that lets you use a keyboard shortcut to retrieve commands you previously entered? a. korn b. bourne c. bash d. none of the above

Korn

No

No

Use an environment variable to change your Bash shell prompt to display the full parth of the current working directory followed by the > symbol.

PS1 = '$PWD>'

Use an environment variable to change your Bash shell prompt to display the full path of the current working directory followed by the > symbol.

PS1 = '$PWD>'

use formatting characters to configure your linux bash shell prompt to display the date and time followed by the > symbol

PS1='\w>'

Your organization has telecommuters who remotely log into a UNIX server using Mac OS X computers at home. What should they use to log in with the greatest security?

SSH

Use the new Linux shortpath procedure.

Teach them to use a symbolic link.

The command syntax is incorrect and should be rmdir .. /temp

There are files in the /temp directory.

A mainframe operating system controls a large computer system that offers extensive processing, mass storage, and client access for industrial-strength computing.

True

False

True

In UNIX/Linux, a shell operates between the user and the kernel, enabling the user to execute commands. True or False?

True

Use the ls -l command to list the contents of dev and look for a "c" starting the first column.

Use the ls -l command to list the contents of dev and look for a "c" starting the first column.

Is the greater than sign (>) an example of a redirection symbol?

Yes

No

Yes

Yes No

Yes

The _____ is a formatting character for configuring a Bash shell prompt that displays number of the command in the current session

\#

The computer resources committee in your organization recommends that all users display a prompt that shows the user's account name. which of the following ps1 parameters enables users to configure this type of prompt display?

\u

In UNIX/Linux, a kernel is ________.

a set of core operating system programs

In the command cd /usr/bin, "/usr/bin" is a(n) ___ path that begins at the root file system directory.

absolute

/home/rbrown/programs/data is an example of a(n)

absolute path

from the linux command line press ____ to move the cursor to the previous word

alt+b

When performing a long listing of a directory in LInux, a "____" in the first column on the far left indicates a character device file.

b

When viewing the contents of a file with the 'less' command, press _____ to return to a previous screen

b

Linux uses which of the following shells as the default command interpreter?

bash

which shell is the default used in linux systems. a. bourne b. korn c. c d. bash d berkeley

bash

A(n) _____ loader is a utility that starts the operating system.

bootstrap loader

when performing a long listing of a directory in linux, a "____" in the first column on the far left indicates a character device file.

c

You are on the telephone scheduling an appointment and don't have a paper calendar handy. what command can you type on your linux workstation to view the current month, which is july? a. date -c b. date -july c. -c d. none of these choices e. cal

cal

provide the linux command used to display the calendar for 2013 in Julian date format.

cal -j 2013

Identify the Linux command used to display the calendar for July of 1776

cal -j 7 1776

A redirection operator may be used to redirect the output of a command into a file. Create a file called 'month' containing the current month

cal > month

You have created a small program file, called process, and want to view the file's contents with the number of each line displayed. Which of the following will work to accomplish this? Note that the file is in your current directory (Choose all that apply.)

cat -n process

you have created a small program file, called process, and want to view that file's contents with the number of each line displayed. which of the following will work to accomplish this? note that the file is in your current directory. (choose all that apply) a. none of these b. process -more c. cat -n process d. all --numbered process e. more -n process

cat -n process

Use the 'cat' command to view the contents of /etc/shells

cat /etc/shells

Use the cat command to conjunction with the redirection symbol to create a new file named notes.

cat > notes

View the contents of the file alldata in the current working directory.

cat alldata

Using the cat command and a redirection symbol, add the contents of data1 and data2 to the new file alldata in the current working directory.

cat data1 data2 > alldata

One of the new users in your organization often switches to directories all over the system in the process of doing her work. What simple command can you show her to quickly go back to her home directory?

cd

Without using an absolute path, change to your home directory.

cd

From the Linux command prompt, issue the command to go to the parent directory one level above.

cd ..

Provide the Linux command to change directory to the root file system directory (not the root user's home directory)

cd /

You can use the Linux ___ command to set permissions for files that you own.

chmod

Without using numbers, enable the owner, group, and others to make the /data directory the current working directory.

chmod ugo+x /data

Without changing your working directory, copy all files with an extension of .db from the /data directory to the /backup directory, and only overwrite if the file you are copying is newer than the one you are overwriting

cp *.db /backup

a new user has inadvertently copied an older file with the same name over the new version of the file that he just updated, losing about two hours of work. what copy command can he use in the future to ensure that he does not copy an older file over a newer one?

cp -u

Without changing your working directory, copy all files with an extension of .db from the /data directory to the /backup directory, and only overwrite if the file you are copying is newer than the one you are overwriting.

cp -u /data/*.db /backup

lp

cua

when performing a long listing of directory in linux, a ____ in the first column on the far left indicates a subdirectory

d

provide the linux command used to display your system date in coordinated universal time

date -u

Append the current date and time to the file notes.

date >> notes

On one command line, provide the Linux command used to view the current date and this months calendar.

date; cal

dash

dot

The ___ environment variable displays the full path of the current working directory.

echo $PWD

Using an environment variable display the full path of the current working directory.

echo $PWD

Network functionality in UNIX/Linux must be installed separately from the original operating system

false

On some UNIX/Linux systems, the administrator must execute the 'makedatabse' command/ which creates a database, before the 'whatis' command operates properly

false

the whatis command displays a brief description of a command

false

when you are using a terminal window and it is cluttered with commands and information, use the land command to clear the screen

false

permissions associated with the file

file name

when specifying path commands, which of the following symbols separates each directory

forward slash (/)

When managing file and directory permissions in Linux, the letter ____ indicates the groups permissions; that is, all users (other than the owner) who are members of the owners group.

g

Display the first 5 lines of the /etc/termcap file.

head -5 /etc/termcap

as a programmer, your supervisor has assigned you to check the documentation and copyright lines in 50 programs. this information appears in the first 15 lines of each program file. what command can you use to quickly check each file?

head -n 15 filename

When performing a long list of a directory in Linux, a "___" in the first column on the far left indicates a symbolic link.

l

ls -X

ls *.c

The Linux ____ command shows hidden files.

ls -a

Issue the Linux command to display a long listing of a directory's contents

ls -l

Issue the Linux command to display a long listing of a directory's contents.

ls -l

the linux ____ command, or long listing, displays detailed file information

ls -l

Using wildcards, enter a command that would list the files data1.txt and data2.txt but not database.txt in the current working directory.

ls data?.txt

which of the following commands will help you find the UNIX online reference manuals a ref b :: c man d MAN e help

man

you need to review the documentation for the cat command. what should you type on the command line to see this documentation? a. cat ? and press enter b. man cat and press enter c. none of these choices d. help cat and press enter e cat /help and press enter

man cat and press enter

Use the man program to find out what the -R option does when used with the date command.

man date

You can use the Linux _____ command to create a new directory as long as you own the parent directory.

mkdir

Create a directory name source under the current working directory.

mkdir source

You want to view the contents of the names file which is located in the programs directory. You are currently in your user home directory. Which of the following commands will enable you to view the entire contents of the file? (choose all that apply.)

more /programs/names

You use the ___ command to determine what file systems are available in your version of UNIX/Linux.

mount

you use the ____ command to determine what file systems are available in your version of UNIX/Linux

mount

mount \CD

mount -t iso9660 /dev/cdrom/mnt/cdrom

is a server often referred to as a client

no

when managing file and directory permissions in linux, the letter ____ indicates all others permissions; that is, all users who are not the owner and not in the owners group

o

to change your password from the command prompt in linux, type____ and press enter

passwd

the syntax for the password command is ______.

passwd -option argument.

extended file system

physical file system

where

pwd

Identify the command for exiting the man program

q

When viewing the contents of a file with the more command, press _________ to terminate the display.

q

None of these choices

read

in linux, you can execute multiple commands on one command line by using a _____ between commands

semicolon

Which of the following can you use to view the next page when viewing a file using the 'less' command? (Choose all that apply.)

spacebar z pg dn (page down)

A(n) _____ acts like an extension of memory so that UNIX/Linux has more room to run large programs

swap partition

__________ refers to a command's format and wording as well as the options and arguments you can use to extend and modify functions.

syntax

What command can you use to see only the final eight lines of the accounts file, which is in your current directory?

tail -n 8 accounts

which of the following is an internet terminal emulation program

telnet

In Linux, the ____ character denotes the user's home directory.

tilde (~)

The '>' character is a redirection symbol in a UNIX/Linux command

true

Use the -d option with the man command to print information for debugging

true

the user is at the bottom layer of UNIX/Linux operating system pyramid

true

you can type more than one command on the command line by separating each command with a semicolon

true

When managing file and directory permissions in Linux, the letter ___ indicates the owner's permissions.

u

Which of the following file systems are supported in Linux operating systems? (choose all the apply.)

uMS/DOS

After accessing manually mounted file systems such as CD-ROMS or floppy disks, use the LInux ____ command before removing the storage media.

unmount

A swap partition enables _____ memory, giving you what appears to be unlimited memory resources.

virtual

It has been a long day and you just don't remember the purpose of the ping command. What command can you use for a quick reference?

whatis ping

which of the following commands helps an individual determine who is logged in to a UNIX system a. whois b. whatis c. who d. man e. who-y

who

Use the who command and display the line of column headings with the command output.

who -H

use the who command to see a quick list of the current users that shows only login names and the total number of users on the system

who -q

Use the who command to see a list of users with idle times and column headings.

who -uH

Use a redirection symbol to redirect the output of the who command to a file named current_users.

who > current_users

identify the linux command to determine which terminal you are using or what time you logged in

who am i

In Linux, the _____ character denotes the user's home directory.

~


Conjuntos de estudio relacionados

Chapter 15 Occupation Safety and Health

View Set

Public Speaking Chapter 8 - Supporting Ideas and Building Arguments

View Set

practicing mindfulness an introduction to meditation part 2

View Set

phys 107 test 2 test and quizzes

View Set

Level 3 Exam 2: Grief, EOL, Human Dev, ICR

View Set

Ch. 16 Disorders of Brain Function

View Set