Linux Kahoots Flashcards

1
Q

What is /tmp the name of?

Directory
Hidden file
Configuration file
Read-only file

A

Directory

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

What is the su command used for?

To create a super-user
To shut down the system
To switch users
To run commands as a simple user

A

To switch users

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

Which command changes the file permissions

set
run
echo
chmod

A

chmod

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

Who created Linux?

Dennis Ritche
Richard Stallman
Linus Torvalds
Steve Jobs

A

Linus Torvalds

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

A dollar sign ($) represents what type of user?

a regular user
a super user
a root user
a supercalifragilisticexpialidioucious user

A

a regular user

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

Which the command will output only the first five lines of the text.txt file?

less text.txt
tail -n 5 text.txt
head text.txt
head -n 5 text.txt

A

head -n 5 text.txt

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

The command ‘grep -i’ will do the following

treat upper and lower case as different while matching the search string
treats upper and lower case as equivalent while matching the search string
only return upper case results while matching the search string
only return lower case results while matching the string

A

treats upper and lower case as equivalent while matching the search string

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

Which UID denotes the roote account?

0
1
99
100

A

0

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

Which command can be used to add a user to a group as a secondary group member?

chage
ulimit
groupmod
usermod

A

usermod

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