LWN.net Logo

The "yes" command existed before "-y"

The "yes" command existed before "-y"

Posted Sep 6, 2007 14:04 UTC (Thu) by hamjudo (subscriber, #363)
Parent article: The many faces of fsck

There was no need to wear out the enter key.
Before fsck had -y, you could have used
yes | fsck /dev/rd02a

You should go back in time and tell the younger version of yourself that. It will save your fingers.

If you used fsck before the yes(1) command, then suggest to yourself that you write a yes(1) command, it is only a few lines longer than /bin/true.


(Log in to post comments)

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds