Tutorials


Load Average in Linux

Load average is reported by commands like top, uptime and w. Load average is an indication of whether the system resources (mainly the CPU) are adequately available for the processes (system load) that are running, runnable or in uninterruptible sleep states during the previous n minutes.

ps command usage examples in Linux

The ps command is for the process status. ps gives the status of currently executing processes on a Linux or Unix system. There are multiple options for the ps command that help in getting the process information of interest.

Synchronize your computer's clock using the NTP

The Coordinated Universal Time (UTC) is the universally accepted time standard. Computers around the world use it as the reference time. It is important that our computers have the correct UTC. The Network Time Protocol (NTP) helps us in synchronizing the time of our computers with the UTC maintained by timeservers.

Alarm, sleep and High Resolution Timers

Software systems often need to act based on time. The accuracy and precision of time maintained by a system is important. Alarms, sleep and high resolution timers provide a framework for application programs to carry out time-critical tasks.

Linux process execution time

As a process executes, it takes up the CPU time which is also called the execution time or the processor time. The times system call and the clock library function can be used by the process to find its execution time.

Calendar Time Under Linux

Linux systems maintain a system clock which stores the calendar time. The is stored as seconds passed since January 1, 1970 00:00:00 UTC. Applications can query this system clock with the time and gettimeofday system calls. There are functions to convert the system calendar time to the familiar local time string.

hwclock, the hardware clock query and set program

The hardware real time clock tends to lose or gain time every day by a constant amount. This is called the systematic drift. hwclock program helps in calibrating and adjusting the hardware clock.

anacron

anacron helps in running shell scripts once in a given number of days. Unlike cron, anacron does not require that the exact time running of the script be fixed a priori. For this reason, anacron is particularly relevant for home computers and laptops, which are not switched on all the time.

Using cron

The cron daemon runs shell scripts for root and other users at predefined times. cron is the standard way for running programs periodically on Linux and other Unix-like systems.

Backing up your Drupal site

Backing up a Drupal site involves copying the site's root directory structure and creating a dump of site's database. The backed up data can be used for restoring the site later on.

Pages

Subscribe to Tutorials

Copyright © 2012 SoftPrayog. All Rights reserved.
Site powered by Drupal