Chapter 3: Linux Files and Directories

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/53

flashcard set

Earn XP

Description and Tags

Fill-in-the-blank practice cards covering Linux directory trees, file types, shell wildcards, text viewing/searching commands, regular expressions, and text editors.

54 Terms

1
New cards

The top-level directory in the Linux filesystem hierarchy is called the __________ directory.

root

2
New cards
<p>Unlike Windows, the Linux filesystem structure depicted here stems from a single root directory represented by the __________ character.</p>

Unlike Windows, the Linux filesystem structure depicted here stems from a single root directory represented by the __________ character.

slash (/)

3
New cards

A(n) __________ pathname starts with a slash (/) and specifies the full path starting from the root directory.

absolute

4
New cards

A(n) __________ pathname does NOT start with a slash (/) and specifies a location relative to your current working directory.

relative

5
New cards

The metacharacter ~ is used to represent a user's __________ directory.

home

6
New cards

In relative directory paths, two dots (..) refer to the __________ directory.

parent

7
New cards

In relative directory paths, a single dot (.) represents the __________ directory.

current

8
New cards

The command used to display the current working directory is __________.

pwd

9
New cards

The command used to change directories in Linux is __________.

cd

10
New cards

If a typed command or path is ambiguous, pressing the __________ key twice in BASH will list all matching possibilities.

Tab

11
New cards

In long list output (ls -l), standard text files are indicated by the file type symbol __________.

    -
12
New cards

In long list output (ls -l), directory files are indicated by the file type character __________.

d

13
New cards

In long list output (ls -l), linked files are represented by the file type character __________.

l

14
New cards

A temporary connection sending information from one process in memory to another on the same system is a __________ file.

named pipe

15
New cards

A __________ file is a named pipe that connects processes across two different computers.

socket

16
New cards

Linux filenames can contain up to __________ characters.

255

17
New cards

Hidden files in Linux have filenames that start with a __________.

dot (.)

18
New cards

The ls option __________ classifies filenames by appending an indicator symbol such as / for directories or * for executable programs.

-F

19
New cards

The ls option __________ provides a long listing format displaying permissions, ownership, file size, and modification time.

-l

20
New cards

To view all files including hidden files, use the ls option __________.

-a

21
New cards

To recursively list filenames in a directory and all of its subdirectories, use the ls option __________.

-R

22
New cards

To sort directory listings by file size with the largest files listed first, use the ls option __________.

-S

23
New cards

To sort directory listings by modification time with newest files listed first, use the ls option __________.

-t

24
New cards

The command used to analyze and display the file type of a specified filename is __________.

file

25
New cards

The command that displays additional details about a file such as inode numbers and access/modification timestamps is __________.

stat

26
New cards

The command that displays directory tree structures graphically in terminal output is __________.

tree

27
New cards

The shell wildcard metacharacter * matches __________ or more characters in a filename.

0

28
New cards

The shell wildcard metacharacter ? matches exactly __________ character in a filename.

1

29
New cards

The shell wildcard metacharacter pattern [!a-e] matches 1 character in a filename provided that character is NOT __________.

an a, b, c, d, or e

30
New cards

The cat command stands for __________ and displays the entire contents of a text file to the terminal screen.

concatenate

31
New cards

The command __________ displays the contents of a text file starting from the last line and ending with the first line.

tac

32
New cards

By default, the head command displays the first __________ lines of a text file.

10

33
New cards

By default, the tail command displays the last __________ lines of a text file.

10

34
New cards

The page-by-page text viewing command that allows navigating using cursor arrow keys is __________.

less

35
New cards

The command __________ searches for and displays text characters contained within a binary file.

strings

36
New cards

The command od displays the contents of a file in __________ format.

octal

37
New cards

To view file contents in hexadecimal format using the od command, pass the __________ option.

-x

38
New cards

Wildcard metacharacters are interpreted by the __________, whereas regular expression metacharacters are interpreted by text tool programs.

shell

39
New cards

In regular expressions, the ^ character matches target characters if they are the __________ characters on the line.

first

40
New cards

In regular expressions, the $ character matches target characters if they are the __________ characters on the line.

last

41
New cards

In extended regular expressions, the + metacharacter matches __________ or more occurrences of the previous character.

1

42
New cards

In extended regular expressions, the ? metacharacter matches __________ or 1 occurrences of the previous character.

0

43
New cards

The acronym grep stands for __________ regular expression print.

global

44
New cards

The egrep command is equivalent to running grep with the __________ option.

-E

45
New cards

To perform a case-insensitive search using grep, use the __________ option.

-i

46
New cards

The command __________ searches files for string patterns without interpreting regular expressions.

fgrep

47
New cards

The vi editor is described as a __________ editor because it operates in two distinct modes: Command mode and Insert mode.

bimodal

48
New cards

In vi, pressing the __________ key returns the user from Insert mode back to Command mode.

Esc

49
New cards

In vi Command mode, pressing __________ deletes the entire line starting where the cursor is positioned.

dd

50
New cards

In vi Command mode, pressing __________ copies one whole line starting from the cursor line into temporary memory.

yy

51
New cards

In vi Command mode, pressing __________ pastes copied or deleted text underneath the current line.

p

52
New cards

To save changes and quit the vi editor, enter __________ in command mode.

:wq

53
New cards

The text editor GNU Emacs stands for __________ MACroS.

Editor

54
New cards
<p>The graphical text editor shown running in the Fedora desktop interface is __________.</p>

The graphical text editor shown running in the Fedora desktop interface is __________.

gedit