Command Line Magic on Nostr: It's tough to read long numbers, especially the ones we see in data sizes these days. ...
It's tough to read long numbers, especially the ones we see in data sizes these days. What can help is to use the -h option that is provided by some of the GNU utilities. For instance, long list files with human readable sizes:
ls -lh
Show filesystem data with human readable sizes:
df -h
Summarize disk use of directories:
du -sh */
Sort that output by the human readable sizes:
du -sh */ | sort -h
Published at
2024-01-16 18:59:17Event JSON
{
"id": "6b9402c8807f98ae3bda62479aff3148ca2a399406d40e2953bee28e7cec9942",
"pubkey": "f5f1075f3fad1755cef1ef9024d53eafd24ea460383319ffb9949f3b6a3cde1a",
"created_at": 1705431557,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/climagic/statuses/111767162563069868",
"activitypub"
]
],
"content": "It's tough to read long numbers, especially the ones we see in data sizes these days. What can help is to use the -h option that is provided by some of the GNU utilities. For instance, long list files with human readable sizes:\nls -lh\n\nShow filesystem data with human readable sizes:\ndf -h\n\nSummarize disk use of directories:\ndu -sh */\n\nSort that output by the human readable sizes:\ndu -sh */ | sort -h",
"sig": "bafe84fa134c27bdf22f58bf9ee48b10bec6398899f744514b4931ca432612265e2af09eba0195b983813e0beedbbc0f9f40f92bdfa8c27df78836fdcae282ea"
}