woensdag 14 maart 2018

Setting permissions for files and folders

• find . -type f -exec chmod 0644 {} \;  (for files)
• find . -type d -exec chmod 0755 {} \; (for folders)

https://help.directadmin.com/item.php?id=589

       find . -type f -exec file '{}' \;

Runs `file' on every file in or below the current directory.  Notice that the braces are enclosed in single quote marks to protect them from  interpretation as shell script punctuation. The semicolon is similarly protected by the use of a backslash, though single quotes could have been used in that case also.

(from Explainshell.com)
 
fdfind -t f -x chmod 644 {} (for files)

Enlarging Libreoffice window completely with command

 You can open the LibreOffice window completely by pressing the CTRL+Shift+J keys together.