mv Linux command is used to move files and directories from one place to another on the Linux system. We can even simulate rename with this command if both the source and destination is on the same filesystem.
mv Linux Command
Syntax of the command is as follows:
$ mv <source> <destination>
$ sudo mv jdk16 /opt/jdk
Here in this example, we are moving the jdk16 directory contents to /opt/jdk. The source is jdk16 directory. The destination is /opt/jdk
To know more about the command, visit the man page for the command.
$ man mv
In the example, we have also used sudo command. To know more about sudo command:
Linux Basic Commands Tutorial page:
More Information on Ubuntu Linux: