I need to create a new empty file with the same permissions and ownership (group and user) as the source, kind of like how cp -p FILE1 FILE1.bak works but without actually copying the contents.
I know I can empty out the contents later on, but that seems wasteful.
I cant use a script – the solution must run from the command line directly.
1 Answer