cp: Copying FilesĪ basic example of the cp command to copy files (keep the original file and make a duplicate of it) might look like: cp joe_expenses cashflow ![]() vfor verbose, to show the files being moved one by one 2. (You must be sure your instruction is exactly what you want if you decide to apply the -f option.) ffor force, overrides all interactivity and executes the mv instruction without returning any prompts. ifor interactive, asks you to confirm if an existing file should be over written. If JOE1_expenses already exists, its content will be replaced with that of joe_expenses (and joe_expenses will still disappear). In this case, if JOE1_expenses does not exist, it will be created with the exact content of joe_expenses, and joe_expenses will disappear. ![]() Let’s start with the basic format: mv joe_expenses JOE1_expenses ![]() It also lets you rename a file (there is no separate rename command). The mv command lets you move a file from one directory location to another. For instance, to instantly seek out and move all of the files above to a subdirectory called budget, your command line instruction would simply be: mv *_expenses budgetĮach of the Linux commands to move, copy, or delete files have options to make it more productive. In the case mentioned above, the Linux command line offers far greater power and efficiency than the GUI.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |