mv : This command is used to rename the file or directory.
Syntax:$mv <Oldfilename> <Newfilename>
or
Synatx:$mv <Olddirname> <Newdirname>
Ex:
$mv cities locations
Here we have cities file,by using mv command we rename it with locations.
and also we have directory called abc we rename it as ABC by using mv command.
after renamed we verify by using ls command.
Syntax:$mv <Oldfilename> <Newfilename>
or
Synatx:$mv <Olddirname> <Newdirname>
Ex:
$mv cities locations
Here we have cities file,by using mv command we rename it with locations.
and also we have directory called abc we rename it as ABC by using mv command.
after renamed we verify by using ls command.
No comments:
Post a Comment