Re:I'm Done with Ubuntu
by shasts on Wednesday February 05, 2025 @11:00AM
(#42950420)
Current work machine. Running fine for 4.5 years.
You may also want `apt-listbugs` package to see the serious bugs before running upgrade.
[ Parent
| on HN ]
Re:I'm Done with Ubuntu
by kennysoona on Thursday February 06, 2025 @04:42AM
(#42960734)
Wouldn't running uptime be quicker than your stat command pipeline?
stat command gets the detail of when the OS was installed on the machine. uptime doesn't give that. I wanted to say that I have been using the same development machine at work for 4.5 years. "running" was not the right word for it, obviously.
Re:I'm Done with Ubuntu
by kennysoona on Thursday February 06, 2025 @02:29PM
(#42965647)
Makes sense, thanks.
I’m no AWK expert but I know just enough to tell when it’s the right tool for a particular job. Most pipelines consisting of `grep`, `sed` and `cut` commands can be replaced with a single AWK command. In this case:
stat / | awk '/Birth:/ { print $2; }'
For the line containing the `Birth:` regex, print the second field (by default, fields are delimited by spaces). Other lines that don’t match the regex are ignored.