Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash remove directory

rm -rf directory-name
Comment

bash delete folder

# EXAMPLE
rm -r YourFolderName

# SYNTAX
# rm [option(s)-if-any] <folder(s)-to-remove-including-contents>

# +---------+------------------------------------------------------------------+
# | OPTIONS |  DESCRIPTION                                                     |
# +---------+------------------------------------------------------------------+
# |   -f    |  Force: ignore nonexistent files, never prompt                   |
# |   -i    |  Interactive: prompt before every removal                        |
# |   -I    |  Interactive: only prompt before removing more than three files  |
# |   -r    |  Recursive: remove directories and their contents recursively    |
# |   -v    |  Verbose:  explain what is being done                            |
# +---------+------------------------------------------------------------------+
Comment

delete a directory bash script

rmdir dirname
Comment

PREVIOUS NEXT
Code Example
Shell :: gitlab create branch 
Shell :: how to reduce slug size heroku 
Shell :: how to remove a non empty directory in linux 
Shell :: install rasa 
Shell :: install vlc on ubuntu 20.04 
Shell :: ssh and execute command in one line 
Shell :: pip upgrade all 
Shell :: git remove chached 
Shell :: docker save 
Shell :: styled typescript 
Shell :: docker install ubuntu 22.04 
Shell :: git pull shows already up to date 
Shell :: how to update forked repo in github 
Shell :: pip install --upgrade 
Shell :: curl head request 
Shell :: git checkout commit 
Shell :: get total installed List from ubuntu terminal 
Shell :: list groups of an user linux 
Shell :: git force push to remote 
Shell :: varible 
Shell :: Install Docker Engine on EC2 Instance 
Shell :: How do I run multiple commands on one line in PowerShell? 
Shell :: installing mongodb on m1 mac 
Shell :: scikit-learn python 
Shell :: remove commit not pushed 
Shell :: conda install regex 
Shell :: assign contents of file to variable bash 
Shell :: kubectl live logs 
Shell :: list remote branches git 
Shell :: adb screen record 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =