I somehow always seem to forget how to do this the simple way:
chmod -R ug+rw /yourfolder
This will change yourfolder permissions to 775 and all folders inside recursively to 775, but all files in the folder(s) will be set to 664.
I somehow always seem to forget how to do this the simple way:
chmod -R ug+rw /yourfolder
This will change yourfolder permissions to 775 and all folders inside recursively to 775, but all files in the folder(s) will be set to 664.
It’s always good when you are looking for a way to do a task and you find great one-liner that just does the job right:
diff -rq directory1/ directory2
Switches “r” and “q” will recursively compare the two directories and showing brief output. Continue reading “Compare contents of two directories in bash”