Category Archive:

How to restart apache for Zend Server CE on Mac OS X

0

A short post… straight to the point. In terminal, go to /usr/local/zend, then run “sudo bin/zendctl.sh stop” , then “sudo bin/zendctl.sh start” to start apache again.

Posted in: Apache, Linux, Mac OS X

Continue Reading

How to list and sort directories and files by size in Linux

0

This will list all directories at the root level sorted alphabetically with their size printed in an easy to read format

du -sh /*

To list all subdirectories for a specified parent directory, use this command and specify the parent directory path like “usr” in this example.

du -h –max-depth=1 /usr

or run this in for current directory

du -h –max-depth=1 2>/dev/null

List size of files within a directory

ls -s

Posted in: Linux
Tags:

Continue Reading