AWK – convert BYTES to HUMAN READABLE
Use this convertbytes2human function, If you want to convert a number of bytes (for example 43252) or an exponential number number of bytes (such as 1.03e5) to a human readable size. NOTE: sinceRead More…
Use this convertbytes2human function, If you want to convert a number of bytes (for example 43252) or an exponential number number of bytes (such as 1.03e5) to a human readable size. NOTE: sinceRead More…
# Awk is missing ABS – absolute value – so we have to make it. # if you want to do: y=abs(x) # you cant just write the above as abs(x) isRead More…
This will convert a second into a more feasible number split up into parts of hrs/min/sec (or if you want also days and weeks and years) Provided 5 configurations of this converterRead More…
Solaris “ifconfig” and “ifconfig -a” miss out on interesting values like “error” & “drop” etc. netstat and ndd are its replacement in that case # see common stats – usually seen withRead More…
NOTE: The “rename” tool im using is the perl rename tool sometimes called “prename”, “rename.pl”, or simply rename (sidenote, there is also another similar tool called “rename” tool from a package calledRead More…
NOTE ABOUT UNITS BELOW: I incorrectly state they are called Kilobytes, but in reality they are kibibytes. I have the short hand notation correct. A KiB is 1024 bytes. A real KilobytesRead More…
This article is sectioned off weird, I apologize for that. But the information is still very good: * To find out how to download a full Normal website (or full domain ifRead More…
If you want to convert a program to hexdecimal or binary out, here is two programs to do so. First get your pre-reqs: apt-get update apt-get install python apt-get install pip pipRead More…
As you hopefully know apache2 will give you a filebrowser that looks terrible if it cant find an index page (index.html, index.php, or whatever you set it as). This is useful forRead More…
SSHFS takes SSH and shows you files, via a virtual/pseudo Filesystem (called fuse). so you can mount an SSH servers directory on a client Normally you would connect like so: sshfs user1@www.server.com:/home/user1/ /mntRead More…