
Skip to: site menu |main content
Welcome to my personal site. If You have any question or suggestion please feel free to contact me from contact page.
You can directly download themes from your ssh or putty.
1) Go to themes directory of your drupal installation. E.g:-
cd sites/all/themes
2). Download archive using wget command:
wget http://ftp.drupal.org/files/projects/acquia_marina-6.x-2.0.tar.gz
3). Uncompress archive:
tar zxvf acquia_marina-6.x-2.0.tar.gz
4). Delete/Remove archive:
rm -rf acquia_marina-6.x-2.0.tar.gz
5)Confirm your theme is there:-
ls -a
Also check and enable it from:- admin/build/themes
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
Getting started with Drupal install on the command line:
If you want to decompress / extract an sql archive generated from phpmyadmin you can do it easily:-
gunzip myolddrupaldb.sql.gz
Also you can use tar command for extracting drupal archive in gz. format. e.g a file like drupal-6.15.tar.gz
tar -zxvf Drupal-6.15.tar.gz
Want to bulk delete .svn folders recursively?
Warning: Before you use this command make sure you have changed to the correct directory where you want to apply this. example:
Lets say you want to delete all .svn files from drupal folder "inderweb"
cd htdocs/inderweb
find -name "\.svn" -exec rm -rf {} \;
rm -rf `find . -type d -name .svn`
Numeric arguments may prefix any operator; the command is repeated the given number of times or until it fails. Numeric arguments prefixing an operand execute the operand the given number of times, effectively just moving the cursor. (Some versions of vi, such as that provided with AIX 5L, don't respond properly to numeric prefixes in front of some operands such as the / string search operand.)
In the following commands, file may be either a filename, or a shell command if prefixed with <b>!</b>. Filenames are globbed by the shell before <b>vi</b> uses them (shell wildcards are processed before the filenames are used). Address ranges may be used immediately after the colon in the commands below. Example address ranges are:
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.
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)
InderSingh.com v1.2
(Feb 05, 2012)
Recent comments
1 week 2 days ago
1 week 2 days ago
1 week 2 days ago
1 year 5 days ago
1 year 5 days ago
1 year 5 days ago
1 year 16 weeks ago
1 year 18 weeks ago
1 year 19 weeks ago
1 year 23 weeks ago