Linux logs problem

Posted on 2014-08-02
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

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

    Accepted Solution

    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

    this is useful, Thx !

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now