[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Linux logs problem

Posted on 2014-08-02
Medium Priority
Last Modified: 2014-08-02
Hi All

                 i have a linux ehrl 6, when i type command "last" it seems that can not display the latest record, the latest record it shows only on Mar 2014, anyway that can show the latest last log ?

Question by:piaakit
LVL 14

Expert Comment

ID: 40236040
The last command displays many screens of data. Please scroll up the listing so you can see today's entries.
LVL 23

Accepted Solution

savone earned 2000 total points
ID: 40236111
Try using a combination of commands to see the newest last data.

The following will show you the newest last log, and allow you to hit the space bar to see more:
last | more


This will show you the last 10 entries in the last log (change 10 to anything you want):
last | head -10

Author Comment

ID: 40236313
this is useful, Thx !

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month19 days, left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question