We\'ve detected that you\'re using AdBlock Plus or some other adblocking software. Please be aware that this is only contributing to the demise of the site. We need money to operate the site, and almost all of that comes from our online advertising.

Linux tips and tricks for all users.

Strange bash piping method that actually does work. And fixing hard disk partitions with fsck.

This is a strange bash piping method that actually does work. This pipes the output of one echo command and appends it to another.

homer@neo:~$ echo "Hello World" >| echo "Me" > out.txt
My laptop needing fsck.
My laptop needing fsck.

You should not use this syntax in reality; but this is an interesting trick nonetheless. This is an interesting photograph. I booted up my Debian 7.0 laptop today and it had a problem with the /dev/sda1 partition. I typed the root password and ran the fsck /dev/sda1 command to fix the issue. This can happen from time to time; but it not too hard to fix when you have experience with Linux. There are more examples of usage for the fsck command here: http://www.thegeekstuff.com/2012/08/fsck-command-examples/. My example only required me to run the command and then use Ctrl-D to to exit the shell and this then re-booted my laptop and then the problem was fixed.

Post a Comment

Your email is kept private. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Current day month ye@r *