Move (mv)
Used to move files and directories
Usage:
mv [OBJECT] [DESTINATION]
Example
ls
dir1 dir2 dir3 dir4 dir5 dir6 dir7 file1 file2 file3 file4 file5 file6 file7
mv file1 dir1
ls dir1
file1
We moved file1 into the directory dir1. You can move directories the same way.
We can move multiple files by separating filenames with spaces.
You might have noticed that each command shares a similar usage pattern. This is one of the factors that contribute to the power of the Linux terminal. It adheres to a logical structure consistently across various commands and binaries. Much of this consistency can be attributed to the GNU project, which played a significant role in developing the standards and applications utilized in Linux.
Due to this influence, purists and Reddit users often mention Linux as GNU/Linux. In this context, GNU represents the collection of software enabling users to interact with the operating system, while Linux refers to the kernel facilitating communication between the computer and the operating system, and vice versa.