- The mv command can be used for renaming files. Try this command
and then list your files to prove that the command worked:
mv my.config new.config ls
- mv can be used to rename directories also. Try this command and
then list your files to prove that the command worked:
mv subdir4 dir4 ls
- The mv command is also used for moving files. Use the command
below to move new.sample into a new location, then list your files to
prove that the command worked:
mv new.sample dir4 ls ls dir4
- Like many other UNIX commands, mv recognizes wildcard characters.
Try the command below and then list your files to prove that the
command worked:
mv *env* dir4 ls ls dir4
0 comments:
Post a Comment