mv profile mysubdirectory
mv stands for “move.” You’ve moved the file profile from the current directory into the subdirectory you created earlier.
ls
Verifies that profile is no longer in the current directory.
ls mysubdirectory
Verifies that profile has moved to mysubdirectory.
cd mysubdirectory
Changes to the subdirectory.
mv profile myprofile
Note that unlike some operating systems, there is no difference between moving a file and renaming it. Thus there’s no separate rename command. Note that the second argument to mv can be a directory to move the file or directory into, or it can be a new filename. cp works the same way.