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.
Many companies use a Central Loghost where syslogs from all servers are consolidated. If there is a need for example to check on certain entries it is no need to acces the individual servers, instead extract info from 1 centrel Logfile can do the trick. In case the is a Central Loghost then syslog info
ISSUE: In the file /etc/lvm/lvm.conf the value of ‘level = x’ has to be set to 3 (lvm errors will be logged to syslog) Further requirements: This only has to be done if the value is different (unless..) ‘level = x’ within comments (#) have to be omitted Only if the value has changed the
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 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
How to debug a bash script? Is there any way to debug a bash script? E.g something that prints a sort of execution log like “calling line 1”, “calling line 2” etc. via shell – How to debug a bash script? – Stack Overflow.
Download here: xtz.su/loads/books/bash_cookbook(Oreilly).pdf 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
RHEL / CentOS: Shell Script Wrapper TO Start / Stop / Restart NFSv4 Services In A Particular Order A simple shell script wrapper to start / stop / restart NFSv4 service on CentOS / RHEL v.6.x server in a particular order. This script also demonstrates how to use the ln command to create soft links
30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X An alias is nothing but shortcut to commands. The alias command allows user to launch any command or group of commands (including options and filenames) by entering a single word. Use alias command to display list of all defined aliases. You can
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