From the course: Linux: Firewalls and SELinux

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Moving files

Moving files - Linux Tutorial

From the course: Linux: Firewalls and SELinux

Start my 1-month free trial

Moving files

- [Instructor] Now that you know how to C-P files and what you should expect from the contexts and the type labels whenever you do so, let's talk about moving files 'cause it's kind of different and I wanted to show you what's going to happen and what to do about it. Files and directories keep their current S-C Linux context when they're moved, which is in stark contrast to the behavior of the copy operation. We're going to start off here. I'm already in my home directory and you can see we're going to touch movings dot T-X-T. Just going to create a new file called movings, and if I L-S dash capital Z on movings, you can see there that the user underscore home, underscore T type is enabled there, and what we're going to do is we're going to M-V this over to another directory. We're going to stick with our standard from the previous movie. We're going to M-V this into ETC. so we can see what the result will be. To do that, obviously, we need to be root, so we're going to sudo dash S…

Contents