Learn how to move files and directories to new locations in the file system and discover how moving and renaming files are similar.
- [Instructor] Let's learn how to move … and rename files and directories in Unix. … In the graphical user interface of an operating system, … we usually use the mouse to drag files and folders around, … but in Unix we'll use commands. … I'm going to start out in my user home directory … and I'll type ls, so we can see what files … and directories are already there. … And you can see that we created these files before, … first_file.tx, we have lorem_ipsum.tx, my_project … and second_file.txt. … Those are the ones we're going to be working with here. … Let's start by moving first_file.txt … into the my_project directory. … The way that we'll do that is with the mv command for move. … So we're going to move. … And then the second thing is the target. … What do we want to move? … Well, we want to move first_file.txt. … Notice that I hit the Tab key to have it auto complete. … Where do we want to move that target to? … Well, we want to move it into my_project … /first_file.txt. … That's its new location. …
Skill Level Intermediate
1. Introduction to Unix
2. Files and Directories
3. Ownership and Permissions
4. Commands and Processes
5. Directing Input and Output
6. Configure Your Working Environment
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.