ITN 171 FINAL CH 1- 20

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Match the Solaris man section with its subject. SECTION 8

ADMINISTRATIVE COMMANDS

Match the Solaris man section with its subject. SECTION 4

ADMINISTRATIVE FILE FORMATS

To login to the superuser home environment, a non-privileged user would enter _____ at the command line prompt

ALL OF THE ABOVE (su-root, su-, su)

To set the sticky bit for a directory called bar you would enter _____ from the command line.

ALL OF THE ABOVE (chmod 1775 bar and chmod +t bar)

To run a process in the background, what character do you append to the end of the command line?

&

The ____ option of the diff command does not compare blank lines

(-b)

Match the following navigation commands while in Command Mode. Moves cursor left moves cursor right Moves cursor up -moves cursor down

(h)-Moves cursor left (l)-moves cursor right (k)Moves cursor up (j)Moves cursor down

Through the ____ layer, a user or system administrator can run application and OS utility programs and manage system resources, such as files, folders, and I/O devices.

-COMMAND (SHELL)

In a relative pathname .. (two dots) represents the current directory.

-FALSE

What is special about the root user-id that gives the administrator so much power over the UNIX system?

-Only root has 0 as the user -id

Match the command/shell operator with its action. &

-Runs a process in the background.

UNIX is case-sensitive and commands are in lower-case.

-TRUE

What is the difference between the PATH and CDPATH environment variables?

-The CDPATH environment variable is a list of directories searched when using the cd command

The TCP/IP network protocol was originally developed by ___

-Vinton Cerf and Robert E. Khan

To copy file systems you would use the _____ command

-dd

Which of the following commands will display only lines that begin with test?

-grep ^test file.txt

When displaying a man page, you can use the _________ navigation key to move one line forward.

-j (or Enter)

When using the echo or printf commands, use the following escape sequence to display a tab.

/t

The Linux operating system was developed in the _____.

1990S

What redirection sequence would you use if you wanted to send the standard error to the destination of the standard output?

2>&1

How many nods does vi have?

3

If you wanted to make your search commands (not the substitution ones) case-insensitive, what command would you use from the ex Mode prompt?

:SET IGNORECASE

To escape to the shell to run multiple commands, you would enter the following ex Mode command.

:SH

Which symbol is used to separate from one grep or sed command in the same command line?

;

Select the shell metacharacter which performs stdout redirection.

>

Match the job control command with its significance fg

BRINGS A JOB TO THE FOREGROUND

Identify the following fields from the sample /etc/passwd entry below. /bin/ksh

DEFAULT SHELL

The kill command is only used to kill a process.

FA;SE

A device file contains data

FALSE

A hard link can be across two file systems.

FALSE

A popular use of pr is to convert lowercase characters to uppercase characters

FALSE

Each entry in a directory contains only the inode number for the file or directory.

FALSE

If you wanted to delete from the current position to the end of the line you would use the dG command

FALSE

Local user-defined variables are inherited from the parent process by the child process.

FALSE

Login prompt strings cannot be customized by the user.

FALSE

Modern operating systems are multiprogramming (i.e., they allow only a single program to reside in memory).

FALSE

To prevent a new line (cursor on the same line) from occurring with an echo or printf command, use the \n escape sequence.

FALSE

When you execute ls -l progs where progs is a directory, the kernel looks up the progs inode to get a list of all files in the directory.

FALSE

You can only navigate around the vi screen using ONLY the relative cursor movement keys: h, l, k and j.

FALSE

Match the ps command option with its significance. -f

Full listing showing the PPID of each process

Match the Solaris man section with its subject. SECTION 6

GAMES

Identify the following fields from the sample /etc/passwd entry below. The RDBMS

GCOS

Match the shell environment variable with its meaning HOME

Home directory in which a user is placed on logging in

Match the Solaris man section with its subject. SECTION 3

LIBRARY FUNCTIONS

If you find yourself using options preceded by two hyphens (like --all), which flavor of UNIX could you be using?

LINUX

Match the job control command with its significance jobs

