Category: Bash

Linux: Check for File System issues

Linux has a command called tune2fs to check and configure File Systems, the option -l does list all the values of the File Sytem related parameters. To avoid issues with File Systems you can read out the value of  Filesystem state , when it states clean all is ok but any other output needs action.

▶ Exclude .git from tar ball creation

The tar command gives a few possibilities: 1 . General: tar cvfz app.tar.gz --exclude ".git/*" --exclude ".git" <root-dir> 2. GNU tar      To exclude version control system directories:     tar --exclude-vcs This will exclude svn, git metafiles etc. tar cvfz app.tar.gz <root-dir> --exclude-vcs Source:

▶ How To Create Nagios Plugins

How To Create Nagios Plugins With Bash On Ubuntu 12.10 Introduction Bash is a popular command processor available on Linux by default. We have previously covered how to install Nagios monitoring server on Ubuntu 12.10 x64. This time, we will expand on this idea and create Nagios plugins using Bash. These plugins will be running on

▶ bash Cookbook – O’Reilly Media

Download here:‎ Bash Cookbook Solutions and Examples for bash Users By Carl Albing, JP Vossen, Cameron Newham Publisher: O’Reilly Media Released: May 2007 Pages: 630 The key to mastering any Unix system, especially Linux and Mac OS X, is a thorough knowledge of shell scripting. Scripting is a way to harness and customize the power of any Unix

▶ Programming with BASH |

Programming with BASH BASH actually stands for Bourne Again Shell. The reason for the name goes back to Steve Bourne who wrote the original Bourne Shell for Unix. When the GNU created a Free Software equivalent, they named it after Steve’s shell and added a little pun on his last name. If you’re a system