Shell Scripting Tutorial-6: Rename & Delete Files & Directories

Shell Scripting Tutorial-6: Rename & Delete Files & Directories


In this tutorial you'll learn to rename files using 'mv' command and you'll also learn to delete files and directories using 'rm' and 'rmdir'


Official Facebook Page: http://www.facebook.com/TheBadTutorials
Closed Caption:

hello guys my name is mother and welcome
to my channel
this is the sixth tutorial in the series
of tutorials on unix shell programming
in this tutorial will be checking out
the MV command which is used to rename
files and directories and will also be
learning how to remove or delete diet
Ruiz through the terminal using the RM
come on now what I'm going to do is I'm
going to first create a file using touch
touch is something that we learned about
tutorials ago
don't really remember a recorded a few
days ago so anyway we type in touch and
then give a space character and then
type in a name for our file
let's call this one
anything let's call it a forest
underscored gump right and i can
actually see in my home folder that my
father has been created
it's an empty text part and that's what
does for you now if suppose I want to
rename this file from Forest underscored
come too
I
anything that said if I want to be in it
rename it to the green month then i'll
be using the mb come on
and we will give a space type in the
name of my file that i want to be made
three name which is a forest underscore
come and then give another space
character and then type in the new name
for my 5 which would be the underscore
green underscore mine and if i type and
enter here then I'll see in my home
folder I no longer have my file forrest
gump because it has been renamed to the
Green Man
that is what Emily does for you it works
the same for my crease
if I have a dark tree are called new and
if i want to change it to all then you
know I'll simply have to type in RM
space new space old and press ENTER and
my diet will be renamed the next thing
that we're going to check out is how to
remove files of our crease using the RM
command
not if suppose I want to remove my file
the green month the command to use RM r
type in RM give a space and then type in
the name of my fire which is the
underscore green underscore mind if i
press Enter key
I see that my file is no longer there
right so it has been deleted
now what I'm going to do is I'm going to
first create a diet pre using mkdir and
i'll call it new
press ENTER and I see in my home folder
that I am I dietary right here now
I try to remove the start for using RM
RM space knew that's how it should be
because uh you know that's how we did it
for the file so you know let's try to
repeat it for a blackberry but we get an
error message system
it says that autumn cannot remove new
because it is a dietary but then RM is
capable of removing diet trees
you just have to provide an option so
that it knows that what it's trying to
remove the dietary and
you know it's it's it's sort of like
commanding a command to just obey the
orders and you know not think about the
consequences so we have to type in RM
and then
- r is the option and i just typed in RM
first give a space and then type in -
are and another space in this time if i
type in my night rename and press enter
I don't get any error message and i can
see in my home folder
sorry that my new folder is not there
now another thing that you can do if you
do not want to use our with the - our
option to remove dark trees is that we
first create one
mkdir test if I have been enter i see
that i have a test folder in my home
folder if I want to delete it without
using our mi can use a command called
rmdir it's a substitute for arm - are
and if I taipei now the name of my
dietary which in this case is test
that's what I want to remove the press
Enter I can see that in my home folder
test no longer exists
so that's it for this tutorial these are
d two commands that I wanted to discuss
with you guys and in the next tutorial
we will learn how to copy files using CP
and also how to create links both kinds
of links often as well as hard links so
stick with me i hope you guys are having
fun watching the tutorials
thank you so much for watching this of
this one and please subscribe too much

Video Length: 04:37
Uploaded By: The Bad Tutorials
View Count: 103,016

Related Software Products
Rename Files
Rename Files

Published By:
Haizon Corporation

Description:
Rename Files - want to Rename Files? How to rename files automatically? Rename files on computer and batch rename files on hard drives, automatically rename files in any folder and bulk rename files in the directory you specified. Rename files - Download software to batch rename files at RenameFiles.net !BRBR How to rename files? Want to rename files automatically? Batch rename files with the file renaming tool. This software to rename files can bulk rename files on the Windows computer ...


Related Videos
www.LongPathTool.com - Delete / Rename / Copy / Unlock long path files / folders
www.LongPathTool.com - Delete / Rename / Copy / Unlock long path files / folders

http://LongPathTool.com Do you have error messages?, like : Path too long. Error cannot delete file: cannot read from source file or disk Cannot delete file: Access is denied There has been a sharing violation. Cannot delete file or folder The file name you specified is not valid or too long. Specify a different file name. The source or destination file may be in use. The file is in use by another program or user. Error Deleting File or ...
Video Length: 03:31
Uploaded By: TheLeeTun
View Count: 179,043

Fix "_except_handler4_common" file problem Easy
Fix "_except_handler4_common" file problem Easy

res a tutorial to how to fix " the procedure point / entry _except_handler4_common could not be located in the dynamic link library msvcrt.dll" problem when starts windows or some program 1) go to C:/WINDOWS/System32 2) find and rename file "dwmapi.dll" to "dwmapi.dll_old" if u cant rename to that just go to in folder menu : Tools \ Folder Options \ View \ scrool down and uncheck " Hide extensions for known file types " and you'll do it. if you ...
Video Length: 05:22
Uploaded By: sundowave
View Count: 161,480

FileBot TV Renamer Tutorial
FileBot TV Renamer Tutorial

Check out how to efficiently rename and organize your tv show or movie files using FileBot. Just watch the first 30 seconds and you're good to go. http://www.filebot.net/ Here's the testdata used in the screencast: http://rednoah.users.sourceforge.net/... If you have issues with badly named files you should really check this one out as well: http://www.youtube.com/watch?v=OJca0i... Feel free to make your own video tutorial on how to use FileBot... sure ...
Video Length: 13:07
Uploaded By: Reinhard Pointner
View Count: 140,166

How to Tag and Rename Music Automatically For Free (MyTechAdventures.com)
How to Tag and Rename Music Automatically For Free (MyTechAdventures.com)

This short video will show you how to correctly tag and rename thousands of songs in less than 10 minutes using the cross-platform MusicBrainz Picard. The best part is that its free! Relevant Links: http://musicbrainz.org/doc/MusicBrain... http://acoustid.org/chromaprint#download (fpcalc) http://acoustid.org/api-key (acoustic-id API key) Questions? Follow us @MyTechAdventure on twitter BACK UP YOUR LIBRARY BEFORE STARTING! hr ...
Video Length: 02:51
Uploaded By: My Tech Adventures
View Count: 122,676

MusicBrainz Picard - Auto ID3 Tag Rename & Cover Art - Linux Mint 8
MusicBrainz Picard - Auto ID3 Tag Rename & Cover Art - Linux Mint 8

install picard http://musicbrainz.org/doc/MusicBrain... MusicBrainz Picard is a cross-platform (Linux/Mac OS X/Windows) application written in Python and is the official MusicBrainz tagger. Picard supports the majority of audio file formats, is capable of using audio fingerprints (PUIDs), performing CD lookups and disc ID submissions, and it has excellent Unicode support. Additionally, there are several plugins available that extend Picard's features. When ...
Video Length: 08:36
Uploaded By: gotbletu
View Count: 108,478

Mac Tips:(Automator Tutorial) How to rename multiple files in OS X.
Mac Tips:(Automator Tutorial) How to rename multiple files in OS X.

How to rename multiple files in OS X. Follow me on twitter: http://bit.ly/Hs4Zmn hr / bClosed Caption:/b she was so this is a video to show you guys how to use or two meter to rename files now as you all know renaming files can be hassle yet to go to a and then click on a and rename each possible the ACO 19 pictures hand to remain love them one by one would take me agents so there's a quickly ...
Video Length: 03:22
Uploaded By: readthename
View Count: 97,884

Batch Programing: Lesson 4 (How to Copy,Move and Rename files + MORE)
Batch Programing: Lesson 4 (How to Copy,Move and Rename files + MORE)

Playlist: http://www.youtube.com/playlist?list=... Video 1: http://www.youtube.com/watch?v=kboexp... Video 2: http://www.youtube.com/watch?v=_eQRPI... Video 3: http://www.youtube.com/watch?v=MdcHOT... Facebook: https://www.facebook.com/technologycrazy Twitter: https://twitter.com/technologycrazy Website: http://www.technologycrazy.info/ Hey technologycrazy here and today Im going to tech you how to copy,move and rename files + tips and tricks.br ...
Video Length: 06:55
Uploaded By: Technologycrazy
View Count: 92,969

How to Rename and Delete Files with Long Names on Windows 7, 8, 8.1, 10  using Winrar or 7Zip
How to Rename and Delete Files with Long Names on Windows 7, 8, 8.1, 10 using Winrar or 7Zip

Easiest way to rename files with long names if you get the error "The file name(s) would be too long for the destination folder. You can shorten the file name and try again, or by a location that has a shorter path." You can Rename file from a winrar and then delete it normally. ************************************************************************** If you liked this video, make sure you subscribe to my YouTube channel right here: ...
Video Length: 01:41
Uploaded By: GreedyTech
View Count: 92,402

How to rename a file or folder with one click in Mac OS X Lion
How to rename a file or folder with one click in Mac OS X Lion

Lion - http://bit.ly/pnaqZb | Written instructions - http://bit.ly/nDrMmo How to rename a file or folder with one click in Mac OS X Lion hr / bClosed Caption:/b hey guys it's brian with Apple headlines I found a neat little trick to rename files with one mouse click is kinda useful obviously if you need to rename a file real quick you could there's many ways to do this but this is a way I found to do it in one ...
Video Length: 01:30
Uploaded By: AppleHeadlinesdotcom
View Count: 71,221

Copyright © 2025, Ivertech. All rights reserved.