Linux fundamentals - Everything you need to know about copying files.🧵🐧
If you answer y, the file copy will continue; if you answer n, it will stop.
Tip💡
You should a trailing forward slash (/) at the end of directory name. The slash indicates that the projects is a directory not a filename. This is useful for clarity and is essential when copying single files.
You should a trailing forward slash (/) at the end of directory name. The slash indicates that the projects is a directory not a filename. This is useful for clarity and is essential when copying single files.
If no forward slash is used and the subdirectory
/home/traw/linux/projects does not exist, a file called projects is created in the current directory and no error message is displayed.
So you should always use forward slashes to denote directory names.
/home/traw/linux/projects does not exist, a file called projects is created in the current directory and no error message is displayed.
So you should always use forward slashes to denote directory names.
This command copied any files that started with my to MyPets. Now the directory contains three pets images instead of being empty.
Tip💡
There are numerous other cp command parameters besides those I have talked about.
Remember that by typing 'man cp' or 'cp --help', you can see all of the different parameters available for the cp command.
There are numerous other cp command parameters besides those I have talked about.
Remember that by typing 'man cp' or 'cp --help', you can see all of the different parameters available for the cp command.
That's it for today's thread!
Thank you for taking the time to read my brief Linux thread!
If you enjoyed this thread, follow me @xtremepentest for future Linux posts, which I will be posting on a daily basis.
Thank you for taking the time to read my brief Linux thread!
If you enjoyed this thread, follow me @xtremepentest for future Linux posts, which I will be posting on a daily basis.
Loading suggestions...