![]() ![]() Check that the file has been copied correctly by changing directory to folder2 and listing the contents. We can supply the cp command with the name and location of the target file to copy and where to copy the file, renaming it to test2.txt along the way. Copy and rename the test file from the home directory. Move inside folder1 and make a test file called test1.txt. From the home directory run the following command to create two new directories. ![]() Here’s an example of how it could be done.ġ. If you know the location of a file and the target location you want to copy the file to, you don’t need to move into the directories directly and you can run the cp command from the home directory.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |