Linux Commands Flashcards
1
Q
List existing content of the current directory
A
ls
2
Q
Change the directory
A
cd …
3
Q
print the current working directory and full path
A
pwd
4
Q
create a file in the current folder
A
touch …
5
Q
command to edit a text file in linux
A
nano [filename]
vi, vim, touch are also other ways
6
Q
display the contents of a file
A
cat
7
Q
create a copy of a file
A
cp [filename] [new filename]
8
Q
delete or remove a file
A
rm [filename]
9
Q
find your ip address
A
ip a or ip addr
10
Q
Display the current networks established connections
A
netstat