Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-21-2015, 12:01 AM   #1
LQ Newbie
Registered: Jan 2015
Posts: 2

Rep: Reputation: Disabled
Question Deleting a non empty folder without having to change directories

So am at my home folder and I want to delete an unempty folder without changing directories.....what command line do I use for that
Old 01-21-2015, 12:06 AM   #2
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288

to remove a directory that contains files you can use rm with the recursive option. Eg
rm -r path/to/directory
1 members found this post helpful.
Old 02-04-2015, 09:32 PM   #3
LQ Newbie
Registered: Jan 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MyLQ, subscription folder, empty current folder fails with more than 100? threads zhjim LQ Suggestions & Feedback 2 06-08-2012 12:14 PM
Deleting empty line at end of text file in BASH human2.0 Linux - General 8 04-01-2009 03:44 AM
Deleting empty/blank line with per script knockout_artist Programming 2 10-31-2008 02:25 PM
ProFTPD - deleting non-empty directories? orange400 Linux - Software 1 05-28-2004 04:36 AM
deleting non-empty directory sadiboyz Linux - Newbie 2 04-21-2003 10:29 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:06 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration