[精讚] [會員登入]

[Linux] 如何能知道我是什麼時候安裝系統的?

linux想知道什麼時候裝系統的? 不必憑記憶。

分享完整連結 //n.sfs.tw/m10928

分享連結 [Linux] 如何能知道我是什麼時候安裝系統的?@精讚
(文章歡迎轉載,請尊重版權註明連結來源)
2024-01-18 17:42:16 By 張○○

linux想知道什麼時候裝系統的?

看檔案建立日期當然沒問題,但檔案的日期不一定正確,所以可以使用以下方法:

$ sudo rpm -qi basesystem | grep -i "install date"
Name        : basesystem
Version     : 10.0
Release     : 7.el7.centos
Architecture: noarch
Install Date: 西元2017年05月07日 (週日) 04時29分18秒  <== 這就是建立日期時間
Group       : System Environment/Base
Size        : 0
License     : Public Domain
Signature   : RSA/SHA256, 西元2014年07月04日 (週五) 08時46分57秒, Key ID 24c6a8a7f4a80eb5
Source RPM  : basesystem-10.0-7.el7.centos.src.rpm
Build Date  : 西元2014年06月27日 (週五) 18時37分10秒
Build Host  : worker1.bsys.centos.org
Relocations : (not relocatable)
Packager    : CentOS BuildSystem <http://bugs.centos.org>
Vendor      : CentOS
Summary     : The skeleton package which defines a simple CentOS Linux system
Description :
Basesystem defines the components of a basic CentOS Linux
system (for example, the package installation order to use during
bootstrapping). Basesystem should be in every installation of a system,
and it should never be removed.

其它的系統可以查出來

只是不確定這個時間有沒有經過時區校正過?

相關連結

https://linuxiac.com/how-to-find-linux-os-installation-date/

END
你可能有興趣

[Rocky9] 安裝node.js 18, node.js 20

原本的nodejs16在使用 quasar dev時出現錯誤,得升級成18版以上

[SSL] Could not read certificate from server.cer 的錯誤排除

在轉換ssl憑證時,出現無法讀取的錯誤,可是怎麼看憑證都很正常,該怎麼解決?

[Linux] 如何能知道我是什麼時候安裝系統的?

linux想知道什麼時候裝系統的? 不必憑記憶。

地圖填色的網站

我們想為國家填色不需要小畫家,這個網站能幫助你

[Linux] 列出所有目錄及所占空間的方法

想知道目錄下的所有目錄所占的空間大小?

[Linux] grep 排除特定字串

使用 -v 參數可以讓grep排除特定字串的方法