Language : bash

Title User Language Tags Description Date
IBM MQ - Generate Channel Sequence Number Reset Commands jtjiver Bash

Grab the saved SEQNUM and produce reset commands for channels - DOES NOT RUN THE COMMAND - ONLY ECHO IT

yesterday
Unix file timestamps jtjiver Bash
  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

May 20
make your unix script executable geekzspot Bash

Getting Permission Denied? How to make your unix shell script executable

May 18
Unix Shell Script Usage geekzspot Bash

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.

May 18
convert unix date to a different timezone geekzspot Bash

Want to display what the time is in a different time zone?

Valid timeZone values are based on the tz (timezone) database used by Linux and other Unix systems. See them at http://www.vmware.com/support/developer/vc-sdk/visdk400pubs/ReferenceGuide/timezone.html

May 18
Simple Command Line Calculator brownrl Bash

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.

May 18
Unix Make My Home Public geekzspot Bash

Give All Read Write Permissions on my Home Directory Fodler

May 18
Unix Delete Old Files geekzspot Bash

-mtime +10 # older than 10 days -type f # only files -delete # Obvious! Remove it to see the files

May 14
Reload dependencies cache in maven 2/3 alces Bash

How to reload dependencies cache in maven 2/3

May 13
IBM MQ - Create Channel Reset Command jtjiver Bash

IBM MQ Grab the saved SEQNUM and produce reset commands for channels - DOES NOT RUN THE COMMAND - ONLY ECHO IT

May 13
Print 100 most often used commands kuonirat Bash

For fun and work optimisation purposes :)

May 9
Common @openshift RHC commands chrisaiv Bash

I use these commands all the time while dealing with @openshift. I figured it would make sense to spell them out.

May 9
Remove Unneeded Linux Kernels in Ubuntu oxnard Bash

Remove Unneeded Linux Kernels in Ubuntu

May 5
Truncate UNIX File geekzspot Bash

Empty out that file in a jiffy!

May 4
How to Repair, Restore, or Reinstall Grub 2 with a Ubuntu Live CD or USB developer Bash

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.

April 27