Apache, Linux & FreeBSD

To move the contents of a directory to a parent directory, first navigate to the child directory and then run the command snippet below.

For example, the parent directory is called "mum" and the child directory is called "baby", navigate to "baby" and run the command. Everything will be moved to the "mum" directory.

This should also work in Linux without any problems.

See FreeBSD move contents of directory to parent directory Snippet

It is a good idea to block access to .svn directories if you are using Subversion. Otherwise, anyone can read the files. Add the following snippet to your .htaccess file (in root directory of the website).

See Block access to .svn directories using htaccess Snippet

Simple command to gzip a file.

See GZip a file Snippet

Copy an entire directory in FreeBSD

Blog Post

Copying an entire directory in FreeBSD (a Unix based operating system similar to Linux) is very easy.

The following example is to copy a directory on a web server. Firstly, you must create the destination directory.

Go to the parent directory and run the following command:

mkdir DESTINATIONDIRECTORYNAME
Read Copy an entire directory in FreeBSD
Syndicate content