Terminal Flashcards

1
Q

Hot key for opening the terminal on Linux

A

CRTL + ALT + T

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

What do terminal commands begin with

A

$

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

When executing ls -F
A trailing / indicates what

A

A directory

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

When executing ls -F
A trailing @ indicates what

A

A link

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

When executing ls -F
A trailing * indicates what

A

An executable

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

When executing ls -F
Any names with no symbols indicates what

A

A file

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

How do you clear the terminal

A

Enter clear

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

What does command ls do

A

List information about the files

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

Dissect the following command into its component parts

$ ls -F /

A

$ is a prompt
ls is the command
-F is an option
/ is an argument

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

Terminal command to delete/remove a file

A

rm -ri

-r recursive option allows deletion of a directory and all of its contents

-i interactive option helps prevent the deletion of unintended contents by asking before deleting.

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

Terminal command to move a file

A

mv

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

Terminal command for counting the number of lines, words, and characters in a file

A

wc

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

What is a pipe in terminal commands

A

|
Used to run multiple commands together

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

What terminal commands allows you the see the contents of a file

A

cat or less

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

Terminal command to sort its inputs

A

sort

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

Terminal command to display the first lines of input and the command to display the last

A

head to display first
tail to display last

17
Q

What’s the difference between > and&raquo_space;

A

Command > [file] redirects a command’s output to a file, overwriting if one already exists

Command&raquo_space; [file] appends a command’s output to a file

18
Q

Command to create a new file directory

A

mkdir or touch