cp (copy)
The cp command acts like a duplicator, creating a copy of a file in a new location.
cp [source_file] [location]
For instance, to copy “image.jpg” from Downloads to Pictures while keeping the original, you’d use
cp ~/Downloads/image.jpg ~/Pictures
Obervation
A. Executing the copying command.
B. Changing the current active directory for checking.
C. Using the list command, we can observe that the image.jpg was copied.
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