I want to create a file explicitly from the command line without going in to the file directly just create it. Can I do that? Thanks in advance.
man touch
hehehe, how often does a unix command open itself up to a perfect "that's what she said"
nice thanks
Or, without using an external command:
: >filename
(In any Bourne-style shell but zsh, simply ">filename" will work; zsh will insert a default command (whose default value is "cat").)
Please check the manual.
You mean this one ("REDIRECTIONS WITH NO COMMAND" in zshmisc(1))?
Otherwise, if the parameter NULLCMD is set, its value will be used as a
command with the given redirections. If both NULLCMD and READNULLCMD
are set, then the value of the latter will be used instead of that of
the former when the redirection is an input. The default for NULLCMD
is \`cat' and for READNULLCMD is \`more'.
If and only if zsh is run with the name sh or ksh, NULLCMD is set to ':' for compatibility.