Tel: 91-95381-71000 | Mail: inderweb.com@gmail.com


command

Enabling / downloading modules and themes using shell or putty in linux

You can directly download module or theme from your ssh or putty.

1) Go to modules directory of your drupal installation. E.g:-
cd sites/all/modules

2). Download archive using wget command:
wget http://ftp.drupal.org/files/projects/image-6.x-1.0-beta5.tar.gz

3). Uncompress archive:
tar zxvf image-6.x-1.0-beta5.tar.gz

4). Delete/Remove archive:
rm -rf image-6.x-1.0-beta5.tar.gz
5)Confirm your module is there:-
ls -a

Note: the module image-6.x-1.0-beta5.tar.gz is taken here as example please check the current

how to Install a module or theme on the Linux shell command line

   1)Copy the module download link. Normaly ending with .gz.  In a Web browser, go to the module's page at drupal.org , right-click the Download link for the version you want, and copy the link location.
   2) In an SSH goto module folder of drupal
      cd www/sites/all/modules

Linux VI CHEET Sheet - Cheat Sheet for the VI editor


This document is a vi cheat sheet, designed to be kept nearby while
using the vi editor. In general, vi commands follow the
convention of "one from column A and one from column B", using the two
tables below, Operators and Operands, as columns A and B.

Adding cron jobs from crontab on Linux for drupal site using lynx and wget and curl commands

Cron executes commands at specified intervals. These commands are called "cron jobs." Cron is available on Unix, Linux and Mac servers. Windows servers use a Scheduled Task to execute commands.

The cron command

To edit a crontab through the command line, type:

crontab -e

In the following example, the crontab command shown below will activate the cron tasks automatically on the hour:

0 * * * * wget -O - -q -t 1 http://www.indersingh.com/cron.php

# +---------------- minute (0 - 59)
# | +------------- hour (0 - 23)
# | | +---------- day of month (1 - 31)