How to change permissions for a folder and its subfolders/files in one step

I would like to change the permissions of a folder and all its subfolders and files in one step (command) in Linux. I have already tried the below command but it works only for the mentioned folder: chmod 775 /opt/lampp/htdocs Is there a way to set chmod 755 for /opt/lampp/htdocs and all of its content … Read more

How do I find all files containing specific text on Linux?

Want to improve this post? Provide detailed answers to this question, including citations and an explanation of why your answer is correct. without enough detail may be edited or deleted. I’m trying to find a way to scan my entire Linux system for all files containing a specific string of text. Just to clarify, I’m … Read more

Changing permalinks gives me 404 errors on nginx

EDIT It turns out that I was barking up the wrong tree trying to edit .htaccess, as nginx doesn’t use it. What I apparently need to do is edit my .conf file. Before I read this, my_app.conf looked like this: upstream backend { server unix:/u/apps/my_app/tmp/php.sock; } server { listen 80 default; root /u/apps/my_app/www; index index.php; … Read more