| Home Network Graphics Programming Misc System Help out Distributions specific contact interesting sites manpages tools FAQ Sitemap Imprint poll results Last additions: using iotop to find disk usage hogs using iotop to find disk usage hogs words:887 views:209147 userrating:May 25th. 2007: Words why adblockers are bad486 Views258317 Workaround and fixes for the current Core Dump Handling vulnerability affected kernels Workaround and fixes for the current Core Dump Handling vulnerability affected kernels words:161 views:149547 userrating:April, 26th. 2006: Words New subdomain: toolsntoys.linuxhowtos.org38 Views107122 How to force a check of the file systems How to force a check of the file systems words:179 views:37805 userrating:Oct, 18th. 2005: Words New features online: interactive search function34 Views58445 Sep, 5th. 2005: Words New website design online51 Views46344 Aug, 27th 2005: Words Existing articles can be edited by anyone now.134 Views13177 | Protecting files with noclobberThis tip is for people who have ever hosed important files by using > when they meant to use >>. Add the following line to .bashrc: set -o noclobber.The noclobber option prevents you from overwriting existing files with the > operator. Code Listing 1 % program > file2 bash: file2: cannot overwrite existing file In some cases you may really want to overwrite the file. In this case, instead of turning noclobber off, you can use >! to force the file to be written. Code Listing 2 % program >! file2 From http://www.gentoo.org/news/en/gwn/20040614-newsletter.xml back |

|
| 