LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-23-2023, 04:51 AM   #1
MakeTopSite
Member
 
Registered: Jan 2021
Location: EU
Distribution: Ubuntu, openSUSE Leap & TW, Devuan, Debian
Posts: 257

Rep: Reputation: 3
Ubuntu 22.04: file time info is missing for some of them


Code:
ls -lt /var/log/ 
total 8628
-rw-r-----  1 root              adm               97601 Dec  23  2023 dmesg
-rw-------  1 root              root               2164 Dec  23  2023 boot.log
drwxr-x---  2 mysql             adm                4096 Dec  23  2023 mysql
-rw-------  1 root              root              39013 Dec  23  2023 boot.log.1
drwxr-xr-x  2 root              root               4096 Dec  23  2023 atop
-rw-r--r--  1 root              root               2275 Dec  23  2023 gpu-manager.log
-rw-r-----  1 syslog            adm              305734 Dec  23 09:13 kern.log
-rw-r-----  1 syslog            adm             1844481 Dec  23 09:13 syslog
-rw-r-----  1 syslog            adm               44518 Dec  23 09:13 ufw.log
-rw-r-----  1 syslog            adm               13712 Dec  23 09:09 auth.log
-rw-rw-r--  1 root              utmp              29952 Dec  23 08:55 wtmp
-rw-r--r--  1 root              root              56526 Dec  23 08:54 ubuntu-advantage.log
-rw-r--r--  1 root              root               2282 Dec  23 08:53 gpu-manager-switch.log
-rw-r--r--  1 root              root             112342 Dec  22 21:55 dpkg.log
Anyone know please why ?
 
Old 12-23-2023, 06:00 AM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,828
Blog Entries: 1

Rep: Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069
One possibility: Your uptime is short, and your hwclock is set to local time. Wait some hours, check again, and you should see those that had no time have since acquired times. Cause is timestamp was created in the future due to disparity between RTC and hwclock early in boot.

Last edited by mrmazda; 12-23-2023 at 06:04 AM.
 
1 members found this post helpful.
Old 12-26-2023, 06:15 AM   #3
MakeTopSite
Member
 
Registered: Jan 2021
Location: EU
Distribution: Ubuntu, openSUSE Leap & TW, Devuan, Debian
Posts: 257

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by mrmazda View Post
One possibility: Your uptime is short, and your hwclock is set to local time. Wait some hours, check again, and you should see those that had no time have since acquired times. Cause is timestamp was created in the future due to disparity between RTC and hwclock early in boot.
Yes valid time has appeared after some time.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Messed up some drives with GDISK and I'm afraid I've ruined them. Could use some help! rel1c Linux - Newbie 3 04-08-2019 05:38 PM
If we run' apt-get update' for first time ubuntu downloads some files.Can i use them? sumeet inani Ubuntu 13 01-06-2010 02:01 AM
Some <.pc> files are missing...how to rebuild them? me_and_linux Linux - General 3 10-05-2008 10:01 AM
Gnome/Nautilus issues Beagle-Tracker, file transfer info, replace file info, popup. Mysticle31 Linux - Software 0 01-08-2008 05:30 PM
Convert an info file(bash.info.gz) to a single html file Darwish Linux - Software 2 09-24-2005 06:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration