Midterm Study concepts. chap 1-14

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

which character at the beginning of a long listing indicates a regular file? A.- B.| C.c D.d

-

to copy the contents of a directory, use the following options for the cp command (choose two) A.-A B.-r C.-d D.-R

- r -R

Long command options are proceded by which two characters: A.&& B.-- C.|| D.88

--

which two characters do you use to tell the command that you are finished providing options and the remaining data on the command line is arguments? A.-- B.** C.|| D.&&

--

to maintain timestamps when using the cp command, use: A.-T B.-A C.-a D.-t

-a

use the ___ option to display hidden files with the ls command A.-A B.-h C.-D D.a

-a

which option for the rm command will cause it to prompt before deleting files> A.-l B.-p C.-i D.a

-i

you can pass arguments to long options by using which of the following techniques (choose two) A.- options {argument} B.- option ~ argument C.-option =argument D.-option argument

-option=arguemtn -option argument

which mkdir option should be used to create parent directories (that dont already exist) along with the specified directory? A.-F B.-d C.-A D.-p

-p

Which options for the rm command can be used to delete directories that contains files> choose two A.-r B.-R C.-A D.-D

-r -R

The __ option to the uname command will display the kernel name A.-s B.-x C.-k D.-,

-s

the names of hidden files begin with the ____ character A.* B.> C.+ D..

.

when speficying a path, the ___ character symbolized the current directory A.: B./ C.~ D..

.

To process a script file in the current context, you execute: (choose two) A.. B.include C.source D.exec

. source

local variable are: A.Are not a valid type of variable B.passed into other shells and commands C.Only available to the shell they are created in D.not used by shells at all

.Only available to the shell they are created in

an absolute path always start with which character? A./ B.~

/

to search for something while viewing a man page, you first type a __ character A.> B.| C.< D./

/

which of the following files is for all bash shell users and executed every time a bash shell is opened: A./etc/bashrc B./etc/profile C.~/.bashrc D.~/.bash_profile

/etc/bashrc

The location of users' default shells is stored in the __ file. A./etc/passwd B./etc/group C./etc/gshadow D./etc/shadow

/etc/passwd

which of the following files is for all bash shell users and executed only at login? A./etc/bashrc B./etc/profile C.~/.bashrc D.~/.bash_profile

/etc/profile

shell command man pages are typically located in section___. A.1 B.3 C.4 D.2

1

special file man pages are typically located in section ____ A.3 B.4 C.1 D.3

4

system administration man pages are typically located in section ___. A.8 B.6 C.7 D.9

8

in the PATH variable, the ___ character is used to separate the directories. A.: B.; C.~ D./

:

The Path environment variable is used for: A,specifying locations that are writable for the user B.Specifying directories to search for xecutable files C.Specifying directories to contain documentation D.specifying locations where ordinary users can navigate

B.Specifying directories to search for xecutable files

the two login types are: A.URI and CLU B.CLI and GUI C.URI and Cli D.GUX and Cli

CLI and GUI

the head -n-1 readme.txt.command will: A>show the first character of every line of readme.txt B.Display all but the last line of readme.txt C.Number the lists of readmen.txt D.Dsplay the first line of readme.txt

Display all but the last line of readme.txt

shell variables are used to: A.reboot the system B.prevent users from logging in C.hide passwords D.Hold critical system information

Hold critical system information

which character(s) cannot be placed in variable names? A>Upper~case alpha characters B.Hyphen ("-") character C.Underscore ("_") character D.lower-case alpha character E.numeric character

Hyphen ("-") character

The ____ variable stores diretories that the shell used to find executable files A.CD B.DIR C.PATHS D.PATH

PATH

which of the fillowing is a valid way to add the /data directory to the existing PATH variable? A.$PATH=$PATH:/data B.PATH=$PATH:/data C.$PATH=/data D.PATH=/data

PATH=$PATH:/data

the "." in an ls listing represents: A.directories that cant be accessed B.Hidden files C.The end of the command output D.the current directory

The current directory

which if the following will create a variable: A.VAR+value B.VAR=value C.VAR value D.Var~value

VAR =value

the path testdir/file.txt is: A.an invalid path B.a relative path C. a circular path D.an absolute path

a relative path

bash is: A.a website B.a networking term C.a shell D.an operating system

a shell

the path /data/file.txt is: A.an invalid path B.a relative path C. a circular path D.an absolute path

an absolute path

A command can be: (choose three) A.an alias B.a block C.a configuration file D.a variable E.a function F.a program built-in to the shell

an alias a function a program built-in to the shell

if you want to see the entire contents of a text file, you can use the __ command: A.dog B.type C.wc D.cat

cat

The basic form of a command line is: A.command [options...][arguments...] B.command [arguments...]options C.command arguments options D.command [options..]arguments...

command [options..][arguments...]

the /usr/local/bin directory contains: A. the most fundamental commands that are essential for th eoperating system to function B.nothingL it is not a valid directory C.commands that have been compiled from local sources D.essential administrative command

commands that have been compiled from local sources

using the touch command and specifying an nonexistent file.. A.prompt the user to create file B.creates a blank file with that name C.generates an error. D.does nothing

creates a blank file with that name

if you want to extract fields from a file, you can use: A.cols B.extract C.fields D.cut

cut

which character at the beginning of a long listing indicates a directory> A.- B.| C.c D.d

d

the mkdir command cannot be used to A.delete a directory B.create new directories C.create multiple directories at once D.create sub-directories in different parent directories

delete a directory

The command man 5 passwd wil: A.Display the man page of section 5 for passwd. B.print the first five pages that refer to the term passwd. C. not work; you can't give anumeric argument to the man command D.Display the first five lines of the man page for the passwd command.

display the man page of section 5 for passwd

Which Command will send text to the terminal display: A.echo B.type C.print D.show

echo

the /bin directory contains: A.commands that have been compiled from local sources B.nothing: it is not a valid directory C.the most fundamental commands that are essential D.essential administrative commands

essential administrative commands

The ___ command will take another command for the argument to execute: A.exit B.uname C.exec D.pwd

exec

to replace the currently running shell, you can use: A.dash B.bash C.exec D.csh

exec

environment variable can be viewed by running:(choose two) A.export -e B.vars C.export -p D.env

export -p env

The rmdir command can be used to delete directories and their contents, true or false

fALSE

the command manual ls will provide detailed information about how the ls command funtions true or false>

false

the ls command can list the content of only one directory at at time. true or false

false

two tables have columns with the same field names. what is required in order to join the two tables? A.change fields names in one of the tables to make it unambiguous B.Join between such tables cannot be created C.create a dummy table which has no common fields D.fields names must be prefixed by the table name and a period

field names must be prefixed by the table name and a period

the ls-l command output will not included A.file permissions B.timestamp C.hard link count D.file contents

file contents

if you want to set the maximum line width for a text file, you can use: A.od B.fmt C.pager D.format

fmt

to see a list of commands that are available while viewing a man page, you can type the __ character A.w B.h C.g D.c

h

The ____ command will allow you to see commands that you have previously executed A.hist B.previous C.history D.last

history

select the function that the tr command cannot perform: A.Translate from one set of characters to another B.delete specific characters C.Eliminate duplicate characters D.insert characters

insert characters

Which command merges two files related tables in a database? A.paste B.join C.sql D.query

join

the core software component that tells the hardware what actions to take is called the ____ A.compiler B.kernel C.transmitter

kernel

you want to execute the ls command with two options: -r and -l which of the following are valid ways to run this command: A.rl ls B.ls -r -l C.ls -l-r D.ls --r --l E.ls rl F.ls -rl

ls -r-l ls-l-r

which of the following are valid command lines? (choose two) A. ls/etc -l B. ls-l/etc C.ls-/etc D.-l ls/etc

ls /etc-l ls -l /etc

to perfomr a "long listing" to show file detailes, use which of the following comands> A.ls -D B.ls -L C.|| D.ls-l

ls-l

which command is used in order to view the manual page for a topic? A.show B.man C.help D.doc

man

if you want a file to be displayed with its lines numbered, you can use: A.nl B.cut C.fmt D.number

nl

this command displays binary files in a variety of representations: A.od B.format C.cut D.cat

od

the [ ] characters around day in the example cal [-smjy13][[[day]month]year] means that day is: A. an argument that must be "day" and nothing else B. an option, not an argument C.required D.Optional

optional

Environment variable are A.Are not a valid type of variable B.passed into other shells and commands C.Only available to the shell they are created in D.not used by shells at all

passed into other shells and commands

Which command will merge two files together line by line? A.combo B.paste C.join D.merge

paste

the __ comand provides many options for formatting a file for printing: A.pr B.format C.print D.header

pr

The ____ command will display your current working directory A.uname B.exec C.pwd D.exit

pwd

To display your current location within the filesystem, you can type: A.whereami B.cwd C.dir D.pwd

pwd

which of the following is a non-interactive editor? A.ed B.vi C.nano D.sed

sed

environmental variables cannot be declared by which command> A.typeset B.declare C.export D.set

set

to view all current variables, you can use; A.dump B.var C.view D.set

set

To put the lines of a file in alphabetical order, you can run: A.unique B.sort C.cat D.paste

sort

the expand and unexpand commands change: (choose two) A.new lines B.carriage returns C.spaces D.tabs

spaces tabs

if you want to break apart a large file into a smaller files, you can use: A.split B.at C.break D.dump

split

which of the following man page sections will provide an example of how a command is executed? A.the SYNOPSIS section B.the DESCRIPTION section C.the FILES sections D.the NAME sections

the SYNOPSIS section

when typing a command, you can have the bash shell complete the command by pressing which key? A.the Up Arrow key B.the Del key C.the Backspace key D.The Tab key E.The Enter key

the Tab key

the PATH variable will be used under which situation? A.the command is an alias B.the command is not found C. a full path name to a command is provided D.the command is a function

the command is not found

by default, what does the cp command preserve from the orginial file A.the timestamps B.the name C.the permissions and ownership D.the contents

the contents

the ls command will list which of the following by default? A.the root directory B.the current directory C.nothing; it requires an argument D. users home directory

the current directory

the syntax [-u|-utc|-universal\ means: A.these three options are different B. these three options mean the same thing C.these are required options D.this is invalid syntax

these three options mean the same thing

Why would you press CTRL+C when executing tail? A.to capture the output into a file B.to complete the processing of a file C. to stop tail from following a file D. to get tail to copy the text it is outputting

to stop tail from following a file

The mv command will rename a file when a new directory is not specified. true or false>

true

Users home directories often containt hidden files true or false

true

the mv command can be used to move more than one file at a time. true or false

true

the rm command can be used with glob characters to delete multiple files. true or false?

true

the touch command can be used to change a file's time-stamp to something other than the current system time true or fase>

true

The ___ command will tell you f a command exists as a built-in command, function, alias or a command located within the PATH variable. A.set B.export C.declare D.type

type

The__command displays information about the linux kernel: A.kern B.uname C.real D.linux

uname

Which command will remove consecutive duplicate lines from a file? A.unique B.uniq C.dup D.dedup

uniq

if you want to delete a variable you can run: A.Wipe B.clear C.delete D.unset

unset

which character at the beginning of a long listing indicates a symbolic> A.- B.| C.c D.d

|

which file can you place in your home directory to be executed when you log off the system? A./etc/bashrc B.~/.bash_logout C.~/.bashrc D.~/.bash_profile

~/.bash_logout

which of the following files is a specific to each user and executed only during login? A.~/.bash_profile B./etc/profile C./etc/bashrc D.~/.bashrc

~/.bash_profile

which of the following files is specific to each user and executed every time a bash shell is opened? A.~/.bashrc B.~/.bash_profile C./etc/bashrc D./etc/profile

~/.bashrc

which of the following commands will execute the last command that started with ec: A.!! B.!!ec C.!ec D.!-ex

!ec


Ensembles d'études connexes

RHIA (Domain I) Data Content Structure and Standards

View Set

Marketing Chapter 5 (Test Bank Questions)

View Set

Hunter Safety Chapter 6-9 Lucieo E.

View Set

Anatomy- Female Internal Genitalia

View Set

Cybersecurity Management I - Strategic - C727 PreAssessment Test

View Set