Hands On Final Flashcards

1
Q

add new user tfoster

A

useradd tfoster

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

how can you tell what directory you are in?

A

pwd

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

command to make a directory

A

mkdir

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

create an alias called lof that will list the student home directory and the date

A

lof=”ls /home/student;date”

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

copy the vsftpd.conf file from the /etc into the student home directory

A

cp /etc/vsftpd/vsftpd.conf /home/student

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

search for all the lines that contain the word “Allow” in the vsftpd.conf and direct the output into a file called Allows

A

grep “Allow” vsftpd.conf > Allows

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

set the permissions of the vsftpd.conf file to -rxwrxwrxw

A

chmod 777 vsftpd.conf

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

redirect the error message from ls /lowrider into a file called searching_lowrider

A

ls /lowrider 2>searching_lowrider

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

add a new group called brander_group

A

groupadd brander_group

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

change the group on vsftpd.conf to brander_group

A

chgrp brander_group vsftpd.conf

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

what is the group number of brander group?

A

cat /etc/group

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

using relative path change to etc directory

A

cd ../../etc

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

using absolute path change to student home directrory

A

cd /home/student

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

change to the bin directory

A

cd /bin

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

what is the user id number for student?

A

id student

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

find any files starting with vsftpd in the etc directory

A

find /etc -name vsftpd*

17
Q

display the last 20 lines of the passwd file that contain “/bin/bash”

A

tail -20 /etc/passwd | grep “/bin/bash”

18
Q

list all files including hidden files

A

ls -a

19
Q

rename ronhoward file auntbee

A

mv ronhoward auntbee

20
Q

delete the videos dirctory

A

rm -r Videos