![]() ![]() Now if we want to copy a directory from one place to another Now if we want to copy everything that contains the folder where we are positioned to another directory: This command is usually used a lot to make backups of a file or folder that is going to be edited, since it creates a total copy, but with a different name, a practical example:Ĭp archivo1 /carpeta1 /carpeta/carpeta /ruta/de/destino ![]() Un simple command to copy a file or folder from one directory to another: How to copy files in Linux?įor this case it is almost similar unlike that, to move files or folders from one to another, here keep files and folders in their place of origin and create a copy in a chosen directory. To know a little more about the command we can use its man or with the -help parameter, here we will see all its parameters. Up to this point it is a bit clear how it works and how we can facilitate the task in various ways, but what happens when we want to move everything in a directory, both files and subfolders.įor this we are going to use the *, for example, I want to move everything that I decompressed from wordpress to two previous directories: The same applies for all those files with the same type, for example. So, as we can see, they have the same "AMD" base to move all those files with that same base nomenclature, we do the following: Tips: More than 400 commands for GNU / Linux that you should know □ ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |