Re: Creating files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/20/06, Paul Howarth <paul@xxxxxxxxxxxx> wrote:
> On Thu, 2006-04-20 at 20:10 +0200, Ali Helmy wrote:
> > Hey mates,
> >
> > Can anyone tell me of a method to create a file (empty, no extension)
> > from the shell? I usually use nano, vim or emacs and just save and
> > empty buffer, but is there some-other single line syntax to creating a
> > file? something like [ mkdir DirName] in creating directories
>
> Five different people have suggested "touch filename", but here's
> another way:
>
> : > filename

I'll add my $0.02 to be funny:

$ dd if=/dev/zero of=filename bs=1 count=0

--
Chris

"I trust the Democrats to take away my money, which I can afford.  I
trust the Republicans to take away my freedom, which I cannot."


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux