Howtos / Articles

Live Monitoring of Log Files on Linux

The tail command which is found on almost all Linux distributions is used to output the last part of files. There is a parameter for the tail command that allows you to monitor a file, and continually output new lines from the file as they are added. This is especially handy for monitoring log files that are constantly being updated. The commands below can be used to continuously monitor log files. Monitor a log file using tail: $ tail -f…

Read more [...]

List Folder and File Size and Sort By Size on Linux

A common requirement on any operating system is to be able to view the total size of a list of folders and files on the file system, and be able to sort the list by size. Generally this isn’t straight forward to do. The commands below can be used to do just that. Display folder sizes and sort in ascending order: $ du -sBM * | sort -n Example: $ du -sBM * | sort -n 0M man 1M etc…

Read more [...]

Restore MySQL Database on Linux

This howto guide will step you through how to restore a MySQL database from a backup file, using the MySQL client command line tools on a Linux machine. Backing up databases is important, but it is useless if you don’t know how to restore the backup. Regular restores should be done to ensure that your backup is operating correctly. Restoring a MySQL database: To restore a MySQL database from a plain text MySQL backup file, run the following command: $…

Read more [...]

Backup MySQL Database on Linux

This howto guide will step you through how to backup a MySQL database using the MySQL client command line tools on a Linux machine. Backing up databases should be done regularly to prevent any data loss due to disk crashes, data corruption, accidental deletion, etc. The more use the database gets, the more regularly the backups should be done. Backing up a MySQL database: To backup a MySQL database to a plain text file, run the following command: $ mysqldump…

Read more [...]

Installing NGINX, PHP, and MySQL on CentOS 6

This “how to” guide will step you through the process of setting up Nginx, PHP, and MySQL on CentOS 6.…

Read more [...]



Page 7 of 21« First...3456789101112...20...Last »