• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/145

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

145 Cards in this Set

  • Front
  • Back

Use the wc command to view the contents of a text file on the terminal windows.




True or False

False

The path/Main_directory/file is a relative path




True or False

False

What does the touch command do?

Creates an emty file with no content

The core software compent that tells the hardware what actions to take is called the kernel.




True or False

True

The /etc directory is used to store files specific to the host machine




True or False

True

What does the echo b* command display

All files that be with the letter b

The _________ command will search for files by searching the whole filesystem

Find

In the find / -name file 1.txtcommand, the /means ____________

it starts the search at the root directory

The top level directory on a linux system is represented as /




True or False

True

The _________ command will send text to the terminal window

Echo

You can use the _____ option to display hidden files with the ls command

-a

When executing a command, you press CTRL+C to ______________

B. Stop the screen from scolling too fast through multiple screens

What does the touch command do?

It creates an empy file with no content

The uname command displays information about the linux kernel




True or False

True

The _________ command will confirm the system directory that you are currently in

pwd

Chapter 1:


The _________ command displays inforrmation about the Linux Kernal

uname

Chapter 1:


Bash is:


A. A networking Term


B. An operating system


C. A Shell


D. A website

C. A shell

Chapter 1:


What are the two login types

CLI and GUI

Chapter 1:


The core software component that tells the hardware what action to take is called the ____?



Kernel

Chapter 1:


Which of the following are valid command lines? (Choose Two)




A. ls /etc-l


B. ls -l /etc


C. -l ls /etc


D. ls -etc

A. ls /etc-l


B. ls -l /etc

Chapter 1:


You want to execute the ls command with two options -r and -i. Which of the following are valid ways to run this command. (Choose three)


A. ls -l-r


B. rl ls


C. ls -r-l


D. ls --r--l


E. ls -rl


F. ls rl



C. ls -r-l


E. ls -rl


ls -lr



Chapter 1:


When typing a command, you can have the bash shell complete the command by pressing which key?

The Tab Key

Chapter 1:


The location of users'default shells is stored in the __________ file

/etc/passwd



Chapter 1:


The _____ option to the uname command will display the kernel name

-s

Chapter 1:


The _______ Command will display your current working directory

pwd

Chapter 1:


To replace the currently running shell, you can use:


A. Dash


B. CSH


C. Bash


D. exec

D. exec



Chapter 1:


A command can be:


A. a block


B. a variable


C. a alais


D. a configuration file*


E. a function



Wrong Combo


B. a variable


C. a alais


D. a configuration file*


Wrong Combo


B. a variable


C. a alais


E. a function

Chapter 1:


Which two characters do you use to tell the command that you are finished providing options and that the remaining data on the command line is arguments?


A. --


B. && And


C. **


D. || Or

A. --

Chapter 1:


The ____ command will take another command for the argument to execute


A. Exit


B. pwd


C. uname


D. exec



D. exec

Chapter 1:


Which comand will send text to the terminal display?


A. Show


B. Type


C. Print


D. Echo

New


D. Echo

Chapter 1


The basic form of a command line is


A. command [option...][arguments...]


B. command [arguments...] options


C. command [options...] arguements


D. command arguments options

A. command [option...][arguments...]

Chapter 2:


Which command is used in order to view the manual pages for a topic?

man

Chapter 2:


The command manual ls will provide detailed information about how the ls command functions.




True or False

False

Chapter 2:


Which of the following man page sections will provide an example of how a command is executed?


A. Files


B. Description


C. Synopsis


D. Name

C. Synopsis



Chapter 2:


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



D. Optional



Chapter 2:


The syntax [ul--utc--universal] means_____


A. This is invalid


B. These threee options mean the same thing


C. These three options are different


D. These are required options

B. These threee options mean the same thing

Chapter 2:


The command "man 5 passwd" will _____


A. Display the first 5 lines of the man page for the password command


B. Print the first five man pages that refer to the term passwd


C. Not work: you can't give a numeric argument to the man command


D. Display the man page of Section 5 for paswd

D. Display the man page of Section 5 for paswd

Chapter 2:


To see a list of commands that are available while viewing a man page, you can type the ____ character




A. w


B. g


C. c


D. h


D. h - help



These are wrong because


A. w - N/A


B. g - end of page


C. c - N/A



Chapter 2:


Special file man pages are typically located in section _________


A. 2


B. 3


C. 4


D. 1

C. 4 - Devices and Special Files




These are wrong because


A. 2 - System Calls


B. 3 - C Library Functions


D. 1 - User Commands

Chapter 2:


System Administration man pages are typically located in Section ____


A. 8


B. 9


C. 7


D. 6

A. 8 - System Administration tools and Deamons




These are wrong because


B. 9 - None


C. 7 - Miscellanous


D. 6 - Games et. Al.

Chapter 2:


Shell command man pages are typically located in section ____


A. 3


B. 1


C. 2


D. 4

B. 1 - User Commands




These are wrong because


A. 3 - C Library Functions


C. 2 - System Calls


D. 4 - Devices and specal Files

Chapter 2:


To search for something while viewing a man page, you first type a ________ character


A. >


B. |


C.<


D. /

D. /

Chapter 3:


If you want to see the entire contents of a text file, you can use the ____ command


A. wc


B. cat


c. dog


d. type

B. cat

Chapter 3:


The expand and unexpand commands change: (choose 2)


A. New Lines


B. Carriage returns


C. Tabs


D. Spaces

C. Tabs


D. Spaces

Chapter 3:


Why would you press control+C when executing tail?

To stop the tail from following a file

Chapter 3:


Which command merges two files like related tables in a database

join command

Chapter 3:


Which command will merge two files together line by line?

paste

Chapter 3:


Select the function that the tr cannot perform:


A. Translate from one set of characters to another


B. Eliminate duplicate characters


C. Delete specific characters


D. Insert characters

D. Insert characters

Chapter 3:


If you want to extract fields from a file you can use ___


A. cut


B. extract


C. cols


D. fields

A. cut

Chapter 3:


This command displays binary files in a variety of representations


A. Format


B. Cut


C. od


D. cat

C. od

Chapter 3:


If you want a file to be displayed with its lines numbered you can use:


A. fmt


B. nl


C. number


d. cut

B. nl

Chapter 3:


To put the lines of a file in alphabetical order, you can run ___


A. paste


B. cat


C. sort


D. uniq

C. sort

Chapter 3:


The head -n -1 readme.txt command will


A. Show the first character of every line of readme.txt


B. Display the first line of readme.txt


C. Display all but the last line of redme.txt


D. Number the lines of readme.txt

C. Display all but the last line of redme.txt

Chapter 3:


If you want to break apart a large file into smaller files, you can use:


A. dump


B. Splt


C. cat


D. Break

B. Splt

Chapter 3:


If you want to set the maximum line width for a text fie, you can use ___


A. fmt


B. od


C. format


D. pager

A. fmt

Chapter 3:


The ___ command provides many options for formating a file for printing.


A. format


B. print


C. header


D. pr

D. pr

Chapter 3:


Two tables have columns with the same fields names. What is required in order to join the two tables?


A. Change field names on one of the tables to make it unambiguous


B Create a dummy table which has no common fields


C. Filed names must be prefixed by the table name and period


D. join between such tables cannot be created

Answer unknown


Wrong Section 3.8

A. Change field names on one of the tables to make it unambiguous

Chapter 4:


The PATH environment variable is used for ____


A. Specifying locations that are writable for the user


B. Specifying directories to contain documentation


C. Specifying directories to search for executable files


D. Specifying locations where ordinary users can navigate

C. Specifying directories to search for executable files

Chapter 4:


Which character cannot be placed in a variable name?


A. Lower-case alpha characters


B. Hyphen ("-") character


C. Numeric characters


D. Upper-case alpha characters


E. Underscore ("_") character

B. Hyphen ("-") character

Chapter 4:


