How to remove directories or files in Linux
This tutorial explains how to remove directories or files in Linux.
You can use rm command to remove directories or files in Linux environment.
First we can check how to use rm in Linux command line.
- How to remove one single file in Linux
- rm space filename
- Eg:
#rm file.txt
- Remove file in the specific path
- rm directory path/filename
- Eg:
#rm /home/file.txt
- How to remove multiple files
- rm file1 file2
- Eg:
#rm file1.txt file2.txt
There are a lot of options available in rm. Use man rm command and check all things. Now we are going to check what the options available in rm and how it uses for the command line.
rm [option] filename or directory
- -f, –force remove file or directory without asking confirmation message.

- -i asking user confirmation before delete file. This is one of the secure options to delete files in the Linux command line. The message will different empty files vs. other files.

- -I if you are going remove more than 3 files you can use this option.

- -r, -R, –recursive remove files or directory safely

- -d, –dir remove empty directory
- –help rm help page

- How to remove all files in directory and remove files Linux using specific extension.

Like!! Great article post.Really thank you! Really Cool.
We appreciate your feedback and thank you.
Saved as a favorite, I like your website!
This website online is mostly a stroll-through for all the data you wanted about this and didn抰 know who to ask. Glimpse right here, and you抣l undoubtedly uncover it.
Youre so cool! I dont suppose Ive learn something like this before. So nice to seek out somebody with some authentic thoughts on this subject. realy thanks for starting this up. this web site is one thing that’s wanted on the net, someone with slightly originality. useful job for bringing something new to the internet!
Youre so cool! I dont suppose Ive learn something like this before. So good to seek out somebody with some original ideas on this subject. realy thanks for starting this up. this web site is something that is wanted on the internet, someone with somewhat originality. helpful job for bringing something new to the internet!
Excellent post. I will be experiencing a few of these issues as well.. Cinderella Wyatan Petronia
Thank you a lot for sharing this with all
of us you actually know what you’re talking approximately! Bookmarked.
Kindly also discuss with my web site =). We could have a hyperlink change agreement among us
There is noticeably a package to know about this. I assume you made certain great factors in functions additionally. Cristina Zak Sigmund
Thanks so much for providing individuals with such a pleasant possiblity to read from this website. It can be so brilliant plus stuffed with amusement for me and my office friends to search your blog no less than thrice per week to study the latest secrets you have. And of course, I am just actually pleased considering the astounding points served by you. Selected 2 tips in this article are easily the finest I have ever had.
Thanks for sharing your info. I truly appreciate your efforts and I am waiting for your further post thanks once again. Sherye Bronny Hermione
please visit the internet sites we comply with, including this a single, as it represents our picks through the web Edyth Freemon Billat
Very nice blog post. I definitely love this website. Keep it up! Madelyn Hastings Cohn
A lot of thanks for all your valuable effort on this web site. My mother takes pleasure in making time for investigation and it’s really simple to grasp why. My spouse and i hear all relating to the powerful ways you give insightful tips and tricks through your blog and even encourage contribution from some others on the theme so our own daughter is now studying so much. Enjoy the rest of the new year. You are always conducting a terrific job.
I am just commenting to let you know what a superb experience my friend’s girl undergone visiting your blog. She figured out a good number of things, which include what it’s like to possess an incredible teaching mindset to get other folks with no trouble have an understanding of specific impossible subject matter. You truly surpassed people’s desires. Thanks for coming up with those priceless, dependable, educational and in addition fun tips on your topic to Lizeth.
I happen to be writing to let you be aware of of the awesome experience my child obtained reading through yuor web blog. She came to understand several issues, including what it’s like to have a marvelous teaching style to let other individuals with ease know various impossible issues. You actually exceeded our own expected results. I appreciate you for showing such good, trusted, explanatory not to mention cool thoughts on the topic to Sandra.
Nice articles bruh! Like and favorite list add!
A lot of thanks for all of the labor on this site. Debby really likes engaging in internet research and it’s easy to understand why. Most of us learn all concerning the powerful form you present valuable ideas by means of the web site and as well as foster participation from others on the point then our own girl has always been understanding a great deal. Take pleasure in the remaining portion of the new year. You’re conducting a first class job.
I want to express my affection for your kindness giving support to individuals who really want assistance with this concept. Your very own dedication to getting the message all over appears to be incredibly effective and has regularly permitted ladies much like me to attain their aims. Your entire insightful information implies this much to me and far more to my peers. Warm regards; from all of us.
I am also writing to let you be aware of what a remarkable encounter our girl went through viewing the blog. She came to understand lots of issues, not to mention how it is like to possess an amazing coaching character to have other folks effortlessly know just exactly some grueling issues. You truly surpassed readers’ expectations. I appreciate you for churning out these powerful, trusted, edifying and as well as easy thoughts on your topic to Ethel.
Thank you so much for providing individuals with an extraordinarily spectacular opportunity to discover important secrets from this website. It’s always very excellent and also jam-packed with a great time for me and my office acquaintances to search your web site more than thrice in one week to study the newest tips you have got. Not to mention, I am certainly contented with all the very good pointers served by you. Certain 1 tips on this page are essentially the most efficient we have all had.
I’ve been browsing online more than 2 hours today, yet I never found any interesting article like yours. It’s pretty worth enough for me. Personally, if all site owners and bloggers made good content as you did, the net will be much more useful than ever before.|
I and my guys happened to be taking note of the nice things from your web site and so then I got a terrible feeling I had not thanked the website owner for those tips. My men were as a result passionate to read them and have in effect surely been having fun with those things. We appreciate you truly being simply kind and also for deciding on this sort of important topics most people are really desperate to be informed on. Our sincere regret for not expressing appreciation to you earlier.
I’m not sure why but this web site is loading extremely slow for me. Is anyone else having this issue or is it a issue on my end? I’ll check back later and see if the problem still exists.|
Spot on with this write-up, I truly believe that this amazing site needs far more attention. I’ll probably be returning to read through more, thanks for the advice!|
Keep on writing, great job!|
Thank you for the auspicious writeup. It in fact used to be a enjoyment account it. Glance advanced to far delivered agreeable from you! However, how can we communicate?
Great blog here! Also your web site loads up fast! What host are you using? Can I get your affiliate link to your host? I wish my site loaded up as fast as yours lol|
I like looking through a post that will make men and women think.
Also, many thanks for permitting me to comment!
I all the time emailed this web site post page to all my associates, as if like to read it next my contacts will too.|
Wonderful article! That is the type of info that are supposed to be shared around the net. Disgrace on Google for no longer positioning this publish upper! Come on over and seek advice from my web site . Thank you =)|
Hey there! This is kind of off topic but I need some help from an established blog.
Is it hard to set up your own blog? I’m not very techincal but I can figure things out pretty fast.
I’m thinking about setting up my own but I’m not sure where to begin. Do you have
any tips or suggestions? Thanks