Linux Command Line Flashcards

1
Q

“Up arrow” or “down arrow”

A

Scrolls through previous commands

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

[username@machinename ]$

A

Shell prompt

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

Terminal emulator

A

Program that interacts with the shell

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

Shell

A

Passes keyboard commands to the OS

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

Terminal emulator

A

A program used to interact with the shell in a GUI environment

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

Graphical user interface (GUI)

A

Image driven Windows-like interface

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

“Bash”

A

The shell for most Linux distributions (“Born-again shell)

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

Shell prompt

A

What appears in the terminal when a prompt is ready to be entered

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

”#” vs. “$”

A

”#” is super user and “$” is root user

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

date

A

Command that shows date and time

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

cal

A

Command that shows the calendar of the current month

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

df

A

Command that shows the amount of free space on the drives [“Drivespace Free”]

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

free

A

Command that shows the amount of free memory

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

exit

A

Command that ends the terminal session by closing the terminal window

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

Hierarchical directory structure

A

The tree-like ordering of directories (files)

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

Root directory

A

The first directory in the file system

17
Q

Mounted

A

Attached storage devices

18
Q

System administrator

A

Person responsible for maintaining the system

19
Q

ls

A

Command that lists the contents of a directory

20
Q

cd

A

Command used to change directory (such as cd /user/bin)

21
Q

Absolute pathname

A

Gives the full path to a given directory

22
Q

Relative pathname

A

Path that starts with the working directory

23
Q

Current working directory

A

The directory in which currently located

24
Q

Parent directory

A

The directory above the current working directory

25
Q

Home directory

A

The directory arrived at when logging in

26
Q

pwd

A

Command that shows the current working directory (“print working directory”)

27
Q

cd ..

A

Changes directory to the parent directory

28
Q

cd .

A

Changes directory to whatever in the working directory

29
Q

What are filenames that begin with a period?

30
Q

Are Linux commands case sensitive?

31
Q

What should NOT be used in file names?

32
Q

What does the “cd” command by itself do?

A

Changes from working directory to home directory

33
Q

cd -

A

Changes to previous working directory

34
Q

cd~ user_name

A

Changes to the home directory of the user

35
Q

~

A

User’s home directory

36
Q

Can multiple directories be shown with the “ls” command?

A

Yes. Example:
ls ~ /usr

37
Q

What “ls” command options list all files, even hidden files?

38
Q

What “ls” command options list all files except . and .. ?

A

-A
–almost-all

39
Q

What “ls” command option gives the long format?