Shell variables are used to:


A. Reboot the system


B. Hold critical system information


C. Hide passwords


D. Prevent users from logging in

B. Hold critical system information

Chapter 4:


Local variables are


A. Not a valid type of variable


B. Passed into other shells and commands


C. Only available in the shell they are created in


D. Not used by shells at all

C. Only available in the shell they are created in

Chapter 4:


The /bin directory contains


A. Commands that have been compiled from local sources


B. Essential Administrative Commands


C. Nothing: Its is not a valud directory


D. The most fundamental commands that are essential for the operating system to function

D. The most fundamental commands that are essential for the operating system to function

Chapter 4:


Which of the following is a valid way to add the /data directory to the existing PATH variable?


A. $Path=/date


B. PATH=$Path:/data


C. PATH=/data


D. $PATH=$PATH:/data



B. PATH=$Path:/data

Chapter 4:


Which of the following files is for all bash shell users and executed only at login


A. ~/.bashrc


B. /etc/profile


C. /etc/bashrc


D. ~/.bash_profile

B. /etc/profile

Chapter 4:


Which of the following comands will execute the last command that started with the ec


A. !!ec


B. !ec


C. !!


D. !-ec

B. !ec

Chapter 4:


In the PATH variable, the ___ character is used to separate the directories


A. ;


B. :


C. ~


D. /

Guess


B. :


Wrong Section 4.6


D. /

Chapter 4:


The ____ variable stores directories that the shell used to find executable files.


A. CD


B. PATHS


C. PATH


D. DIR

C. PATH

Chapter 4:


If you want to delete a variable, you can run the ___ command

unset

Chapter 4: Section 4.8


To process a script file in the current context, you execute


A. .


B. exec


C. source


D. include

Answer Unknown


Wrong


A. .


B. exec


Wrong


B. exec


C. source

Chapter 4:


The path /data/file.txt is:


A. Absolute path


B. Circular path


C. Relative path


D. Invalid path

A. Absolute path

Chapter 4 Section 4.7


Which of the following is specific to each user and executed every time a bash shell is opened?


A. ~/.bashrc


B. /etc/profile


C. /.bash_profile


D. /etc/bashrc

Guess


~/.bashrc


Wrong


C. /.bash_profile

Chapter 4


Which of the following files is specific to each user and executed only at login


A. ~/.bashrc


B. /etc/profile


C. /etc/bashrc


D. ~/.bash_profile

Guess


~/.bash_profile



Chapter 4


To view all current variables you can use ___


A. view


B. dump


C. var


D. Set

D. Set

Chapter 4


Environmental variables cannot be declared by which command


A. declare


B. Set


C. Export


D. typeset

B. Set

Chapter 4


The ___ command will allow you to see commands that you have previously executed.


A. History


B. Previous


C. hist


D. last

A. History

Chapter 4: Section 4.6


The ____ command will tell you if a command exists as a built in command, function, alias or command located within the PATH variable.


A. export


B. type


C. set


D. declare

Answer Unknown


Wrong


C. set

Chapter 5


Use the ___ option to display hidden files with the ls command

-a

Chapter 5 Section 5.2


The ls command can list the contents of only one directory at a time.


True or False

False

Chapter 5


Using the touch command and specifying a nonexistent file


A. Prompt the user to creat a file


B. Does nothing


C. Creates a blank file with that name


D. Generates an error



C. Creates a blank file with that name

Chapter 5


To copy the contents of a directory, use the following options for the cp command


A. -r


B. -d


C. -R


D. -A

A. -r


C. -R

Chapter 5


Which option for the rm command will cause it to prompt before deleting files

-i

Chapter 5 Section 5.9


The rm command can be used with glob characters to delete multiple files


True or False

False

Chapter 5


The mkdir command cannot be used to ___


A. Create new directories


B. Delete a directory


C. Create multiple directories at once


D. Create sub-directories in different parent directories



B. Delete a directory

Chapter 5 Section 5.9


The rmdir command can be used to delete directories and their contents


True or False

