Linux Commands Flashcards

1
Q

List existing content of the current directory

A

ls

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

Change the directory

A

cd …

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

print the current working directory and full path

A

pwd

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

create a file in the current folder

A

touch …

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

command to edit a text file in linux

A

nano [filename]

vi, vim, touch are also other ways

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

display the contents of a file

A

cat

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

create a copy of a file

A

cp [filename] [new filename]

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

delete or remove a file

A

rm [filename]

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

find your ip address

A

ip a or ip addr

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

Display the current networks established connections

A

netstat

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