![]() Otherwise, rmdir works exactly the same as rm: Surprisingly, you can’t delete a folder using the rm command because it has its own: rmdir. How to make command line delete directory This also works for multiple files, but you’ll have to confirm the removal of each one separately. Reply y or yes followed by Enter and the file will be gone. Terminal will then ask you whether you’re sure you want to delete the file. Just use -i after the rm but before the first filename, like this: rm -i. Surprised there was no confirmation before your files were deleted? Luckily there’s a way to add one as a safeguard for not deleting the wrong file by accident. Navigate directories in your Mac and repeat the process as many times as you want. Now all the files you specified after rm are gone for good.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |