linux cheat sheet
Linux CheatSheet
Sheel and Bash
Replace all file in a folder with another file. Works recursively and source and target both follow regex
Delete all files in a folder with an extension / pattern
Use with precautionFind and replace a word in all files in a folder
Only on MacOS if find command doesn't work
Find a folder and copy a folder inside the folder
For loop with String Numbers
For loop with Numbers
Generate SHA512 Password and set password using HASH
PASSWORD='password'
LINUX_USER='root'
HASH=$(openssl passwd -1 $PASSWORD)
echo $HASH
usermod -p "$HASH" $LINUX_USER