V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
reaCodes
V2EX  ›  macOS

MacOS 系统 last reboot 信息写在哪个文件?如何清除重启信息?

  •  
  •   reaCodes · 2021-05-05 20:18:26 +08:00 · 1173 次点击
    这是一个创建于 1058 天前的主题,其中的信息可能已经有所发展或是发生改变。

    Snipaste_2021-05-05_20-15-55.png

    8 条回复    2021-05-06 10:20:41 +08:00
    lcdtyph
        1
    lcdtyph  
       2021-05-05 20:30:33 +08:00
    /var/run/utmpx 吧
    reaCodes
        2
    reaCodes  
    OP
       2021-05-05 20:33:14 +08:00
    @lcdtyph 貌似不是哎,打不开这个
    lcdtyph
        3
    lcdtyph  
       2021-05-05 21:16:32 +08:00 via iPhone
    @reaCodes
    里面的数据是二进制格式,不是文本文件
    reaCodes
        4
    reaCodes  
    OP
       2021-05-05 21:21:45 +08:00
    @lcdtyph 请问这个可以改动吗
    ladypxy
        5
    ladypxy  
       2021-05-05 21:23:26 +08:00
    删掉,然后新建一个
    reaCodes
        6
    reaCodes  
    OP
       2021-05-05 21:27:21 +08:00
    @ladypxy 请问具体删掉哪个文件
    JinTianYi456
        7
    JinTianYi456  
       2021-05-06 10:00:37 +08:00
    > last reboot|wc -l
    127

    我怎么有这么多? doge
    reaCodes
        8
    reaCodes  
    OP
       2021-05-06 10:20:41 +08:00
    @JinTianYi456 以前更新系统就会覆盖这个 last 信息,最近两个版本都没有覆盖
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5391 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 07:50 · PVG 15:50 · LAX 00:50 · JFK 03:50
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.