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?
Comments and replies About How To Create An Empty File With Linux Shell Command Echo
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