LISTS ACTIVE JOBS

Which of the following is executed only once on login?

LOGIN SCRIPT

Match the shell environment variable with its meaning PATH

List of directories searched by shell to locate command

Match the ps command option with its significance. -l

Long listing showing memory related information

If the file /bin/echo exists on your system, are the commands echo and /bin/echo equivalent

NO

Is it sufficient to simply submit a process background processing using the & operator if you want it to keep running in the background after you log off your system?

NO

Is the nohup command required for all shells (Bash, C Shell, Bourne, and Korn Shells)?

NO

Who owns the UNIX trademark today?

OPEN GROUP

Identify the following fields from the sample /etc/passwd entry below. :x:

PASSWORD

Match the shell environment variable with its meaning PS1

Primary prompt string

Match the ps command option with its significance. -a

Processes of all users excluding processes not associated with a terminal.

Which of the following is executed every time an interactive sub-shell is created?

RC SCRIPT

Processes in the ______are idle, pending availability of a CPU

READY STATE

Match the job control command with its significance suspend

SUSPENDS A JOB

Match the job control command with its significance [ctrl-z]

SUSPENDS THE CURRENT FOREGROUND JOB

A good way to combine multiple files into a single file for transmission over a network is to use the tar UNIX command.

TRUE

A hypervisor can make the sum of physical resources allocated to all virtual machines appear greater than the underlying physical resources.

TRUE

A process with no controlling terminal is more commonly known as a daemon.

TRUE

An RPM package is a collectionm of files bundled into an archive.

TRUE

In a UNIX system, devices are files.

TRUE

The rc file is executed every time an interactive shell is called up.

TRUE

The rc in rc script stands for run control.

TRUE

The signal name for a kill -9 is SIGKILL.

TRUE

The three sources and destinations of standard input and standard output are terminal, file, and pipe.

TRUE

The two types of ordinary files are text and binary.

TRUE

The umask command sets an environment variable which automatically sets file permissions on newly created files.

TRUE

Match the command to its result WHICH

Tells you the directory that contains the command but confines itself to directories of the PATH environment

Match the command to its result WHEREIS

Tells you the directory that contains the command, whether or not it is contained in the directories of the PATH environment variable

Match the following vi Modes to their description EX MODE

This mode is used for file handling and performing substitution.

A process inherits most of the environment of it's parent EXCEPT the following.

USER-DEFINED LOCAL VARIABLE

Identify the following fields from the sample /etc/passwd entry below. oracle

USERNAME

Match the shell environment variable with its meaning SHELL

User's login shell and one invoked by programs having shell escapes

Is it possible to use the kill command to send to a process a signal other than the SIGKILL and SIGTERM signals?

YES

You are editing a file with vi when a sudden loss of power causes your system to crash unexpectedly. Will you be able to recover your file?

YES

Select the shell wild card which matches a single character - either and i, j, or k.

[ijk]

Match the ps command option with its significance. -e

all processes including user and system processes

What is the main difference between the at and batch commands?

batch schedules jobs for later execution, but unlike with at, jobs are executed as soon as the system load permits.

The hard disk, SSD, and CD-ROM are all examples of _____ special devices.

block

If you ran the following command from the command line $ tar cvf /devfd0 *.doc and then wanted to repeat the command using .bak insteal of the .doc files, what would you enter on the command line?

both of the above (^doc^bak and !tar:s/doc/bak)

The ____ option of the diff command shows lines surrounding the line that differs.

c

The ____ command locates identical lines within two identically sorted files.

comm

Which option for the cut command is used to specify the field?

f

When displaying a man page, you can use the _________ navigation key to move one page forward.

f (OR THE SPACE BAR_)

Which command is used to display the top of the file?

head

Match the history command with its function. history 12

lists the last 12 commands

Match the command/shell operator with its action. bg-

moves a foreground job to the background

When you edit a file using vi, which keys allow you to open a new line?

o,O

Match the history command with its function. !12

repeats event number 12

____ is NOT a selection command.

sed

Match the UNIX run level with its decscription. -Run Level 0 →

