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 [...]

Add New Drive to LVM Array on Ubuntu

This howto guide will go through the process of adding a new drive to a LVM array.…

Read more [...]

Installing Newznab on Ubuntu

Ever wanted to run your own usenet search engine? This howto will go through the steps required to install the Newznab usenet indexer on Ubuntu. Ubuntu 12.04 was used for this guide, however all current versions of Ubuntu should be the same.…

Read more [...]

Update time from network time server on Linux

To update the time on a Linux installation, simply run the following command: $ sudo ntpdate <time server address> Replacing <time server address> with a valid NTP time server address. eg: $ sudo ntpdate pool.ntp.org If you only want to query the time, without updating your system, use the following command: $ ntpdate -q pool.ntp.org To update the time, without outputting any log information to standard output (handy for a cron job), use the following command: $ sudo ntpdate -s…

Read more [...]



Page 4 of 9123456789