To give you complete control over all the configurable options in Windows 7+ at a single press of a button just simply create a new folder anywhere and rename it to this:
The folder you create will now have 270 items that are to do with configurable options in Windows 7. Interestingly it also works for Windows 8.1 and 10 as well.
NOTE: Vista partially supported this feature, but was prone to crashing until the folder was removed.
This is a relatively trivial topic, but comes up quite often. For securing content on a server, you’ll often want to password protect entire domains or paths. Add the following to the correct block in your httpd.conf and you should be ready to go.
If you have a complex environment, you may want to consider having individual password files for each asset.
AuthName "Restricted Files"
To create/clobber a new file for the first user:
sudo htpasswd -c /etc/apache2/.htpasswd YOURUSER
To add additional users:
sudo htpasswd /etc/apache2/.htpasswd YOURUSER
(repeat for new users without the -c as that creates/clobbers the file)
This is a simple question, but one that often baffles users that are new to the command line of *nix.
To delete a folder and all of it’s contents (including subfolders) you must use
rm -rf example