system shutdown

The ____ option of the uniq command instructs it to generate as output only the lines of the source file that are not duplicated successively.

u

___ is a selection command.

uniq

When you edit a file using vi, what command sequence do you enter to save and exit?

wq

Command outputs can be redirected as input to another command using the _____ metacharacter.

|

Which of the following characters acts as a shorthand representation of the home directory?

~

Select the files which the bash shell can use as the login script of profile

~/.profile ~/.bash_login ~/.bash_profile

Match the history command with its function. !-12

repeats the 12th command prior to the previous one.

When you place several sed instructions in a file called instruction-file,you may issue the following command to tell sed to apply these instructions to filefile:

sed -f instruction-file file

Match the text movement operation with the key. Places deleted text to the right of the current cursor position Places deleted text to the left of the current cursor position. Joins the current line with the line following it.

(p)-Places deleted text to the right of the current cursor position (P)- Places deleted text to the left of the current cursor position. (J)- Joins the current line with the line following it.

Match the process phase with its description WAIT

- the parent process waits for the child to die, then picks up the exit status of the child

what command would you invoke to display your current shell?

-$ echo $SHELL

Which sed command finds every line that contains the four digits 1, 2, 3, and 4 inascending order (but with any number of any characters in between) and deletes thefirst letter on these lines:

-/1.*2.*3.*4/s/[a-zA-Z]//

Which sed command deletes only lines that do not contain any lower-case vowels (including blank lines)?

-/[aeiou]/!d

When would you use a symbolic over a hard link?

-ALL OF THE ABOVE -When you are trying to link a file across two file systems. -When you are trying to link to a directory in the same file system.

UNIX can be divided into two major schools - __________.

-AT&T SYSTEM V and BSD UNIX

In addition to the nine permission bits for owner, group owner, and other; the inode stores which other permission bits?

-All of the above -SUID -SGID -Sticky bit

ASCII Stands for

-American Standard Code for Information Interchange

Why are the directories /bin and /usr/bin usually found first in PATH?

-Because the commonly used UNIX commands are located there

BSD stands for

-Berkeley Software Division

To display the name of the month, enter the following on the command line.

-DATE +%H

You have three files foo, foo1 and foo2, the command cat foo[12] does what?

-Displays the contents of foo1 and foo2s

A user's encrypted password is maintained in the /etc/passwd file.

-FALSE

The filename is stored in the file's inode.

-FALSE

When navigating around the screen, it is recommended that the user use the PC navigation keys such as the up, down, left, and right cursor keys along with the [PageUp] and [PageDown] keys.

-FALSE

A non-privileged user must be a member of the system administrator group in order to login as root.

-False

When you enter su - user-id at the command prompt to login as another user, what is the significance of the - argument?

-It exports the user-id home environment so that you are presented the same environment as if you had logged in directly as that user-id.

An operating system arechitecture where the kernel is a single large process running entirely in a single address space is known as a _____ kernel architecture.

-MONOLITHIC

What is the significance of the command "ls *.*"?

-The command lists all filenames where a dot occurs anywhere in the filename except at the beginning.

Match the crontab entry to how often a command will be executed. 00 00 * * 1,2,3 -

-The command will be executed every Monday, Tuesday, and Wednesday at midnight.

When using the echo or printf commands, use the following escape sequence to supress a new line (i.e., cursor in same line)

-\c

Match the process phase with its description EXEC

-a child process overwrites its own image with the code and data of a new program

The sed command has the syntax format: sed 'Address1, Address2 Instruction Flag' Filename(s) If both Address1 and Address2 are omitted from the sed command,

-all lines of the file will be examined for editing

What is the result of running ls -Fa from the command line? Select all that apply.

-displays hidden files -marks directories and executables separately

Which of the following commands will display only lines that begin with start?

-grep^start file.txt

By default, Bash stores all previous commands in ___

-none of the above $HOME/.bash $HOME/.history $HOME/.bash_histfile

Select the shell wild card which matches all except flname1 and flname2.

-none of the above (*, ?, [ijk], [!x-z], !(filename))

Which sed command finds every occurrence of three adjacent letters and reverses them: (e.g. dogcatcow would become godtacwoc; but, do3ca;c.o would not change).

-s/\([a-z]\)\([a-z]\)\([a-z]\)/\3\2\1/g

What is the sed command to delete all empty lines (lines with no characters) fromfile file?

-sed -n -e '/./ p' file

which command line deletes all the blank lines from the input file?

-sed -n -e '/./p' file

Match the crontab entry to how often a command will be executed. -00 00 * * *

-the command will be executed every day at midnight.

When a user is assigned to a restricted shell such as rbash and rksh they are restricted from performing the following except _____.

-using the < operator to redirect input

When using the echo or printf commands, use the following escape sequence to display a new line.

/N

Application/distribution binaries that support or configure stuff in are located in _____.

/SBIN

The pathname /home/romeo/login.sql is an example of a(n) _________ pathname.

ABSOLUTE

Using the figure below, match the components which comprise the structure of a find command. -print

ACTION

While you are editing a file with vi a sudden power loss causes your system to crash. How much of your work will you be able to recover

ALL OF THE ABOVE -will be able to completely recover your work. -You will be able to only partially recover your work. -You will not be able to recover your work at all.

Which are the ways in which a user can log out of the system via the shell?

ALL OF THE ABOVE ([CTRL-D], LOGOUT, EXIT)

What is the purpose of an rc script?

All of the Above -It contains code used to initialize the UNIX system at bootup. -It contains code for starting and stopping UNIX services. -It contains code for changing between run levels on a UNIX system.

SunOS was derived from which major UNIX school?

BSD

How is the home directory set?

BY AN ENTRY IN THE /ETC/PASSWD

Why is the kill -9 signal often a better approach to killing a process than the default kill -15 signal.

Because the process can't ignore or trap a kill -9 signal.

Match the command/shell operator with its action. fg-

Brings a background job to the foreground

The _________ command changes the group owner of a file.

CHGRP

The _________ command changes the owner of a file.

CHOWN

Match the command/shell operator with its action. -nohup

Continues to run a process in the background even after logging out of the system.

Match the process phase with its description FORK

Creates a process by creating a copy of an existing process

To display only environment variables available in the current shell use the _____ command.

ENV

To make a local variable visible in all child processes you would use the _____ command.

EXPORT

A file with permissions -rw-r--r-- means that all users have read permission, only the owner has write permission, but the file is executable by anyone.

FALSE

A login script (also called a profile) is executed every time an interactive sub-shell is created.

FALSE

A popular use of pr is to convert lowercase characters to uppercase characters.

FALSE

A program is synonymous with a process.

FALSE

A shell script also runs the login shell

FALSE

A symbolic link has the same exact inode number for the file that it points to.

FALSE

All files in UNIX are organized in a linear structure.

FALSE

All services performed by an operating system are embedded in the core of the operating system

FALSE

An rc (run command) Script is executed only once on login

FALSE

An rc (run command) script is executed only once at login.

FALSE

In a relative pathname . (a single dot) represents the parent directory.

FALSE

In the shell if I wanted to match any single character, in this case any character between x and z, I would type [X-Z].

FALSE

In the shell, to match a single character we use the * (asterisk) character.

FALSE

In the shell, to match one or more characters we use the ? (question mark) character

FALSE

Like Windows-based word processors, the u command permits multiple-level undoing.

FALSE

Relative pathnames begin with the root directory.

FALSE

Running the ls -a command uniquely identifies directories and binary executables.

FALSE

Running the ls command with no options produced a long listing by default.

FALSE

Solaris supports the use of Red Hat Package Manager (RPM) for installing, updating, and removing software packages.

FALSE

T/F The value of an environment variable can be displayed by evaluating the $-prefixed variable with the type command

FALSE

T/F UNIX was first written in the C programming language

FALSE

T/F cron is a one-time scheduler.

FALSE

The UNIX system communicates the existence of an event to a process through the use of traps.

FALSE

The at, batch, and cron commands are ways to schedule jobs for later execution.

FALSE

The default system permissions for files and directories are the same.

FALSE

The following command $ find . ! -name "*.c" -print finds and prints all the files with a .c file extension.

FALSE

The history command only lets you recall commands in the current session.

FALSE

The init process is the parent process of all other processes and so has a PID of 0.

FALSE

The name of the Bash rc file is defined by the variable BASH_RC

FALSE

The root directory is also known as the person's home directory.

FALSE

The tee command owuld be used in instances where you need to send the input stream either to a file or to the standard output

FALSE

The wc command can be used to count paragraphs, lines, words, and characters.

FALSE

The | (pipe) metacharacter connects stdin from one command to stdout of another command.

FALSE

There is no benefit over using the printf command over the echo command when displaying messages or variables on the display.

FALSE

To add an new group to the /etc/group file the superuser would enter the addgroup command from the command line prompt.

FALSE

To add an new user to the /etc/passwd file the superuser would enter the adduser command from the command line prompt.

FALSE

To replace one or more contiguous characters you can use the x and X commands.

FALSE

To shutdown immediately and halt the system the superuser would enter shutdown -r now from the command line prompt.

FALSE

UNIX discourages users to combine multiple programs to solve complex problems

FALSE

UNIX is case insensitive with respect to filenames.

FALSE

When cp is used to copy multiple files, the last filename must be a directory; but the directory doesn't necessarily need to exist as cp will create the directory for you if it doesn't.

FALSE

You can specify multiple commands in one command line by separating commands with a + (plus) as a delimiter

FALSE

Using :1,$s/Internet/Web/ in the ex Mode will noninteractively and globally replace "Internet" with "Web" in all lines of a file.

FALSE there is no (/g ) or global mark so it will not apply to all

Match the UNIX run level with its decscription. -Run Level 3 →

Full multiuser mode

Identify the following fields from the sample /etc/group entry below :3:

GROUP ID

Identify the following fields from the sample /etc/group entry below sys

GROUP NAME

Identify the following fields from the sample /etc/group entry below : :

GROUP PASSWORD

he _________ environment variable contains the home directory for a user.

HOME

Identify the following fields from the sample /etc/passwd entry below. /home/oracle:

HOME DIRECTORY

Match the Solaris man section with its subject. SECTION 2

KERNEL SYSTEM CALLS

Match the job control command with its significance kill

KILLS JOBS

Match the Solaris man section with its subject. SECTION 5

MISCELLANEOUS

You can create a directory with the _____ command

MKDIR

The two standard pagers used by man are [1] and [2].

MORE AND LESS

Match the job control command with its significance bg

MOVES A JOB TO BACKGROUND

Match the following filename wild card patterns to their result [!a-zA-z]*

Matches all filenames that don't begin with a letter.

Match the following filename wild card patterns to their result ?????*

Matches filenames that have at least four characters.

Match the following filename wild card patterns to their result *[!0-9]

Matches filenames where the last character is not numeric.

Match the following filename wild card patterns to their result CHAP [A-CX-Z]

Matches the filenames chapa, chapb, chapc, chapx, chapy, and chapz.

Match the UNIX run level with its decscription. -Run Level 2 →

Multiuser mode (NFS not available)

Is the output of the command cat foo1 foo2 >/dev/tty directed to the standard output?

NO

The _________ characters can't be used as filename characters.

NULL AND /

Identify the following fields from the sample /etc/passwd entry below. 241

NUMERIC GID

Identify the following fields from the sample /etc/passwd entry below. 210

NUMERIC UID

Match the search command with the appropriate key sequence. ?pattern

SEARCH BACKWARD FOR A PATTERN

Match the search command with the appropriate key sequence. /pattern

SEARCH FORWARD FOR A PATTERN

Using the figure below, match the components which comprise the structure of a find command. -name index.html

SELECTION

To display a list of all evironment variables in the C shell, you would use the _____ command

SETNEV

The ____ is the user interface to the OS.

