NetWiki

I can make net work

User Tools

Site Tools


linux:start

This is an old revision of the document!


Linux

Info on that horrible operating system that's a million times better than Micro$oft Windoze. Why do I say it's horrible? Mostly because I don't spend enough time there to know how to do things and figuring it out is often a PITA.


Commifying a number in Linux

grep MemTotal /proc/meminfo | tr -s ' ' | cut -d ' ' -f 2 | xargs printf "%'d\n" 

Bonus: That particular command tells you how much memory is installed. I think.


Pad IPs to Make Them Sortable

echo 172.16.16.112/30 | awk -F '[./]' '{printf "%03d.%03d.%03d.%03d/%03d\n", $1,$2,$3,$4,$5}'
172.016.016.112/030

linux/start.1695673826.txt.gz · Last modified: 2023-09-25 20:30 by dave

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki