remove directory linux
Shell
rm -rf /path/to/directory
# To delete a single file, use the rm or unlink command followed by the file name:
unlink filename
rm filename
# To delete multiple files at once, use the rm command followed by the file names separated by space.
rm filename1 filename2 filename3
# 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
# To remove non-empty directories and all the files without being prompted, use rm with the -r (recursive) and -f options:
rm -rf dirname
#To remove multiple directories at once, use the rm -r command followed by the directory names separated by space.
rm -r dirname1 dirname2 dirname3
rm -f /path/to/directory/{*,.*}
rm -rf /path/to/directory/*
rm -r pathrm -R directory
Also in Shell:
- Title
- linux vim replace all
- Category
- Shell
- Title
- linux command to list directory size
- Category
- Shell
- Title
- npm list global packages
- Category
- Shell
- Title
- linux os update
- Category
- Shell
- Title
- "git checkout -b" example
- Category
- Shell
- Title
- free port in linux
- Category
- Shell
- Title
- lstinputlisting excluse lines
- Category
- Shell
- Title
- create github repo with bash
- Category
- Shell
- Title
- conda install keras
- Category
- Shell
- Title
- cmd for loop
- Category
- Shell
- Title
- createa. branch off of development git
- Category
- Shell
- Title
- Why are there two ways to unstage a file in Git?
- Category
- Shell
- Title
- how to install nvm in mac
- Category
- Shell
- Title
- error: src refspec master does not match any. git
- Category
- Shell
- Title
- how to uninstall npm package
- Category
- Shell
- Title
- macos homebrew unattended cask installs
- Category
- Shell
- Title
- install nuxt
- Category
- Shell
- Title
- docker build from github repository
- Category
- Shell
- Title
- How to find your ip on debian linux wsl
- Category
- Shell
- Title
- git rebase vs merge
- Category
- Shell
- Title
- shell set environment variable
- Category
- Shell
- Title
- rtl8821ce driver linux
- Category
- Shell
- Title
- pip install upgrade all
- Category
- Shell
- Title
- install x centos 7
- Category
- Shell
- Title
- bash: zipalign: command not found
- Category
- Shell
- Title
- docker logs tail
- Category
- Shell
- Title
- git merge pushed commits
- Category
- Shell
- Title
- install vim mac
- Category
- Shell
- Title
- ubuntu add user to group
- Category
- Shell
- Title
- count occurrences of word in file linux
- Category
- Shell
- Title
- whats up with docker compose and orphan containers
- Category
- Shell
- Title
- timedatectl
- Category
- Shell
- Title
- kali linux change keyboard layout
- Category
- Shell
- Title
- npm install bootstrap 3.3.7
- Category
- Shell
- Title
- how to rename working directory in linux
- Category
- Shell
- Title
- gatsby starter hello world
- Category
- Shell
- Title
- too many security failures vnc
- Category
- Shell
- Title
- ubuntu stop process on port
- Category
- Shell
- Title
- undo add stage git
- Category
- Shell
- Title
- npm warn ws butterfly install peer dependencies
- Category
- Shell
- Title
- mostrare i grafici matplotlib sulla shell python
- Category
- Shell
- Title
- how to install lightgbm on mac
- Category
- Shell
- Title
- git merge branch
- Category
- Shell
- Title
- install node js ubuntu
- Category
- Shell
- Title
- how to revert to log in git
- Category
- Shell
- Title
- gumlet/php-image-resize 1.9.2 requires ext-gd *
- Category
- Shell
- Title
- install docker linux
- Category
- Shell
- Title
- nano edit a file
- Category
- Shell
- Title
- npm install @angular/fire firebase –save
- Category
- Shell
- Title
- electron
- Category
- Shell
- Title
- dnstwist kali linux
- Category
- Shell
- Title
- apt get install docker compose
- Category
- Shell
- Title
- linux scp
- Category
- Shell
- Title
- how to use gitignore to ignore a folder
- Category
- Shell
- Title
- git clean
- Category
- Shell
- Title
- linux inhalt einer textdatei anzeigen
- Category
- Shell
- Title
- install rbenv
- Category
- Shell
- Title
- ubuntu 16.04 bluetooth not detecting devices
- Category
- Shell
- Title
- powershell script to copy mutliple files into a single file
- Category
- Shell
- Title
- hide hidden files mac
- Category
- Shell
- Title
- python virtualenv
- Category
- Shell
- Title
- npm ERR! path /usr/local/lib/nodejs/node-v10.15.3-linux-x64/lib/node_modules while installing angular cli
- Category
- Shell
- Title
- git push to heroku
- Category
- Shell
- Title
- ubuntu activate venv
- Category
- Shell
- Title
- how to know partition of current directory
- Category
- Shell
- Title
- gzip folder with tar
- Category
- Shell
- Title
- how to uninstall rust
- Category
- Shell
- Title
- linux install ifconfig
- Category
- Shell
- Title
- download images from url terminal
- Category
- Shell
- Title
- install docker on ubuntu 18.04
- Category
- Shell
- Title
- install skimage
- Category
- Shell
- Title
- tcr test commit revert
- Category
- Shell
- Title
- Running modprobe bridge br_netfilter failed with message: ip: can't find device
- Category
- Shell
- Title
- bash display items in array
- Category
- Shell
- Title
- how to rsync linux
- Category
- Shell
- Title
- disable open file explorer erverytime i connect usb ubuntu
- Category
- Shell
- Title
- how to grep if the first letter is a character not a number
- Category
- Shell
- Title
- pycharm duplicate line
- Category
- Shell
- Title
- git discard all unpushed commits
- Category
- Shell
- Title
- GVfs metadata is not supported. Fallback to TeplMetadataManager.
- Category
- Shell
- Title
- linux compress a pdf
- Category
- Shell
- Title
- brew install ruby
- Category
- Shell
- Title
- how to change password in linux
- Category
- Shell
- Title
- linux ram drive
- Category
- Shell
- Title
- adding an existing project to github using the command line
- Category
- Shell
- Title
- git amend
- Category
- Shell
- Title
- How do I show the changes which have been staged
- Category
- Shell
- Title
- Endpoint Security VPN build 986000724 is already installed on this computer.
- Category
- Shell
- Title
- git search all commits for string
- Category
- Shell
- Title
- git SSL certificate problem: certificate has expired
- Category
- Shell
- Title
- how to install pil in anaconda
- Category
- Shell
- Title
- how to run shell script
- Category
- Shell
- Title
- mac cleanup github
- Category
- Shell
- Title
- unzip gz file linux
- Category
- Shell
- Title
- directory diff
- Category
- Shell
- Title
- install opencl headers ubuntu
- Category
- Shell
- Title
- install snap change in progress ubuntu
- Category
- Shell
- Title
- how to convert ppk to pem in linux
- Category
- Shell
- Title
- convertingwav to mp3 linux ffmpeg
- Category
- Shell
- Title
- The repository 'https://download.docker.com/linux/ubuntu focal Release' does not have a Release file
- Category
- Shell