reaCodes
V2EX  ›  macOS

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

  •  
  •   reaCodes · May 5, 2021 · 1767 views
    This topic created in 1854 days ago, the information mentioned may be changed or developed.

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

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

    我怎么有这么多? doge
    reaCodes
        8
    reaCodes  
    OP
       May 6, 2021
    @JinTianYi456 以前更新系统就会覆盖这个 last 信息,最近两个版本都没有覆盖
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3278 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 14:12 · PVG 22:12 · LAX 07:12 · JFK 10:12
    ♥ Do have faith in what you're doing.