Linux File Mangement Flashcards

1
Q

Which Linux command displays the current working directory?

A

pwd (print working directory) – The pwd command is used to display the name of the current working directory in the Linux system using the terminal.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which Linux command displays a listing of all files and subdirectories in the current directory?

A

ls command - list files or directories in Linux and other Unix-based operating systems. Just like you navigate in your File explorer or Finder with a GUI, the ls command allows you to list all files or directories in the current directory by default, and further interact with them via the command line.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which Linux command navigates between directories?

A

The cd (change directory) command moves you into a different directory. To move out of that directory, use cd along with the path to some other location, or use double dots to backtrack, or return home to navigate from there.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which Linux commands copy and move data?

A

cp command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which Linux command deletes data?

A

The rm command removes the entries for a specified file, group of files, or certain select files from a list within a directory. User confirmation, read permission, and write permission are not required before a file is removed when you use the rm command.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which Linux command can you use to view the contents of files?

A

cat command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which Linux command can you use to edit a text file?

A

vim command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which Linux commands manage file and folder ownership and permissions?

A

chmod u represents permissions for the user owner, chmod g represents other users in the file’s group, chmod o represents other users not in the file’s group. For all users, use chmod a . Maybe you want to change the user owner itself. You can do that with the chown command.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

man utility_name

A

A utility used at the shell prompt to view the syntax along with the options that can be used.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

A system that organizes a computer’s files on a hard drive.

A

File system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

One of the oldest Linux file systems.

A

Second Extended Filesystem (ext2)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The fourth-generation file system in the ext file system family.

A

Fourth Extended Filesystem (ext4)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Network File System (NFS)

A

A distributed file system used for file sharing on Unix and Linux.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

A file system used for virtual memory.

A

swap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

A FAT32 file system for Linux.

A

Virtual File Allocation Table (VFAT)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

High performing and flexible file system.

A

Extended File System (XFS)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

A Linux file system with copy-on-write functions. Sometimes referred to as butter FS or better FS.

A

B Tree File System (Btrfs)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Linux

A

open-source operating system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

distribution

A

create your own custom version of Linux

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

popular Linux distributions

A

openSUSE, Fedora, and Ubuntu

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

where you can click on things with a mouse and make selections to bring up applications.

A

graphical interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

(known as shell) allows you to enter commands at the shell prompt to manage the system. The shell is often referred to as the bash (Bourne-again shell) shell

A

command line interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

most common shells names

A

csh, zsh, and bash

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

root user (linux)

A

superuser (linux)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

saves commands entered at the shell prompt.

A

Command history

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

tries to guess a command you are entering and will complete the command for you if you press the TAB key.

A

command completion feature

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Displays the path of the current directory on the screen.

A

pwd (print working directory)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Displays or changes IP configuration settings.

A

ip

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Displays a list of files and subdirectories that exist within a directory.

A

ls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Displays a brief summary of how to use the command.

A

–help

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Starts a new Bourne-again shell (bash) session.

A

bash

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

Displays the manual page for a command.

A

man

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

Displays more extensive documentation about the command.

A

info

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

Changes directories in the file system.

A

cd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

Copies files and directories from one location in the file system to another.

A

cp

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

Moves and/or renames files and directories from one location or name to another.

A

mv

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

Deletes files and directories from the file system.

A

rm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

Displays the contents of a text file on the screen.

A

cat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

Displays the contents of a text file on the screen, pausing the output one screen at a time.

A

less

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

Displays the first few lines of a text file on the screen.

A

head

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

Displays the last few lines of a text file on the screen.

A

tail

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

Edits the contents of a text file. Current Linux systems use vim (an improved version of vi). Executing the vi command will launch the vim executable.

A

vi/vim

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

Allows you to switch user accounts.

A

su

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

Shuts down or reboots the system in a secure manner.

A

shutdown

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

-stores data in a standard directory and file hierarchy.
-supports a 2 TB maximum file size.
-can store up to 4 TB in size.
-File names can be 255 characters long.
-supports Linux users, groups, and permissions.
-does not use journaling (which is used in most modern file systems). As a result, recovery takes a long time if the system shuts down abruptly.
-oldest Linux file systems still available

A

Second Extended Filesystem (ext2)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

-Before committing a transaction to a storage device, this system records the transaction to the journal and marks it as incomplete.
-After the disk transaction is complete, the file system marks the transaction as complete in the journal.
-Journaling allows this system to track of the most recent file transactions and indicates if they were completed.
-Journaling allows this system to recover much more quickly than ext2 in the event of an unclean system shutdown.
-updated version of ext2 that supports journaling

A

Third Extended Filesystem (ext3)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

-Supports file sizes up to 16 TB and disk sizes up to 1 exabyte (EB).
-Allows for up to four billion files in the file system.
-Uses checksums to verify the integrity of the journal file.
-includes all features found with ext2 and ext3

A

Fourth Extended Filesystem (ext4)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

used as virtual memory (the portion of the hard disk used to temporarily store portions of main memory) by the operating system.

A

swap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

virtual Linux file system that provides access to individual data and audio tracks on compact discs (CDs). A compact disc mounted with the CDfs driver appears as a collection of files, each representing a single track.

A

Compact Disc File System (CDfs)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

distributed file system protocol that allows a user on a client computer to access files over a computer network much like local storage is accessed.

