this post was submitted on 16 Jul 2023
8 points (90.0% liked)
linuxmasterrace
2166 readers
1 users here now
A community for Linux enthusiasts.
May your htop stats be low and your beard grow long
Welcome to !linuxmasterrace@feddit.de former r/linuxmasterrace members and existing Lemmyverse citizens: Feel free to join the newly created !linuxmasterrace@feddit.de community.
Let’s make the full transition to the decentralized Fediverse!
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Its Linux, everything is a file, this means your uptime is also stored in some (possibly ghost file) that you can access through the filesystem and change it
By ghost file do you mean something in /tmp? Also that seems fun, where can I find that file?
@muhyb I don't know what a ghost file would be but you're probably looking for /proc/uptime. Which you can read but obviously not write to.
@cy_narrator
Oh, I guess they implied I edited that file. Also I checked /proc/uptime and indeed it is read-only. Thanks for the info.
Ooh
By ghost files I meant files inside /proc /sys /dev that does not exist when OS is not booted