Learn How to Use the Move and Rename Commands


show more Moving and renaming files and directories provides you with in-depth training on IT. Taught by Kevin Skoglund as part of the Unix for Mac OS X Users show less
please wait ...

Moving and renaming files and directories

In this movie we'll talk about moving and renaming files and directories. I'll start out by just doing ls -la to see what's in our user directory. A couple files that I have added here that are in the exercise files. overwrite_tests1 and overwrite_test2, those are just real simple files. Just so you can see what's in them, just overwrite_test1. I just put a bit of text in there. We'll be using that a little later on to talk about overwriting. Everything else are things we have been working on before and should be available in exercise files. So we want to move files around. All we need is the mv command.

mv, the file that we want to move, let's say we want to move newfile.txt, and then a space and then the path where we want to move it to. This can either be a relative or an absolute path. In this case, I'll just say a relative path. testdir/newfile.txt. There it is. It moved it into that directory. If we do ls -la testdir, you can see now that that's wher...

Moving and renaming files and directories
Video duration: 8m 32s 6h 35m Beginner

Viewers:

Moving and renaming files and directories provides you with in-depth training on IT. Taught by Kevin Skoglund as part of the Unix for Mac OS X Users

Subject:
IT
Software:
Mac OS X Unix
Author:
please wait ...