To delete Linux directories with the rm command, you have to specify the -r option, like this: The -i stands for "inquire", so when you use this option the rm command prompts you with a yes/no prompt before actually deleting your files: ![]() If you prefer to be careful when deleting files, use the -i option with the rm command. You can also use the rm command to delete multiple Linux files at one time, like this: In its most basic use, the rm command can be used to remove one file, like this: Let's take a look at some rm command examples, starting from easy examples to more complicated examples. (As its name implies, this is a dangerous command, so be careful.) The Linux rm command is used to remove files and directories. ![]() Linux FAQ: How do I delete files (remove files) on a Unix or Linux system?
0 Comments
Leave a Reply. |