Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to delete a non empty directory in linux

1. To recursively delete use

$ rm -r dirname

2.To forcefully delete use

$ rm -rf dirname
Comment

remove empty folders linux

find . -type d -empty -print -delete
Comment

How to remove a non empty directory

//remove a non empty directory
rm -r dir1

//remove a directory within directory without being promopted
rm -rf dir1
Comment

Linux remove non empty directory

rm -rf dirnameCopy
Comment

remove a non empty directory

sudo rm -R [Directory name]
Comment

PREVIOUS NEXT
Code Example
Shell :: gitlab clone branch 
Shell :: macbook disable input from built in keyboard 
Shell :: conda install libsndfile 
Shell :: How to show date and complete time on the Ubuntu Top Panel 
Shell :: view branches not merged with master 
Shell :: ubuntu server see system temp 
Shell :: View a Particular Commit in git command 
Shell :: linux find file 
Shell :: ./utserver: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory 
Shell :: Guthub Funding.yml 
Shell :: variable replacement bash zero padding 
Shell :: where do you install composer 
Shell :: add ssh key to windows openssh client 
Shell :: how to push code into github reposityory 
Shell :: install python 3.6 cli 
Shell :: pyqt designer for linux 
Shell :: bash date 
Shell :: stop elasticsearch 
Shell :: linux create file without content 
Shell :: bash array number range from var 
Shell :: codepush get keys 
Shell :: github portfolio 
Shell :: webdev: command not found 
Shell :: cordova-plugin-facebook4 update 
Shell :: windows battery report health 
Shell :: grep something before 
Shell :: mac change file created file changed 
Shell :: Install OSSEC in Linux 
Shell :: sed output to file 
Shell :: mqtt client ubuntu console 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =