DEV Community

Discussion on: Title: A Beginner's Guide to Command-Line File and Directory Manipulation

Collapse
 
moopet profile image
Ben Sinclair • Edited

I think your numbering got eaten by the editor! Almost all the examples are number 1.

There's a syntax error in your example 9; it should be cp file-a file-b.

In your 8th example 1 , touch isn't a command to create a file - that's a side effect of its real purpose, and there are lots of commands which will incidentally create a file for you. More importantly (or pedantically?) you don't need to do it so it's something beginners don't need to learn.