Nice intro to Linux commands. I don't know why, but for creating new files I prefer redirecting with echo > file.ext. With cat problem is that textual information will be copied into destination, but maybe file is binary ? So either your proposed touch or echo with zero bytes outputed. Then you open that binary file in required edit, and here you go.
That is a good one too, the main time I use the cat redirect is if it is a quick note just because it goes straight into the interactive mode, but for anything outside of a text file echo is better for sure.
Agnius Vasiliauskas
php-dev
Nice intro to Linux commands. I don't know why, but for creating new files I prefer redirecting with
echo > file.ext. With cat problem is that textual information will be copied into destination, but maybe file is binary ? So either your proposed touch or echo with zero bytes outputed. Then you open that binary file in required edit, and here you go.