Save this video free

Lecture 5: Removing and copying files; Permissions

Burton Ma · 47:14 · Watch on YouTube

Lecture 5: Removing and copying files; Permissions Watch on YouTube →

Overview

Burton Ma explains safe Linux file removal and copying, then shows how Unix permissions control access to files and directories. He demonstrates `rm`, `rmdir`, `cp`, and `chmod`, and introduces standard input, standard output, and standard error, including redirecting command output to a file. He also warns Windows users to work in the Linux filesystem for assignment tasks that depend on case sensitivity or Linux permissions.

Key takeaways

Chapters

0:00 Windows and Linux Filesystems Can Behave Differently
3:25 Remove Files Safely with `rm` and `rmdir`
8:54 Copy Files and Directories with `cp`
15:57 Unix Permissions Separate Owners, Groups, and Other Users
21:47 Read, Write, and Execute Mean Different Things for Files and Directories
25:19 Set Permissions with `chmod` Octal Values
30:02 Change Permissions Symbolically with `chmod`
36:31 Unix Standard Streams: Input, Output, and Errors
44:21 Redirect Standard Output to a File

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:00 Uh, oh, one more thing. Um, so I've seen this twice now. Well, twice in the same office hour session. Um, oh, did I Here we go. Okay. So, if you're working in Windows, um, what you need to remember is that, uh, your Windows file, I mean, you're in Windows, so there's the Windows file system, uh, and then there's the Linux file system. And those two things are um in principle they're separate but in uh well sorry when you're thinking about them they're separate file systems but it turns out that the way it works in Windows is uh Windows has access to both file systems and your Linux file system has access to your Windows file system. um which can be problematic because if

0:49 your files are actually on your Windows file system, a lot of the Linux commands that the assignment asks you to run won't uh work the way you expect them to. So for example, copying that directory which is one of the last uh which question 11 I think uh won't work because um it asks you to copy uh a directory into another directory having the same name except the case changes in Windows. The uh Windows file system case doesn't matter. So you end up trying to copy a directory to itself um and you get the incorrect result. Similarly, Windows doesn't um support the same permissions that Linux uh provides. So, the last two questions won't work if you're on your Windows file system. The way you can tell if you're on your Windows file system is if

1:38 uh you see something like the following. So if your prompt starts with something that looks like that. So root mount C users blah your username your shell is in Windows,

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Burton Ma.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.