This article is probably worth reading twice due to my style of writing (sorry). Read the comments as they have alot of informational text. I tried to make them understandable to aRead More…
Solution to rare problem – Hard to see VIM with SPF13 (or any theme) in screen or tmux?
Maybe someone will come across this one. But I had an issue with screen and tmux making themes in vim ugly and hard to work with (and i wouldnt doubt if dtach andRead More…
Regular Expression (regexp:sed/grep) match everything until the next occurance of character
EXAMPLE 1 Lets generate some random text: cd /lib/udev/rules.d grep -nir . * | grep SYMLINK | head > /root/text0.txt SIDENOTE: actually at the time, this text was not random for me.Read More…
udev & mknod & mdev — and — Udevadm to gather info about a device & all devices
Citation: http://possiblelossofprecision.net/?p=343 INTRO UDEV is a service/package that detects new devices connected to the linux server and launches predefined scripts and also makes them accessible through /dev. In the old daysRead More…
Backing up & Restoring Permissions in Linux with GetFACL and SetFACL
Use getfacl and setfacl. Will work even if you dont run your filesystem with “acl” mode. “acl” mount option (Available by installing acl program) gives more permissions than your standard u/g/o r/w/x.Read More…
Kitty/Putty Desert Theme (easy on eyes and much more beautiful)
As per article: http://www.darkrune.org/blog/?p=213 We will make our sessions look like this: Via Kitty and Putty: Go to Window->Colours Start off with default colours and do this: * Default Foreground: 255/255/255 *Read More…
Find & delete files between 2 dates & times
Make 2 files that will be the marking point of the beginning and the end. touch -t yyyymmddHHMMSS start_date_file_name touch -t yyyymmddHHMMSS end_date_file_name Then delete everything between those 2 days: find .Read More…
Linux – Biggest command I can give to BASH
The biggest command you can give to bash depends on your system. you can find that out by typing this: # getconf ARG_MAX ARG_MAX is a system variable (kernel variable) that tellsRead More…
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…
EXT – debugfs recursively dump data via rdump (ext3 and ext4 work)
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…