<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/bash</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 23 May 2013 21:22:24 GMT</pubDate>
<item>
<title>(Bash) Unix file timestamps - jtjiver</title>
<link>http://snipplr.com/view/71241/unix-file-timestamps/</link>
<description><![CDATA[ <p>1. Last modified time - This refers to the timing when the file has been modified last. For a newly created file, this refers to the time when the file is created.


2. Last accessed time -  This refers to the timing when the file has been accessed last. Access can be either when the file is read, or the file is written to or even if the file has been executed. The last accessed time gets updated when any of the above file operations is being done on a file.


3. Last changed time - This refers to the timing when the file status has been changed last. The change in file status could be due to any of the following reasons:
   i) File ownership being changed.
  ii) Group to which the file belongs to is changed.
 iii) File permissions such as read, write or execute permissions has been applied or removed from the file.
 iv) Advanced file permissions such as SUID, SGID or Sticky bit has been applied or removed on the file.
  v) When the file content is updated</p> ]]></description>
<pubDate>Mon, 20 May 2013 19:06:37 GMT</pubDate>
<guid>http://snipplr.com/view/71241/unix-file-timestamps/</guid>
</item>
<item>
<title>(Bash) how to run your unix shell script - geekzspot</title>
<link>http://snipplr.com/view/71227/how-to-run-your-unix-shell-script/</link>
<description><![CDATA[ <p>Command not found? Cannot execute Permission denied?
How to make your unix shell script executable</p> ]]></description>
<pubDate>Sat, 18 May 2013 10:34:18 GMT</pubDate>
<guid>http://snipplr.com/view/71227/how-to-run-your-unix-shell-script/</guid>
</item>
<item>
<title>(Bash) Unix Shell Script Usage - geekzspot</title>
<link>http://snipplr.com/view/71226/unix-shell-script-usage/</link>
<description><![CDATA[ <p>Check for the correct usage of a script by counting the arguments or parameters.
Here if there are less than two command line arguments we then display a helpful message and exit.</p> ]]></description>
<pubDate>Sat, 18 May 2013 08:47:23 GMT</pubDate>
<guid>http://snipplr.com/view/71226/unix-shell-script-usage/</guid>
</item>
<item>
<title>(Bash) convert unix date to a different timezone - geekzspot</title>
<link>http://snipplr.com/view/71225/convert-unix-date-to-a-different-timezone/</link>
<description><![CDATA[ <p>Want to display what the time is in a different time zone?

Valid TZ values are based on the tz (timezone) database used by Linux and other Unix systems.</p> ]]></description>
<pubDate>Sat, 18 May 2013 08:25:01 GMT</pubDate>
<guid>http://snipplr.com/view/71225/convert-unix-date-to-a-different-timezone/</guid>
</item>
<item>
<title>(Bash) Simple Command Line Calculator - brownrl</title>
<link>http://snipplr.com/view/71222/simple-command-line-calculator/</link>
<description><![CDATA[ <p>This is a simple wrapper to bc to perform basic calculator duties. with up to 4 decimal place precision. its just one of those things you might find useful. Then again all the os's out there have a gui calc easily ready too.</p> ]]></description>
<pubDate>Sat, 18 May 2013 07:50:30 GMT</pubDate>
<guid>http://snipplr.com/view/71222/simple-command-line-calculator/</guid>
</item>
<item>
<title>(Bash) Unix Make My Home Public - geekzspot</title>
<link>http://snipplr.com/view/71220/unix-make-my-home-public/</link>
<description><![CDATA[ <p>Give All Read Write Permissions on my Home Directory Fodler</p> ]]></description>
<pubDate>Sat, 18 May 2013 03:39:28 GMT</pubDate>
<guid>http://snipplr.com/view/71220/unix-make-my-home-public/</guid>
</item>
<item>
<title>(Bash) Unix Delete Old Files - geekzspot</title>
<link>http://snipplr.com/view/71161/unix-delete-old-files/</link>
<description><![CDATA[ <p>. # current Directory
-mtime +10 # older than 10 days
-type f # only files
-delete # Obvious! Remove it to see the files</p> ]]></description>
<pubDate>Tue, 14 May 2013 08:16:10 GMT</pubDate>
<guid>http://snipplr.com/view/71161/unix-delete-old-files/</guid>
</item>
<item>
<title>(Bash) Reload dependencies cache in maven 2/3 - alces</title>
<link>http://snipplr.com/view/71155/reload-dependencies-cache-in-maven-23/</link>
<description><![CDATA[ <p>How to reload dependencies cache in maven 2/3</p> ]]></description>
<pubDate>Mon, 13 May 2013 17:32:51 GMT</pubDate>
<guid>http://snipplr.com/view/71155/reload-dependencies-cache-in-maven-23/</guid>
</item>
<item>
<title>(Bash) IBM MQ - Create Channel Reset Command - jtjiver</title>
<link>http://snipplr.com/view/71154/ibm-mq--create-channel-reset-command/</link>
<description><![CDATA[ <p>IBM MQ 
Grab the saved SEQNUM and produce reset commands for channels - DOES NOT RUN THE COMMAND - ONLY ECHO IT</p> ]]></description>
<pubDate>Mon, 13 May 2013 16:58:41 GMT</pubDate>
<guid>http://snipplr.com/view/71154/ibm-mq--create-channel-reset-command/</guid>
</item>
<item>
<title>(Bash) Print 100 most often used commands - kuonirat</title>
<link>http://snipplr.com/view/71111/print-100-most-often-used-commands/</link>
<description><![CDATA[ <p>For fun and work optimisation purposes :)</p> ]]></description>
<pubDate>Thu, 09 May 2013 22:50:57 GMT</pubDate>
<guid>http://snipplr.com/view/71111/print-100-most-often-used-commands/</guid>
</item>
<item>
<title>(Bash) Common @openshift RHC commands - chrisaiv</title>
<link>http://snipplr.com/view/71106/common-openshift-rhc-commands/</link>
<description><![CDATA[ <p>I use these commands all the time while dealing with @openshift. I figured it would make sense to spell them out.</p> ]]></description>
<pubDate>Thu, 09 May 2013 16:59:55 GMT</pubDate>
<guid>http://snipplr.com/view/71106/common-openshift-rhc-commands/</guid>
</item>
<item>
<title>(Bash) Remove Unneeded Linux Kernels in Ubuntu - oxnard</title>
<link>http://snipplr.com/view/71047/remove-unneeded-linux-kernels-in-ubuntu/</link>
<description><![CDATA[ <p>Remove Unneeded Linux Kernels in Ubuntu</p> ]]></description>
<pubDate>Sun, 05 May 2013 15:50:34 GMT</pubDate>
<guid>http://snipplr.com/view/71047/remove-unneeded-linux-kernels-in-ubuntu/</guid>
</item>
<item>
<title>(Bash) Truncate UNIX File - geekzspot</title>
<link>http://snipplr.com/view/71041/truncate-unix-file/</link>
<description><![CDATA[ <p>Empty out that file in a jiffy!</p> ]]></description>
<pubDate>Sat, 04 May 2013 06:45:04 GMT</pubDate>
<guid>http://snipplr.com/view/71041/truncate-unix-file/</guid>
</item>
<item>
<title>(Bash) How to Repair, Restore, or Reinstall Grub 2 with a Ubuntu Live CD or USB - developer</title>
<link>http://snipplr.com/view/70947/how-to-repair-restore-or-reinstall-grub-2-with-a-ubuntu-live-cd-or-usb/</link>
<description><![CDATA[ <p>Grub 2 typically gets overridden when you install Windows or another Operating System. To make Ubuntu control the boot process, you need Reinstall (Repair/Restore) Grub using a Ubuntu Live CD.

Warning:

Using the sudo command, especially from a Live CD can do serious damage to your system. Read all instructions and confirm you understand before executing any commands. When pasting into the Terminal, use Ctrl+Shift+V, NOT Ctrl+V.

Terminal Commands:

Mount the partition your Ubuntu Installation is on. If you are not sure which it is, launch GParted (included in the Live CD) and find out. It is usually a EXT4 Partition. Replace the XY with the drive letter, and partition number, for example: sudo mount /dev/sda5 /mnt.</p> ]]></description>
<pubDate>Sat, 27 Apr 2013 22:24:54 GMT</pubDate>
<guid>http://snipplr.com/view/70947/how-to-repair-restore-or-reinstall-grub-2-with-a-ubuntu-live-cd-or-usb/</guid>
</item>
<item>
<title>(Bash) Bash SSH Tunnel - miceno</title>
<link>http://snipplr.com/view/70899/bash-ssh-tunnel/</link>
<description><![CDATA[ <p>This script opens an SSL tunnel between a source host and a target host.</p> ]]></description>
<pubDate>Tue, 23 Apr 2013 20:02:46 GMT</pubDate>
<guid>http://snipplr.com/view/70899/bash-ssh-tunnel/</guid>
</item>
<item>
<title>(Bash) Convert ePub to PDF in Linux command line - chema_ar</title>
<link>http://snipplr.com/view/70884/convert-epub-to-pdf-in-linux-command-line/</link>
<description><![CDATA[ <p>This script enables the conversion of the HTML files available in the ePub format in only one  PDF file</p> ]]></description>
<pubDate>Mon, 22 Apr 2013 23:17:59 GMT</pubDate>
<guid>http://snipplr.com/view/70884/convert-epub-to-pdf-in-linux-command-line/</guid>
</item>
<item>
<title>(Bash) GIT - Restore a deleted file in a Git repo - satie83</title>
<link>http://snipplr.com/view/70835/git--restore-a-deleted-file-in-a-git-repo/</link>
<description><![CDATA[ <p>Say I'm in a Git repository. I delete a file and commit that change. I continue working and make some more commits. Then, I find I need to restore that file.</p> ]]></description>
<pubDate>Thu, 18 Apr 2013 01:26:12 GMT</pubDate>
<guid>http://snipplr.com/view/70835/git--restore-a-deleted-file-in-a-git-repo/</guid>
</item>
<item>
<title>(Bash) Check if a folder exists - Runner</title>
<link>http://snipplr.com/view/70822/check-if-a-folder-exists/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 17 Apr 2013 15:47:16 GMT</pubDate>
<guid>http://snipplr.com/view/70822/check-if-a-folder-exists/</guid>
</item>
<item>
<title>(Bash) Check to see if the user running the script is root - deanhouseholder</title>
<link>http://snipplr.com/view/70806/check-to-see-if-the-user-running-the-script-is-root/</link>
<description><![CDATA[ <p>If you have a script that must be run as the root user, put this at the top:</p> ]]></description>
<pubDate>Tue, 16 Apr 2013 16:35:09 GMT</pubDate>
<guid>http://snipplr.com/view/70806/check-to-see-if-the-user-running-the-script-is-root/</guid>
</item>
<item>
<title>(Bash) Use a proxy with ssh/scp on Linux - deanhouseholder</title>
<link>http://snipplr.com/view/70805/use-a-proxy-with-sshscp-on-linux/</link>
<description><![CDATA[ <p>In order to use a proxy by default for your network-based commands, create the file "~/.ssh/config" and give it these properties.  Replace "proxyhost" with the hostname/IP of the proxy server and "80" with the port of the proxy server.</p> ]]></description>
<pubDate>Tue, 16 Apr 2013 16:32:04 GMT</pubDate>
<guid>http://snipplr.com/view/70805/use-a-proxy-with-sshscp-on-linux/</guid>
</item>
</channel>
</rss>