Linux Flashcards

1
Q

Displays the path of the current directory on screen.

A

pwd (print working directory)

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

Displays the IP address and the subnet mask assigned to this system.

A

ifconfig

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

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

  • a (displays all files, including hidden files)
  • l (displays a detailed (long) listing of directory contents)
  • R (displays the contents of the directory and all of its subdirectories)
A

ls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
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
5
Q

Starts a new Bourne-again shell session.

A

bash

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

Displays the manual page for a command. Use Q key to quit and go back to the shell prompt.

A

man

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
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
8
Q

Changes directories in the file system.

A

cd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
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
10
Q

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

A

mv

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

Deletes files and directories form the file system.

A

rm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
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
13
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
14
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
15
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
16
Q
Edits the contents of a text file. Uses four different operating modes:
Command mode
Command-line mode
Insert mode
Replace mode
A

vi

17
Q

Allows you to switch user accounts.

A

su

18
Q

Shuts down or reboots the system in a secure manner.
+m (specifies when to perform the shutdown operation. m is the amount of time in minutes)
-h (instructs the system to shut down and power down)
-r (instructs the system to reboot after the shutdown)
-p (powers off the machine)
message (specifies a message that is sent to all users that accompanies the standard shutdown notification.

A

shutdown