How to Simply Display Directory Disk Usage?

On a Unix or Linux server, the “du” command provides a quick and easy method for finding out how much space each directory is using, as well as a summary of total disk usage. For example, if you just typed “du” from the command line, the output might look like this:
624 […]

3 ls* Commands You Should Know

If you have even a small amount of Linux experience, you have probably used the “ls” command to list the contents of a directory. What you may not know is that there are numerous other ls-based commands that are extremely useful for server management. The following are 3 you should know:
1. lsblk – lists block […]

Apache Tip #1: Limit User htaccess Power

With the now common use of dynamic web sites, especially content management systems, your web hosting users may want to use .htaccess files to set Apache web server configuration directives. At times, these directives may be necessary for the proper functionality of their CMS or other dynamic web applications.
It is easy to use .htaccess, and […]

A Basic Introduction to the Linux Command Line

If you are managing a Linux server for the first time, you are probably using a web-based control panel, such as cPanel/WHM.  While a control panel may fill most of your basic needs as a system administrator, there are some tasks best left to the command line. On a remote Linux server, you can access […]

How to Delete All the Files in a Directory

On Linux and Unix servers, you can use the “rm” command to delete one file, multiple files, or an entire directory. But what do you do if you want to preserve the directory but delete all the files in it? On a dedicated server, such a feature would be particularly useful if, for example, you […]

How to Archive, Compress, and Uncompress Files

Linux servers and many other servers with Unix-like operating systems rely on archiving and compression tools like tar and gzip to rotate logs, store backups, and even cache websites.  In those cases, dedicated server’s software will automatically make use of those tools.  If, however, you ever need to extract data from those archives or make […]

Apache’s DocumentRoot directive

On an Apache HTTP Server, you can control where the server looks for live HTML documents; in other words, your web pages or content management system. Most web-based control panels set this up for you by default when virtual hosts are created, and changing the panel’s settings could very well break your system.
But if […]