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

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 :: grep v multiple word 
Shell :: install rasa 
Shell :: zsh: command not found 
Shell :: pupeteer install ubuntu 
Shell :: set date and time linux 
Shell :: discord linux arch 
Shell :: ubuntu install terraform 
Shell :: git view changes in commit 
Shell :: git remove untracked files 
Shell :: cascadia code vscode ubuntu 
Shell :: gcloud set kubectl context 
Shell :: install neofetch on ubuntu 
Shell :: terminal delete all files that start with 
Shell :: install scrollmagic npm 
Shell :: minecraft .bat code 
Shell :: show commit differences between branches git 
Shell :: i have installed android studio but is not showing in flutter doctor 
Shell :: docker prune 
Shell :: sound and video on cards will not function until mpv or mplayer is installed 
Shell :: turn redis off 
Shell :: ubuntu iso download 
Shell :: homebrew on mac 
Shell :: git set editor 
Shell :: git origin command 
Shell :: install npm colors 
Shell :: git empty commit 
Shell :: convert a WSL 1 distro to WSL 2 
Shell :: install mongo compass 
Shell :: docker run container in background 
Shell :: how to run docker in ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =