ssh tips – using && to make life easier

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 :

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 :-)

~468x60521 ssh tips   using && to make life easier~

Related posts:

  1. Install theme for online store based on Wordpress Previous post I already explain about wordpress installation locally...
  2. Moving hostingformula.info : from ssh enabled host to cpanel enabled host My friend challenge me to move hostingformula.info to another...
  3. Migrating from hostmonster to fastdomain Almost 1 year with hostmonster, overall experience I feel...
  4. Moving wordpress blog to new place and new domain Another client ask me to move their blog to...
  5. Upgrade to wordpress 2.9 : Carmen New Wordpress version ready to serve : 2.9 A...

Related posts brought to you by Yet Another Related Posts Plugin.

Step By Step

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments are closed.