Linux basics Flashcards

1
Q

how do you list file system objects?

A

ls

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

how do you print the current directory?

A

pwd

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

how do you change directories?

A

cd

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

how do you move files from one location to another?

A

mv

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

how do you copy files from one location to another?

A

cp

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

how do you delete files from the system?

A

rm

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

how can you display the amount of free disk space?

A

df

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

how can you estimate file space usage?

A

du

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

what is nano?

A

an easy to use command line text editor

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

what is the vi command?

A

an old command that supports modal editiing

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

what is the vim command?

A

an updated version of vi. supports normal, visual, insert and command line mode.

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

what is the pico command?

A

another text editor that provides less features and less complexity

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

what is the cat command?

A

used to create, view or concatenate files

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

what is the find command?

A

used to search the file system or directory.

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

what is the grep command?

A

used to search for the characters within the specified file using regular expressions

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

what does the su command do?

A

switch users

17
Q

what does the sudo command do?

A

used to switch to the root user, and runs commands with elevated privileges

18
Q

what is the useradd command for?

A

used to create a new user.

19
Q

what is the usermod command?

A

used to modify the users account

20
Q

what does the passwd command do?

A

used to change or reset the password of the users account.

21
Q

what is the groupadd command?

A

used to add a new group

22
Q

what is the groupmod command?

A

used to modify a group?

23
Q

what is the groupdel command?

A

used to delete a group

24
Q

what is the chmod command?

A

used to change the access permissions

25
Q

what is the chown command?

A

used to change the owner

26
Q

how can you install and remove software on Debian?

A

apt-get

27
Q

how do you install and remove software on a Red Hat distribution?

A

yum

28
Q

what is the dnf command?

A

updated version of the yum command

29
Q

what is a low level tool used to remove and install software on Red Hat?

A

rpm

30
Q

how can you display a list of currently running processes?

A

ps

31
Q

what is the top command?

A

task manager that is used to display information about CPU and memory.

32
Q

what is the ip command used for?

A

used for configuring network interfaces

33
Q

how do you test a hosts reachability on an IP based network?

A

ping

34
Q

what is traceroute?

A

used to display the route and transmit time across an IP based network

35
Q

how do you query the DNS to get information about the different DNS records?

A

dig

36
Q

how do you access and search online manuals?

A

man

37
Q

when is –help used?

A

written after the name of a command to give information on how to use a specific command.

38
Q

what is Samba?

A

cross platform file sharing protocol that supports the SMB