Use the following command to rename the file textfile, in the local directory, to datafile:
macmv textfile datafile |
Use the following command to rename the directory textfiles in your home directory to datafiles and move it to the /home/macapps directory:
macmv ~/textfiles /home/macapps/datafiles |
Use the following command to move the file textfile in the current directory and the contents of the directory datafiles in your home directory to the directory /usr/mac and prompt for confirmation:
macmv -i textfile ~/datafiles /usr/mac |