A

Network File System (NFS)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

-FAT32 file system for Linux
-Does not support journaling.
-Includes long name support.
-Requires support for VFAT to be compiled into the kernel for the system to recognize the VFAT format.

A

Virtual File Allocation Table (VFAT)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

-developed for the Silicon Graphics IRIX operating system
-Offers smooth data transfers.
-Provides journaling.
-Can reside on a regular disk partition or on a logical volume.

A

Extended File System (XFS)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

-Linux file system that uses a copy-on-write file system.
-Using copy-on-write technology, this system provides several key features not found in earlier file systems: storage pools and snapshots

A

B Tree File System (Btrfs)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

Btrfs allows you to create storage pools from the storage devices in the system.
From the storage pool, you can allocate space to specific storage volumes.
You mount storage volumes at mount points in the file system.

A

Storage pools

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

the snapshot functionality provided by Btrfs protects data.
You can configure it to take snapshots of data at specified intervals and save it on separate media.
If a file gets lost or corrupted, you can restore a previous version of the file from a snapshot.

A

snapshots

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

Changes the user or group that owns a file or directory.

A

chown

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

Changes the group that owns a file or directory.

A

chgrp

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

Copies file system data using records. It can copy files, directories, partitions, or even entire hard disks.

A

dd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

-opens a Bourne-Again Shell (Bash) session.
-standard shell used in most Linux computers.
-uses commands similar to a UNIX shell and includes: Command completion, Command history, and Improved arithmetic functions

A

bash

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

displays the IP addresses and subnet masks that are assigned to each network interface on a Linux system.

A

ip or ifconfig

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

displays the manual page for the cat command. This command is very similar to the help screen, but provides more detail.

A

man cat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

instructs the system to shut down and power down.

A

shutdown -h

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

specifies when to perform the shutdown operation. m is the amount of time (specified in minutes).

A

shutdown +m

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

instructs the system to reboot after the shutdown.

A

shutdown -r

40
Q

powers off the machine.

A

shutdown -p

40
Q

command displays the present working directory

A

pwd

40
Q

what command is this?
shut down and power down the system 10 minutes after displaying the message to all users.

A

shutdown -h +10

40
Q

what command is this? power down the machine without properly shutting it down. The 10 is missing a + sign before it.

A

shutdown -p 10

40
Q

what command is this? reboot (not shut down) the machine 10 minutes after displaying the message to the users.

A

shutdown -r +10

40
Q

what command is this? incorrect syntax, and the 10 is missing the + sign.

A

shutdown 10 -h

40
Q

modifies the permissions on a files and defines who can access the file and the mode by which the file can be accessed.

A

chmod

40
Q

command is used to search text.

A

grep

40
Q

command list the contents of a directory.

A

ls

40
Q

command lists information on the running processes on a Linux computer.

A

ps

41
Q

short for “superuser do” or “substitute user do.” This command allows a user with proper permissions to execute a command as another user, such as a superuser.

A

sudo

41
Q

command so that the system will switch you to the root user and require you to enter the root password. You will then be able to perform tasks that require root user administrative privileges. After completing these tasks, you should log out as the root user and return to the standard user account.

A

su -

41
Q

able to type new text in the file and have existing text that comes after the cursor pushed down.

A

Insert Mode

41
Q

existing text that comes after the cursor would be replaced when you typed new text.

A

Replace Mode

41
Q

enter commands to save the file and exit, exit the file without saving, save the file with a new name, or perform similar functions.

A

Command Line Mode

41
Q

can perform many useful editing tasks, such as cut, paste, copy, and more.

A

Command Mode,

41
Q
A
41
Q
A
41
Q
A
41
Q
A
41
Q
A
41
Q
A
41
Q
A
41
Q
A
41
Q
A
41
Q
A
41
Q
A
41
Q
A
41
Q
A
42
Q
A
42
Q
A
42
Q
A
42
Q
A
42
Q
A
42
Q
A
42
Q
A
42
Q
A
42
Q
A
42
Q
A
43
Q
A
43
Q
A
43
Q
A
44
Q
A
44
Q
A
44
Q
A
44
Q
A
44
Q
A
44
Q
A
44
Q
A
44
Q
A
44
Q
A
44
Q
A
44
Q
A
44
Q
A
44
Q
A
45
Q
A
45
Q
A
45
Q
A
45
Q
A
45
Q
A
45
Q
A
45
Q
A
45
Q
A
45
Q
A
45
Q
A
45
Q
A
45
Q
A
45
Q
A
45
Q
A
45
Q
A
45
Q
A
45
Q
A
45
Q
A
45
Q
A
45
Q
A
45
Q
A
45
Q
A
45
Q
A
46
Q
A
46
Q
A
46
Q
A
46
Q
A
46
Q
A
46
Q
A
46
Q
A
46
Q
A
46
Q
A
46
Q
A
46
Q
A
46
Q
A
47
Q
A

bash (linux command)

48
Q

-opens a Bourne-Again Shell (Bash) session.
-standard shell used in most Linux computers.
-uses commands similar to a UNIX shell and includes: Command completion-Command history-Improved arithmetic functions

A

bash (linux command)

49
Q
A

ip or ifconfig

50
Q

displays the IP addresses and subnet masks that are assigned to each network interface on a Linux system.

A

ip or ifconfig