Terminal Flashcards

1
Q

pwd

A

print working directory

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

cd

A

change directory

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

.

A

my current directory

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

..

A

my parent directory

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

echo

A

outputs any arguments to the console

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

ls

A

list contents in this directory

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

cd .

A

change to my current directory

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

cd ..

A

change to my parent directory

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

the [tab] key

A

auto-completes commands as well as directory and file names

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

touch [file1]

A

create a new file called file1

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

cat [file1]

A

outputs the file contents to the terminal

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

mkdir [dir1]

A

create a new directory called dir1

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

mv [file1] [file2]

A

rename file1 to file2

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

mv [file1] /[dir1]

A

move file1 to the dir1 folder

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

cp [file1] [file2]

A

duplicate file1 to a file called file2

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

cp [file1] /[dir1]

A

copy file1 to the dir1 folder

17
Q

rm file1

A

remove the file named file1

18
Q

ls -l

A

list contents in a detailed view

19
Q

ls -a

A

list contents including hidden files and directories