Linux Commands Flashcards

1
Q

Whoami

A

returns the current user name

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

pwd

A

finds the current system location

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

uname

A

gets information about the operating system

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

ls

A

list items in the directory and also shows the file permissions

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

ls -la -a

A

list all hidden files

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

uname -v

A

version

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

uname - a

A

all

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

uname -o

A

displays OS information

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

cd ~/

A

navigates to the home directory

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

rm/tmp/tmp*

A
  • anything in the temp directory delete it
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

ls -lR

A

cache files

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

ls -lR .cache/

A

clears cache

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

.bash_history

A

only contains the first lines of the history command

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

echo .bash_history

history -c

A

To hide the history

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

history

A

shows all commands you have used

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

chmod

A

setting permissions

17
Q

chown

A

changing ownership

18
Q

cd/home/[your user]/Desktop

A

to navigate to your desktop with a full path

19
Q

cd ../../../

A

return to the root directory

20
Q

ls -lR .cache/

A

Recursively list the contents of the .cache directory

21
Q

rm -rf .cache/*

A

delete all the contents without deleting .cache

22
Q

append

A

to append a file

23
Q

bye

A

terminate connection

24
Q

cd

A

change directory

25
cdup
go to parent directory
26
close
end session
27
delete
delete a file
28
get
receive a file
29
apt install vsftpd
To install FTP server
30
sed
a command in bash scripting that is used to replace words. the command runs a search and deletes and replaces words
31
set
allows users to change one variable or string to another.
32
run
It is used for any file that contains startup information for a command.
33
echo
prints the set content as an output to the user
34
cat
prints all content to the terminal