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
- Backupwordpress, backup database + files
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
Related Reading:
Using DrupalWith the recipes in this book, you can take full advantage of the vast collection of community-contributed modules that make the Drupal web framewo... Read More >
Drupal For DummiesLearn to set up, manage, and administer a Drupal Web site
Drupal offers unparalleled flexibility for content-managed Web sites, but most ... Read More >
Pro Drupal Development, Second EditionWidely praised for its in–depth coverage of Drupal internals, bestselling Pro Drupal Development has been completely updated for Drupal 6 in thi... Read More >
Front End Drupal: Designing, Theming, Scripting“For Drupal to succeed, we need books like this.”
–Dries Buytaert, Drupal founder and project... Read More >
Cracking Drupal: A Drop in the BucketThe first book to reveal the vulnerabilities and security issues that exist in the sites that have been built with Drupal?and how to prevent them from... Read More >
Search Terms :
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.
