Linux - Copying Files and Directories

​In Bash, the exact same Windows command ​can be used for copying files. ​Take a look at this directory. ​Let’s copy my_very_cool_file.txt to my desktop. ​There it is.

$ ls
my_very_cool_file.txt
$ cp my_very_cool_file.txt ~/Desktop
$ ls ~/Desktop
my_very_cool_file.txt

I can use cp *.png, ​then the desktop directory. ​Now if I look at my desktop again. ​There they are. The same copy rules apply in Bash Pasted image 20260618210603

The same copy rules apply in Bash. ​If we want to copy over directory, ​we have to recursively copy over ​the directory to get all the contents. ​The flag for recursive copy is -r. ​If I want to copy over ​my cat pictures folder to the desktop, ​I could do something like this. Pasted image 20260618210708