SHELL

Match the Solaris man section with its subject. SECTION 7

SPECIAL FILES (in /dev)

Command substitution requires the command to use __________.

STANDARD OUTPUT

Application programs that need to interact with the hardware communicate with the kernel via __

SYSTEM CALLS

Match the command to its result TYPE

Shows whether the command is builtin or external to the shell

Match the UNIX run level with its decscription. -Run Level 6 →

Shutdown and reboot mode

Match the UNIX run level with its decscription. -Run Level 1 →

System administration mode (local files systems mounted)

/dev/null and /dev/tty can be accessed by multiple users without conflict

TRUE

A binary file can contain any character

TRUE

A directory contains no data as such, but maintains some details of the files and subdirectories that it contains

TRUE

A directory stack is a convenient mechanism to use as a shortcut to switch between directories you visit frequently.

TRUE

A file system is unknown to the root file system until it is mounted

TRUE

A filename con comprise multiple embedded dots (e.g., a.b.c.d.e).

TRUE

By default, Bash stores all previous commands in the file $HOME/.bash_history.

TRUE

In Unix, the shell permits the use of wild card characters to match character patterns.

TRUE

In Windows to perform a copy and paste we use the [Ctrl-c] and [Ctrl-v] keyboard commands respectively. The vi equivalent are the y and p commands.

TRUE

In the shell, in order to prevent overwriting with the > and >>, you would enter the following command set -o noclobber on the command line.

TRUE

In the shell, to negate a character class you would use the ! (exclamation mark) character

TRUE

In the shell, typing the following command at the command line cmp rep[12] will compare files rep1 and rep2.

TRUE

It is generally a good idea to use the more command rather than the cat command to display large files.

TRUE

It is generally a good idea to use the od -bc command to display the contents of a binary file rather than the cat command.

TRUE

Many UNIX commands are linked.

TRUE

Programs access kernel services by invoking special functions called system calls.

TRUE

Running wc -c will display a count of all the characters in a file.

TRUE

Running wc -l will display a count of all the lines in a file.

TRUE

Running wc -w will display a count of all the words in a file.

TRUE

Signals are the way in which the UNIX operating system can communicate the occurrence of an event to a process

TRUE

Solaris supports the use of pkgadd to install, update, and remove software packages.

TRUE

Sometimes commands are built directly into the shell and those are executed rather than the stand-alone program located in a directory

TRUE

T/F In the shell, to match a single character from a set of characters, we enclose the character set between [ ] (square bracket) characters.

TRUE

The Bash shell looks for one of the three files, .bash_profile, .profile, and .bash_login, in the sequence specified, and identifies the one it spots first as its profile.

TRUE

The PPID is the PID of the parent process.

TRUE

The UNIX shell also provides a programming facility including control structures, loops, and variables using shell scripts

TRUE

The command ls -lRa / > foo saves the listing of all files in the system to the file foo.

TRUE

The execute privilege of a directory is often referred to as the search permission.

TRUE

The expression !* signifies all arguments to the previous command.

TRUE

The following command $ find . -type f -mtime +2 -mtime -5 -ls will run an ls -lids command on any regular files that are modified in more than two days and less than five days.

TRUE

The init process takes its instructions from /etc/inittab file.

TRUE

The init process takes its instructions from the /etc/inittab file.

TRUE

The ln command allows you to create multiple filenames for a file.

TRUE

The more and less commands are pagers commonly used by the man command.

TRUE

The passwd command changes the password of the user running the command.

TRUE

The umask is an octal number which has to be subtracted from the system default permissions to obtain the actual default.

TRUE

The who command displays the users currently logged into the system.

TRUE

To evaluate which pager is used by man, enter echo $PAGER on the command line.

TRUE

To reverse your previous editing instructions, first press [Esc] to enter command mode then press the u key

TRUE

Typing the following command sequence "05w4scounter[Esc]" moves you quickly to the fifth word of a line and replace its four characters with the string "counter".

TRUE

UNIX provides programmers a rich set of programming tools to aid in the development, debugging and maintenance of program

