🐧 How to find out the installation date of Linux OS?  – IT is good

🐧 How to find out the installation date of Linux OS? – IT is good

To find out the installation date of your current Linux operating system, use this simple command.

$ ls -alct /|tail -1|awk '{print $6, $7, $8}'

Next, let’s see how to display the creation date of the file system.

Use the following example to display the creation time of the file system.

$ ls -alct --time-style=+"%b %d %Y %H:%M:%S" /|tail -1|awk '{print $6, $7, $8, $9}'

This can be a very useful tip for Linux.

On Windows, use the systeminfo command to get the original installation date.

👥 How to check your computer’s uptime in Windows

PS C:\Users\Intel i5> systeminfo | find /i "install date"
Original Install Date: 18/12/2021, 6:15:05 AM

Another way to get the creation date of a file system in Linux is to use the tune2fs utility.

It can output a lot of very useful information about the file system.

~$ sudo tune2fs -l /dev/sdb1 | sed -sn 28p
Filesystem created: Mon Aug 31 13:50:54 2020

see also:

HOWTO,Linux,Windows,

#find #installation #date #Linux #good

Leave a Comment

Your email address will not be published. Required fields are marked *