Learn how to permanently delete files and directories that are no longer needed.
- Now that we know how to create, … move and copy files and directories, … let's learn how to delete them in Unix. … The first and most important thing you need to know … is that deleting in Unix … is not the same as putting items in the trash … or the recycling bin on your operating system. … The trash can was a later user-friendly invention. … On Unix, when you delete a file or folder, … it is gone immediately and forever. … You can't move it back out of the trash, … it's gone permanently. … Let's go to the command line … and try deleting some files and directories. … Notice that I'm inside the my project directory, … which is inside my user home directory. … Let's start by doing ls-l so we can see what files … and directories are there. … Let's create a duplicate, a file second dot txt, … and then we'll delete it. … We learned how to use copy in the last movie. … So we'll do file underscore second dot txt. … And the new file is called delete me dot txt. … I'll do ls-l again, so we can see the file is there. …
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?
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.