Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

rm directory linux

To remove an empty directory, use either rmdir or rm -d followed by the directory name: 
rm -d dirname rmdir dirname.
To remove non-empty directories and all the files within them, use the rm command with the -r (recursive) option: 
rm -r dirname.
Comment

rmdir command

#usage:
rmdir <dir>
#it removes <dir>
#but if it isnt empty it will not work
#so do:
rmdir /S <dir>
#--ignore-fail-on-non-empty for linux
#to remove confirmation
rmdir /Q <dir>
#it is abbreviated to rd in cmd(windows) like all commands:)
rmdir /? #for help
#the last two are windows specific
Comment

rmdir unix

rmdir folder1  folder2 #remove empty directory folders
rm -rf folder1 folder2 #remove non-empty folders and its content recursively
Comment

rmdir linux

rmdir <filePath>
Comment

PREVIOUS NEXT
Code Example
Shell :: make kernel module 
Shell :: nextjs cli 
Shell :: For which GitHub repository would you like to set up a GitHub workflow? 
Shell :: pull all branches from remote git 
Shell :: scp command 
Shell :: linux ssh into machine with private key 
Shell :: where does the export path file in linux 
Shell :: create github repository from git bash 
Shell :: and or bash 
Shell :: heroku docker 
Shell :: no devices connected android studio 
Shell :: update centos kernel version yum 
Shell :: how to edit a file in terminal windows 
Shell :: bash shell for windows 
Shell :: install pip mac 
Shell :: vim set paste 
Shell :: ls command in terminal 
Shell :: how to uninstall a package in react 
Shell :: linux systeme de fichier 
Shell :: commit to create a customised image 
Shell :: Use linux not Windows 
Shell :: grepper kill a server 
Shell :: gimp deselect all 
Shell :: backup pihole settings 
Shell :: how to copy zip file from remote to local 
Shell :: install rubygems version =2.3.0 
Shell :: how to check echo version 
Shell :: Update local clone and rename branch 
Shell :: bash rifare ultimo comando 
Shell :: cancel jobs related to one name 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =