reaCodes
V2EX  ›  macOS

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

  •  
  •   reaCodes · May 5, 2021 · 2166 views
    This topic created in 2031 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
    lcdtyph
    May 5, 2021
    1
    /var/run/utmpx 吧
    reaCodes
    reaCodes
    OP
    May 5, 2021
    2
    @lcdtyph 貌似不是哎,打不开这个
    lcdtyph
    lcdtyph
    May 5, 2021 via iPhone
    3
    @reaCodes
    里面的数据是二进制格式,不是文本文件
    reaCodes
    reaCodes
    OP
    May 5, 2021
    4
    @lcdtyph 请问这个可以改动吗
    Dragonish3600
    Dragonish3600
    May 5, 2021
    5
    删掉,然后新建一个
    reaCodes
    reaCodes
    OP
    May 5, 2021
    6
    @ladypxy 请问具体删掉哪个文件
    JinTianYi456
    JinTianYi456
    May 6, 2021
    7
    > last reboot|wc -l
    127

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