mv (move)
The mv command is like a handy mover, allowing you to relocate files from one folder to another.
mv [source_file] [location]
For instance, to move a file named “image.jpg” from your Downloads folder to Documents, you’d use
mv ~/Downloads/image.jpg ~/Pictures
Observation
A. Executing the mv (move) command.
B. Changing the current active directory.
C. After executing ls (list) command, we can observe that the file has been transferred.
File System Navigation Commands in Linux
Linux offers an alternative to the usual windows and icons. The terminal might seem different at first, relying on text commands instead of a mouse. It might seem different at first, relying on text commands instead of a mouse. But this simplicity holds immense power.
In this article, you’ll be going through a demonstration of Navigation Commands in Linux which will help in quickly navigating in the Linux file system. Let’s go through them, but before that have a short idea of the difference between Linux and Windows file systems.
File System Navigation Commands in Linux
- Difference between Windows and Linux File System
- Commonly Used File System Navigation Commands
- 1. pwd (print working directory)
- 2. ls (list files and directories)
- 3. cd (change directory)
- 4. mkdir (make directory)
- 5. rmdir (remove empty directory)
- 6. cp (copy)
- 7. mv (move)
- Additional Shortcut Tips