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 movesfile1.txtinto the directorydir1/. After executing this command,file1.txtwill 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!
