Shared Flashcard Set

Details

Linux+ Chapter 3
Linux+ Chapter 3
70
Computer Networking
Undergraduate 1
01/27/2013

Additional Computer Networking Flashcards

 


 

Cards

Term
What is an absolute pathway?
Definition
It is the full pathname of a certain file or directory starting from the root directory.
Term
What character refers to the root directory in Linux?
Definition
\ Character
Term
Where is a user placed when they log into a Linux system?
Definition
Home directory
Term
Where is a user's home directory?
Definition
Regular users usually have a home directory named after their user account under the /home directory (/home /sue)
Term
Where is the root user's home directory?
Definition
It is a home directory called root under the root directory of the system.
(/root)
Term
What metacharacter is used to refer to your own home directory?
Definition
~ metacharacter
Term
What two ways tell you the directory that you are currently in?
Definition
Observe the name at the end of the shell prompt or run the pwd command at a command-line prompt.
Term
What command is used to change directories?
Definition
cd (change directory) command
Term
What happens when you run the command to change directories without specifying the destination?
Definition
The cd command returns you to your home directory.
Term
How do you refer to another user's home directory?
Definition
use the ~ metacharacter
Term
What is a relative pathname?
Definition
The pathname of a target file or directory relative to your current directory in the tree.
Term
What character is used to refer to a parent directory?
Definition
Simply use two (..) dots.
Term
What command will move you two directories up in the directory tree?
Definition
cd ../..
Term
What symbol is used to refer to the current directory?
Definition
Use one dot (.) to refer to the current directory.
Term
What allows a user to type neough unique letters of a file or directory to find the intended file or directory being specified and automatically fill in the remainder of the appropriate information?
Definition
Tab-completion feature of the BASH shell.
Term
When using the feature that automatically completes files and directory names, what happens if there is more than one match?
Definition
The Tab-completion feature alerts you with a beep; pressing Tab again after this beep presents you with a list of possible files or directories.
Term
What are seven file types listed by the text?
Definition
-Text files
-Binary data files
-Executable program files
-Directory files
-Linked files
-Special device file
-Named pipes and sockets
Term
Most files on a Linux system that contain configuration information are what kinds of files?
Definition
Text files
Term
What is the name of a program after it has been executed in memory?
Definition
Processes
Term
What kind of files associate themselves with programs providing support such as common functions and graphics?
Definition
Binary data files
Term
Are directories considered files?
Definition
Yes
Term
When you create a directory, what exactly happens?
Definition
A file is placed on the hard disk to represent that directory.
Term
What are linked files?
Definition
They are files that have an association with one another; they can represent the same data or they can point to another file.
Term
What kind of file represents different devices on a system? Where are they typically located?
Definition
-Special device files
-/dev directory
Term
What is a named pipe?
Definition
They identify a channel that passes information from one process in memory to another.
Term
What kind of file allows a process on another computer to write a file on the local computer while another process reads from that file?
Definition
Socket file
Term
How long can Linux filenames be?
Definition
255 characters
Term
How are hidden files indicated?
Definition
Filenames that start with a period (.)
Term
Do Linux files require an extension
Definition
No
Term
What command is the most common method for displaying files in a directory?
Definition
ls command
Term
What option allows the display of the file type appended to the file name?
Definition
ls -F command
Term
What symbol indicates a linked file?
Definition
@ symbol
Term
What symbol indicates a subdirectory?
Definition
/ indicates a subdirectory
Term
What symbol indicates a named pipe?
Definition
(|) character indicates a named pipe
Term
What is a common convention for naming directories?
Definition
It is a common convention to name directories starting with an upper case letter.
Term
What command can be used to provide a long listing for each file in a certain directory? what is common alias for this command?
Definition
ls -lcommand
This known as ll command
Term
What command is used to display the file type of any file or files?
Definition
file command
Term
What metacharacter refers to all files in the current directory?
Definition
* metacharacter
Term
What option to the ls command will display hidden files?
Definition
ls -a
ls -aF command
Term
What wildcard metacharacter looks to match one character in a filename?
Definition
? wild metacharacter
Term
Which wildcard metacharacters are used to encapsulate a list of characters to look for in a filename?
Definition
[aegh]
[a-e]
Term
What metacharacter is used to indicate that you are not looking for a character or characters?
Definition
[!a-e]
Term
What is concatenation?
Definition
To display an entire text file on the terminal screen.
Term
What command will display an entire text file on the terminal screen?
Definition
cat command
Term
What option will display the line numbers when displaying the content of the file?
Definition
-n option
(cat -n)
Term
What command will display the contents of a text file in reverse order?
Definition
tac command
Term
What command displays the first 10 lines of a text file to the terminal screen, but can also take a numeric option specifying a different number of lines to display?
Definition
head command
Term
What command displays the final 10 line of a file, but can also take a numeric option specifying the number of lines to display on the terminal screen?
Definition
tail command
Term
What two commands are used to display a large text file in a page-by-page fashion by pressing the Spacebar or browse them line-by-line by pressing Enter?
Definition
more and less command
Term
What command displays the first page without returning you to the shell prompt, but instead displays a prompt at the bottom of the terminal screen that indicates how much of the file is displayed on the screen as a percentage of the total file size?
Definition
more command
Term
Pressing what character quits the more command completely without viewing the remainder of the file?
Definition
q character
Term
What command can browse the contents of a text file page-by-page by pressing the Spacebar or browse them line-by-line by pressing Enter and also allows the use of the cursor keys on the keyboard to scroll up and down the content of the file?
Definition
less command
Term
What metacharacter is the pipe metacharacter and allows the output of one command to be used as the input of another command, such as taking the output of ls -l and displaying it using the more command?
Definition
ls -l | more
Term
How do you typically view the contents of binary files?
Definition
You typically use the program that was used to create the file.
Term
What command is used to display the content of binary files in octal format?
Definition
od command
Term
The text wildcards developed to ease the searching of specific text information are called what?
Definition
regular expressions (regexp)
Term
Wildcard metacharacters are interpreted by______, whereas regular expressions are interpreted by _____.
Definition
-the shell
-a text tool program
Term
Wildcard metacharacters match characters______, whereas regular expressions match characters______.
Definition
-in filename on a Linux filesystem
-within text files on a Linux filesystem.
Term
Regular expression metacharacters are divided into what two different categories?
Definition
Common regular expressions
Extended regular expressions
Term
What command, whose name is short for global regular expression print, is used to display lines in a text file that match a certain common regular expression?
Definition
grep command
Term
What option is used with the command from the lastquestion to perform a serch that is not case sensitive?
Definition
-i option
grep -i
Term
What do you type to have grep search for lines that contain a specific and limited string of text, such as just the word "to"?
Definition
grep "to"
Term
What is one of the oldest and most popular visual text editors available for UNIX operating systems?
Definition
vi editor
Term
What are the two modes of the vi editor? In which mode will it open?
Definition
-command mode
-insert mode
Term
In which mode must you use the keyboard to perform functions, such as deleting text, copying text, saving changes to a file, and exiting the vi editor?
Definition
command mode
Term
What command or commands will move you to the correct mode for adding text to a document?
Definition
i l
a A
o O
Term
You must press what key to return to command mode to perform other functions via keys on the keyboard.
Definition
Esc key
Term
How do you quit the vi editor?
Definition
Press the : character (pressing shift and key simultaneously) to reach a :prompt where you can enter the command to exit.
Term
What command installs the Emacs editor?
Definition
yum installs emacs
Term
What is the text editor that works in the GUI? To which windows text editors is it similiar?
Definition
-gedit editor
-notepad
Supporting users have an ad free experience!