Commands Flashcards

1
Q

CD

A

Change directory

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

pwd

A

Print working directory

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

~

A

Used as alternative to user home directory path

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

How do you return to directory of user “sshd” from anywhere in directory structure?

A

cd ~sshd

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

How do you move to the root directory?

A

cd /

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

How do you move one directory up to a parent directory?

A

cd ..

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

tty

A

display terminal name you are currently running commands in

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

uptime

A

Display system current time;
how long it has been up;
num of users logged in;
avg num processes over last 1, 5 and 15 min

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

whoami

A

Display username executing command

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

id

A
Display user ID
username
group ID
secondary groups user is a member
SELinux security context
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

uname

A

Display info about system and kernel

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

Hostname

A

Display system hostname

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