TRUE

UNIX supports sophisticated pattern matching using advanced tools such as grep, sed, and awk.

TRUE

Unlike Windows, UNIX can be used by several users concurrently.

TRUE

When displaying a long directory listing of a device file, rather than showing the file size in the fifth column, it contains a major and minor device number

TRUE

When the \ (escape character) precedes a metacharacter, the metacharacter's special meaning is turned off.

TRUE

Whitespace is a contiguous set of spaces, tabs, and newline characters.

TRUE

tee is a shell built-in command

TRUE

to split a long command sequence into multiple lines press a \ before pressing [Enter].

TRUE

Match the crontab entry to how often a command will be executed. -00 00 * 1,2,3 *

The command will be executed every day for the first three months of the year (January, February, & March) at midnight.

Match the crontab entry to how often a command will be executed. -00 00 1,2,3 * * -

The command will be executed the first three days of every month at midnight.

Match the following vi Modes to their description COMMAND MODE

The default mode where every key pressed is interpreted as a command to run on text.

Match the UNIX run level with its decscription. -Run Level 5 →

The graphical environment mode in Linux

Match the following vi Modes to their description . INPUT MODE

The mode is invoked by pressing specific keys on the keyboard. Every key pressed subsequently shows up as text.

Match the shell environment variable with its meaning TERM

Type of terminal

Identify the following fields from the sample /etc/group entry below root, bin, sys,adm

USER LIST

Match the Solaris man section with its subject. SECTION 1

USER PROGRAMS

Pressing __________ will scroll the screen a half page backward.

[CTRL-U]

Pressing __________ will scroll the screen a full page backward.

[ctrl-b]

Match the history command with its function. !12:p

prints without executing event number 12

A UNIX filename can be up to _________ characters in length.

255

Which symbol is used to separate more than one grep or sed command

;

Select the shell metacharacter which performs stdin redirection.

<

Select the shell metacharacter which performs stdout redirection (update).

>

When running the ps command, system processes that have no controlling terminal are easily identified by the __________.

?

After the command line is terminated by hitting the [Enter] key, the shell goes ahead with processing the command line in one or more passes. Order the passes (as described below) which broadly matches the seqeuence used by the shell.

PARSING The shell first breaks up the command line into words using spaces and tabs as delimiters, unless quoted. All consecutive occurences of a space or tab are replaced with a single space. VARIABLE EVALUATION All words predeeded by a $ are evaluated as variables, unless quoted or escaped. COMMAND SUBSTITUTION Any command surrounded by backquotes is executed by the shell, which then replaces the standard output of the command in the command line REDIRECTION The shell looks for the characters >, <, and >> to open the files they point to. WILD-CARD INTERPRETATION The shell scans the command line for wild cards (the characters *, ?, [ and ]). Any word containing a wild card is replaced with a sorted list of filenames that match the pattern. The list of these filenames then forms the arguments to the command. PATH EVALUATION The shell looks for the PATH variable to determine the sequence of directories it has to serch in order to hunt for the command.

Using the figure below, match the components which comprise the structure of a find command. find/ home......

PATH LIST

You can display the current working directory with the _____ command.

PWD

Match the search command with the appropriate key sequence. n

REPEAT THE SEARCH IN THE SAME DIRECTION AS THE ORIGINAL SEARCH

Match the search command with the appropriate key sequence. N

REPEAT THE SEARCH, BUT REVERS THE DIRECTION OF THE ORIGINAL SEARCH


Kaugnay na mga set ng pag-aaral

Chapter 5-7 sanitization TEST QUESTIONS

View Set

Bontrager Chapter 9: L-Spine, Sacrum, Coccyx

View Set

Ch. 8 DNA Replication, Mitosis, and the Cell Cycle LearnSmart

View Set

Acute Care GI/GU/Neuro Practice Questions

View Set

EMT Ch 13 - Respiratory Emergencies

View Set

NUR 1030: Competency 11- Breast disorders

View Set

Unit 2: Economic Indicators and the Business Cycle

View Set