![]() ![]() Rm -i MyFile.rtf M圜V.rtf MyGreatAmericanNovel.rtf Or, in the case of deleting multiple files: So if you're feeling cautious, you could run the above commands with this flag as follows: rm -i MyFile.rtf You can't click on the Trash icon and retrieve files you've accidentally deleted.īut there is a safety net: it's the -i (interactive) flag. It's worth repeating: this command deletes files. Rm MyFile.rtf M圜V.rtf MyGreatAmericanNovel.rtfĪgain, pressing the Return key does the dirty work. If you have three files on your Desktop that you want to delete, and you want to delete them all at once, you can do so like this (if you have a file name with spaces, you need to put the name in quotes: "For Example.txt".): You can even delete multiple files in a single command. When you press Return, the file will go poof! The Mac doesn't confirm if you want to delete the file. (If you have a file name with spaces, you need to put the name in quotes: "For Example.txt".) If you had a file here named MyFile.rtf that you never, ever wanted to see again, you could run this command: To delete a file, type rm filename, replacing filename with the actual name of the file you want to delete. After you launch Terminal (in your /Applications/Utilities folder) type cd ~/Desktop to navigate to the Desktop directory. It's dangerously easy to delete files with the rm command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |