How to move files instead?

060

To move files instead of copying them, you can use the mv command. Here's how you can do it:

mv file1.txt dir1/

Explanation:

  • mv file1.txt dir1/: This command moves file1.txt into the directory dir1/. After executing this command, file1.txt will no longer be in its original location.

Verify the Move:

You can check if the file has been moved by listing the contents of dir1/:

ls dir1

If you have any more questions or need further assistance, feel free to ask!

0 Comments

no data
Be the first to share your comment!