A Quote from qotd.org
Archives
- September 2017
- June 2017
- February 2017
- June 2016
- December 2015
- September 2015
- July 2015
- June 2015
- January 2015
- November 2014
- August 2014
- June 2014
- May 2014
- April 2014
- February 2014
- January 2014
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- March 2013
- February 2013
- January 2013
- November 2012
- August 2012
- June 2012
- February 2012
- January 2012
- December 2011
UserOnline
Recent comments
Category Archives: Linux
How to strip a certain number of Bytes from the end of a file in bash
To crop the last n Bytes from a file you can use the truncate command. [u_r_the_man@TESTBOX ~]$ truncate –size=-n <filename>Where n represents the number of Bytes to cut from the end of <filename>. The advantage is that the command will … Continue reading
Posted in Bash, Beginner, Linux
Leave a comment
Execute multible commands on a remote machine using SSH
To execute a number of commands on a remote machine you can create a file that contains the commands that you want to execute. This file can then be ‘cat’ed to your ssh command. I wrote one command file to … Continue reading
Posted in Bash, Beginner
Leave a comment
Send output of a bash script to the console and to a file
Sometimes it is necessary to send the output of a script to different targets. If you want to send the output to a text but want to be able to see it on the console as well you can use … Continue reading
Posted in Bash, Beginner
Leave a comment
LVM: Howto increase the size of a filesystem on-the-fly
Oops, that is not good 🙁 /dev/mapper/database_vg-db_vol 690G 655G 12K 100% <the SHADOW database filesystem> This happened at 4am. What can you do in case that this happens to you? Praying is always a solution. The better solution is checking … Continue reading
Posted in Apps, Beginner, Linux
Leave a comment