ssh tips – using && to make life easier

-->
Category: Step By Step

This time I wanna learn about symbol &&, I’ll use it to simply download and unzip theme and plugins for my wordpress blog faster and easier. Lets start :

Get Download link target

I like to try these theme and plugins:

http://speckyboy.com/wp-content/uploads/2007/11/winter_styled.zip

http://downloads.wordpress.org/plugin/replace-wp-version.zip

http://wordpress.designpraxis.at/download/backupwordpress.zip

Download and unzip

1. For theme go to theme folder in inside wp-theme area

2. Download file and unzip in single command :

# wget http://speckyboy.com/wp-content/uploads/2007/11/winter_styled.zip && unzip winter_styled.zip
–07:58:23– http://speckyboy.com/wp-content/uploads/2007/11/winter_styled.zip
=> `winter_styled.zip’
Resolving speckyboy.com… 64.13.232.110
Connecting to speckyboy.com|64.13.232.110|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 32,088 (31K) [application/zip]

100%[=============>] 32,088 –.–K/s

07:58:23 (541.94 KB/s) – `winter_styled.zip’ saved [32088/32088]

Archive: winter_styled.zip
inflating: winter_styled/404.php
inflating: winter_styled/archive.php
inflating: winter_styled/comments.php
inflating: winter_styled/footer.php
inflating: winter_styled/functions.php
inflating: winter_styled/header.php
creating: winter_styled/images/
inflating: winter_styled/images/Thumbs.db
inflating: winter_styled/index.php
inflating: winter_styled/page.php
inflating: winter_styled/screenshot.png
inflating: winter_styled/search.php
inflating: winter_styled/sidebar.php
inflating: winter_styled/style.css
inflating: winter_styled/Thumbs.db
al@hostingformula [~/www/hostingformula.info/wp-content/themes]#
al@hostingformula [~/www/hostingformula.info/wp-content/themes]# ls
./ blackwhite/ default/ winter_styled/
../ box-tube/ excel/ winter_styled.zip

As you see folder winter_styled and winter_styled.zip .

3. Change directory to plugins

# cd ../plugins/
al@hostingformula [~/www/hostingformula.info/wp-content/plugins]#

Issue command to download and unzip :

wget http://downloads.wordpress.org/plugin/replace-wp-version.zip && unzip replace-wp-version.zip

wget http://wordpress.designpraxis.at/download/backupwordpress.zip && unzip backupwordpress.zip

Yes, same way as previous step for download theme.

summary :

  • Using && symbol can save our time.
  • Using && without limit.

wget http://downloads.wordpress.org/plugin/replace-wp-version.zip && unzip replace-wp-version.zip && wget http://wordpress.designpraxis.at/download/backupwordpress.zip && unzip backupwordpress.zip

this will download two plugins and unzip them, just make sure to type it in one line.

Enjoy :-)

Add to Del.cio.us RSS Feed Add to Technorati Favorites Stumble It! Digg It!
    www.sajithmr.com

Tags:

Leave a Reply

Readers who viewed this page, also viewed: