How to use the last command: 2-Minute Linux Tip

How to use the last command: 2-Minute Linux Tip

Assessment

Interactive Video

Architecture, Information Technology (IT)

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial explains the 'last' command, which displays recent login information in reverse order. It covers how to view logins for specific users and discusses the details stored in the VAR log W temp file, such as usernames, dates, times, terminals, and IP addresses. The tutorial also explores login patterns, including dynamic IP addresses, and how long users spend on the system. Additionally, it explains the rotation of W temp files based on size or age, with settings found in the Etsy log. Rotate dot DW temp file.

Read more

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'last' command primarily display?

Current active users

All system errors

Recent logins in reverse order

Recent logins in chronological order

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of information is NOT stored in the Wtmp file?

System errors

Login times

IP addresses

Usernames

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you view login details for a specific user using the 'last' command?

By supplying the username as an argument

By using the '-u' option

By editing the Wtmp file directly

By using the '-a' option

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What might cause different IP addresses to appear for the same user?

The system has a dynamically assigned IP address

The user changes their IP address manually

The user logs in from different devices

The system is experiencing a network error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What determines when a Wtmp file is rotated?

The system's uptime

The file size or age

The number of users logged in

The number of login attempts