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…
Systemd – Journalctl & Systemctl CheatSheet
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…
Extracting Data From Site with CURL using Login/Authentication & next-episode.net example
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…
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…
LINUX ADVANCED POSIX PERMISSIONS – setuid, setgid, and sticky bit – also – real uid, effective uid and saved uid
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…