Writing Partition Tables with SGDISK (GPT) and SFDISK (MBR) – cheatsheet
SGDISK: (Use this for GPT drives of any size) # — sgdisk — # -p prints partition table (on the very left it will print before operations, on the very right itRead More…
SGDISK: (Use this for GPT drives of any size) # — sgdisk — # -p prints partition table (on the very left it will print before operations, on the very right itRead More…
NOTE: works with ext3 and ext4 Just edit the dst1, log1, srcdev1 variables. This will list all of the files and subfolders on the root of srcdev1, and it will launch anRead More…
Systemd now brings logging to one swift program called journalctl & service management to a program called systemctl. Starting Stopping Services (before systemd this was done with the “service” command or usingRead More…
Objective: Here I will show you how to extract Data From a Site that requires authentication/login with CURL. As an example, we will extract favorite TV shows schedule from next-episode.net UPDATE 2022-09-07:Read 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…