How To Create An Empty File With Linux Shell Command Echo



How To Create An Empty File With Linux Shell Command Echo
 (381) dminister a web business
How To Create An Empty File With Linux Shell Command Echo
Post Description:
Post Tags: how, to, create, an, empty, file, with, linux, shell, command, echo
This Post Has Been Viewed 1030 Times Since Mon Oct 22, 2007 9:33 am Posted By hostman with 1 replies
How To Create An Empty File With Linux Shell Command Echo
today i wanted to create an empty file with the echo utility. so this is how you do it:

echo > whatever_file_name.txt



now try it and tell me if it worked for you. please. i would like to know your opinion or comments so i can help as much people as i can. now that you learned something from me for free, i would like to learn something from you. thanks

did it work for you?


Leave Your Comments     [ dejar commentarios ]
  * Name     [nombre]

  * eMail (will not be published)     [coreo electronico]

* Enter Your Reply or Comments:    [commentarios]


Add Picture To Comments         [incluir foto]
YES NO             upload
Receive Replies on my Comments (An email will be sent to you when someone replies to your comments)

     

Comments and replies About How To Create An Empty File With Linux Shell Command Echo




:: 1 :: #63104 - Reply By dW On Thu Jul 24, 2008 7:09 am
i am using ubuntu and my operator command does not like to work to create any files. i can use vi, save and exit to create a blank file.

the reasoning behind me wanting a blank file in the first place is because i am creating scripts and the redirction will only work if the file is created and the owner:group are both the current user/ non-root.

please help sudo does not work either