12 Commands Every Linux Newbie Should Learn

27.12.2010

To search for a file, you can use either "find" or "locate," both of which are very similar.

7. cp

This is the command to use when you want to create a copy of a file with a new name. Type "cp cats dogs," for instance, and you'll get an exact copy of "cats" named "dogs"; the file "cats" will still be there too.

8. mv

With "mv," you can change the name of a file or move it to another directory--or both. Typing "mv cats dogs" will rename the file "cats" to "dogs," for example, while typing "mv cats ~/desktop" will move the file "cats" to the desktop directory without renaming it.