[ New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
Forum moderator: shanky, Piyu, Resh  
Deleting a non -empty directory in linux
preranaarukalaDate: Tuesday, 2014-12-09, 11:51 AM | Message # 1
Private
Group: Users
Messages: 1
Awards: 0
Reputation: 0
Status: Offline
Hi,
How to remove a directory with contents within it.
I tried with rmdir comman.But, it didnt work out.Please let me know the possible solution for this.
 
shankyDate: Tuesday, 2014-12-09, 11:59 AM | Message # 2
Lieutenant
Group: Administrators
Messages: 46
Awards: 0
Reputation: 104
Status: Offline
Hello Prerana
To delete a directory which is non-empty, try below comand:
 
rm -R NON-EMPTY-DIR
 
-R or -r Option of 'rm' command remove directories and their contents
recursively.
I hope this answers your question. If any more doubts, please reach again


s.k.bhagat
 
  • Page 1 of 1
  • 1
Search: