Login/Session Tracking Flashcards

(13 cards)

1
Q

What does the who command do?

A

Shows currently logged-in users.

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

What details does who display?

A

Username, terminal (TTY), login time, and source IP or hostname.

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

Example output for who?

A

alice pts/0 2025-04-24 10:23 (:0); bob pts/1 2025-04-24 10:45 (192.168.1.10)

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

Why is who useful?

A

Provides quick snapshot of active user sessions.

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

What does the w command do?

A

Gives detailed view of logged-in users and their activity.

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

What details does w display?

A

System uptime, load average, user idle time, and running processes.

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

Why is w useful?

A

Monitoring real-time user behavior and system performance.

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

What does the lastlog command do?

A

Displays last login time for every user on the system.

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

Why use lastlog?

A

Helps identify inactive accounts or accounts that never logged in.

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

What is lastlog good for?

A

Auditing and cleanup of unused accounts.

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

What does the last command do?

A

Shows full login history for users, including reboots and shutdowns.

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

What details does last display?

A

Session start/end times and system events.

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

Why is last useful?

A

Ideal for deep historical audits and security investigations.

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