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: http://stackoverflow.com/questions/3069522/tarballing-without-git-metadata

▶ 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