Persistent BASHRC
If you need your BASHRC to always contain certain enteries, but they always get cleared upon reboot or upgrade, then this is for you. First move all of your enteries to aRead More…
If you need your BASHRC to always contain certain enteries, but they always get cleared upon reboot or upgrade, then this is for you. First move all of your enteries to aRead More…
PRE-REQ: familiar with chmod and chown & user/group/other & read/write/execute This article will not have many commands, it will just be on concepts. There are plenty of technical command articles all over:Read More…
Lets say you want to run a sed command, but you want it to save a backup before editing a file. Here is how you do that: sed -i.bak -e 'SED EXPRESSIONRead More…
Note to self 2022-09-15: if you are looking for a “firmware analyzer” or a tool that finds magic file headers at all locations inside of a file (and looks for embedded files).Read More…
When you run apt-get update, it keeps a list of everything in /var/lib/apt/lists/ inside the files that end with “_Packages”. So you can parse the files for lines that begin with theRead More…
If you see ‘?’ mark files with ‘ls’ or ‘find’, most likely they are different lang chars (chinise,hebrew,japanes,russian) Im not just talking about ?, also im talking about chars like this é ForRead More…
There are 2 ways to RAID10 with mdadm. With 1 layer of mdadm or with 2 layers of mdadm. I would prefer the 1 layer of mdadm (meaning using mdadm level 10Read More…
A folder flattening script for your files. Takes files and folders in a location & makes the folder tree less deep (if files have same name it will rename a file so thatRead More…
# echo "thislinehas%allovertheplace%%asdf%%" | awk '{print $0}' thislinehas%allovertheplace%%asdf%% Really quick… the above and below commmand simply tells awk to print the inputed line, so that the output should look as if itRead 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…