Javatpoint Logo
Javatpoint Logo

Linux rm -i

The option 'i' stands for 'interactivity'. Before deleting a file it will ask you whether you want to delete it or not. To delete a file use command:

and to delete a directory use command:

We have given an example below, just have a look.

Linux rm -i

As you can see, the 'file.txt' file has been deleted with the command rm -i and 'multi' directory has been deleted with the command rm -ri.

Next TopicLinux rm -rf





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA