this post was submitted on 16 Jul 2023
8 points (90.0% liked)

linuxmasterrace

2050 readers
1 users here now

A community for Linux enthusiasts.

May your htop stats be low and your beard grow long

Welcome to [email protected] former r/linuxmasterrace members and existing Lemmyverse citizens: Feel free to join the newly created [email protected] community.

Let’s make the full transition to the decentralized Fediverse!

founded 1 year ago
MODERATORS
 

I’m moving my posts from Reddit to Lemmy before delete them.

This post is from 2022-04-16.

top 9 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 1 year ago (1 children)

Your system has been up for a full year, I don't know to be amazed or shocked.

[–] muhyb 1 points 1 year ago

It's a pi-hole server so maybe neither? :)

[–] [email protected] 1 points 1 year ago

Update your kernels, kids.

[–] [email protected] 1 points 1 year ago (1 children)

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

[–] muhyb 1 points 1 year ago (2 children)

By ghost file do you mean something in /tmp? Also that seems fun, where can I find that file?

[–] [email protected] 3 points 1 year ago (2 children)

@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

[–] muhyb 2 points 1 year ago

Oh, I guess they implied I edited that file. Also I checked /proc/uptime and indeed it is read-only. Thanks for the info.

[–] [email protected] 1 points 1 year ago

By ghost files I meant files inside /proc /sys /dev that does not exist when OS is not booted