Command help

nathan nolast nathan1465 at
Thu Aug 11 14:53:59 UTC 2011

nice, all great answers
i appreciate it.

On Thu, Aug 11, 2011 at 2:18 AM, Jordon Bedwell <jordon at>wrote:

> On Wed, August 10, 2011 10:18 pm, nathan nolast wrote:
> > can someone please inform me how this works
> >> filename.txt
> > this emptys the file but i cant find what > is doing, what is >
> It's called stdio redirection or some (well actually a lot of) people just
> call it I/O redirection.  You can redirect stdin and you can redirect.  <<
> < stdin stdout > >>, the proper way to truncate a file is actually ">
> file.txt" or ":> file.txt" and nothing more, no echo, with an echo of any
> kind you always end up with at least 1 byte written to the file which
> defeats the purpose of what you are trying to do if you want to down and
> dirty about it.
> --
> ubuntu-users mailing list
> ubuntu-users at
> Modify settings or unsubscribe at:

Thank you for your time
nathan1465 at

*Please consider the environment before printing this email. *

This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and delete
this e-mail from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ubuntu-users mailing list