False


Book: The rmdir command is used to remove empty directories.

Chapter 5


The names of the hidden files begin with the ___ character

. (dot)

Chapter 5


Which options to the ls command will sort the output by size instead of alphabetically?


A. -s


B. -S


C. -r


D. -t

Guess


B. -S


Book says this is write, Test says Wrong


A. -s

Chapter 5 Section 5.6


The "." in a ls listing represents



Hidden files


The book says: the .character is used at the beginning of a file or directory name, it makes thefile hidden by default.




NOTE: One test said right the other said wrong

Chapter 5


The mv command can be used to move more than one file at a time?


True or False

True

Chapter 5


Which mkdir option should be used to create a parent directories (that don't already exist along with the specified directory?


A. -d


B. -F


C. -A


D. -p

D. -p

Chapter 5


The ls-l command output will not include ___


A. File Permissions


B. Timestamp


C. Hard link count


D. File Contents

D. File Contents

Chapter 5


Which character at the beginning of a long listing indicates a symbolic link?




A. l


B. C


C. d


D. -

A. l

Chapter 5


Which option to the ls command will sort the output by time stamp?

-t

Chapter 5


User home directories often contain hidden files


True or False

True

Chapter 5


To performa a "long listing" to show file details, use which of the following commands


A. II


B. ls -D


C. ls -l


D. ls -L

C. ls -l

Chapter 5


BY default, what does the cp command preserve from the original file

This is with a -a only The timestamp

Chapter 5


The mv command will rename a file when a new directory is not specified


True or False

True

Chapter 5


By, default, using the touch command on an existing file will update the file's ____


A. Timestamp


B. Type


C. Permissions


D. Ownership

Timestamp

Chapter 6


The echo -a* will display___


A. Only the file named a*


B. All of the files in any directory that begin with an "a" character


C. All of the files in the current directorythat begin with an a Character


D. All of the files in the current directory that begine with an a or Acharacter

C. All of the files in the current directorythat begin with an a Character

Chapter 6


To view the ASCII text table in linux, you can use the following command




A. man ASCII


B. list ACSII


C. echo ASCII


D. view ASCII

A. man ASCII

Chapter 6 Section 6.2


Within Square brackets, (Example: [?]) the ? character means


A. Match a ? character


B. Exactly one character


C. Nothing, it has no meaning at all


D. Match zero or more of any ? character

Guess


C. Nothing, it has no meaning at all


Wrong


B. Exactly one character


A. Match a ? character



Chapter 6


You can combine glob characters in a single pattern, for example: a??*[0-9]


True or False

True

Chapter 6


Which command will display more information about globbing?


A. man 7 globbing


B. man 7 glob


C. man -7 glob


D. echo globbing

B. man 7 glob

Chapter 6


Which of the following will match files that have the string "hello" somewhere in the file name?


A. echo hello*hello


echo hello*


echo *hello*


echo *hello

echo *hello*

Chapter 6


The glob pattern [!abc]*


A. All files that start with any character except a,b, or c


B. Nothing, this is an invalid glob pattern


C. All files


D. All files that start with either of the following characters !,a,b, c

Guess


A. All files that start with any character except a,b, or c


Wrong


D. All files that start with either of the following characters !,a,b, c

Chapter 6


Which glob character matches exactly one character?


A. *


B. [


C. . (dot)


D. ?

D. ?

Chapter 6


Which glob character matches zero or more characters


A. [


B. . (dot)


C. *


D. ?

C. *

Chapter 6


Which two characters represent an empty string?


A. ..


B. &&


C. **


D.""

D.""

Chapter 6 Section 6.2


Which of the following is for globbing


A.


B. /


C. #


D. [

Wrong


C. #

Chapter 6 Section 6.2


Which of the following characters can be used to negate (indicate NOT matching the following characters), when placed as the first of a set of characters enclosed in square brackets []?


A. ^


B. ?


C. ~


D. !

Wrong


A. ^

Chapter 6 Section 6.1


What command performs globbing


A. echo


B. bash


C. ls


D. display

Wrong


A. echo

Chapter 6


Which two characters match "a single character from a set of specified characters


A. ??


B. []


C. ..


D. **

B. []

Chapter 7 Section 7.1


Which of the following are advantages of using locate command?


A. it pages the results


B. It can search by file attribute types


C. It results are always the most up to date


D. It is quicker than the find command



Wrong


B. It can search by file attribute types

Chapter 7


Which of the following are advanteages of using the find command


A. It pages the results


B. its results are always the most up-to-date


C. It can search by file attribute type


D. It is quicker than the locate command

B. its results are always the most up-to-date


C. It can search by file attribute type

Chapter 7


Which option to the find command will search by name using a case-sensitive match


A. -cmin


B. -iname


C. -immin


D, -inum

B. -iname

Chapter 7


Which directory is used to store files representing attached devices


A. /dev


B. /


C. /mnt


D. /tmp

A. /dev

Chapter 7


The ___ command will search for files by searching the live filesystem


A. locate


B. find


C. update db


D. search

B. find

Chapter 7


Which option to the locate command will have the command perform case-insensitive searches


A. -s


B. -g


C. -i


D. -l



C. -i

Chapter 7


What option to the find command will search by user owner


A. -person


B. -uowner


C. -user


D. -owner



C. -user

Chapter 7


Which option to the find command will execute a command on each matching file without prompting the user


A. -exec


B. -print


C. -ls


D. -ok

A. -exec

Chapter 7


What directory is used to store the kernel?


A. /boot


B. /


C. /etc


D. /Kernel

A. /boot

Chapter 7


Which directory is used to store temporary files?


A. /etc


B. /temp


C. /tmp


D. /

C. /tmp

Chapter 7


The FHS sets which standard


A. Which filesystem type should be used


B. Which services should be installed


C. Which directories should b used to hold specific files


D. Which partitions should be created

C. Which directories should b used to hold specific files

Chapter 7


The ___ command will search for files using a database for al files, which is generated daily


A. find


B. updatedb


C. locate


D. search

C. locate

Chapter 7


Which option to the find command will prompt the user to execute a command on each matching file?


A. -print


B. -ls


C. -exec


D. -ok

D. -ok

Chapter 7


Which directory is used to store user home directories


A. /homedir


B. /tmp


C. /home


D. user

C. /home

Chapter 7


Which directory is used to store essential libraries


A. /usr


B. /var


C. /lib


D. /bin

C. /lib

Chapter 7 Section 7.7


Which directory is used for the home directory of the root user


A. /


B. /var


C. /root


D. /home/root

/root


Wrong


A. /

Quiz


The ___ command will remove a directory and all o its contents

rm -r

The ___ command will search for files by searching the whole filesystem

find

Quiz


The ls command wil list which of the following


A. The user's home directory


B. The root directory


C. The current directory


D. Nothing

C. The current directory

Quiz


What command will indicate whether an item is a file or directory?

ls -l

Quiz


Which directory is used to store files specific to the host machine?


A. /etc


B. /var


C. /


D. /boot

A. /etc

the command echo b* will display what?

all files that begin with the letter b

Why would you press CTRL+C when executing a command?

To stop the scree from scrolling to fast through multiple screens

An absolute path always begins whith what character

/(forward slash)

The path variable will be used under hat situation?


A. The command is a function


B. A full path name to a command is provided
C. The command is not found


D. The command is an alias

C. The command is not found

which of the following will create a variable


A. var+(value


B.Var (value)


C. Var~(value


D.var=(value)

D.var=(value)

The ___ command display information about the linux kernel

D. uname

The cp command preserves what from the original file?





contents

What command send text to the terminal window?



echo

to view the contents of a text file on the terminal windows, use the ___ command

cat

In the command find /-name file1.txt, what does the / mean?

It starts the search at the root directory

The directory is used to store user' home directories is what

/home

The path /main_directoy/file is:

an absolute path

The top level directory on a linux system is represented as

/