Skip navigation

Add overwrite warnings to cp, mv, and rm

Add overwrite warnings to cp, mv, and rm: Linux: Files and Permissions
Add overwrite warnings to cp, mv, and rm: Linux: Files and Permissions

By default a lot of Linux systems will let users copy over or delete data without warning. We can turn on interactivity using the -i option to cp, mv and rm. However, if we wanted to make this behavior the default we can by aliasing these commands in our bashrc file. We also source the bashrc file so our aliases are active immediately.

Resume Transcript Auto-Scroll
Skill Level Intermediate
1h 49m
Duration
26,995
Views
Show More Show Less
Skills covered in this course
Network Administration IT Operating Systems Linux

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start Your Free Trial Now

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now