delete 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 -rf /path/to/directory/*
rm -rf directory-namerm -rf dir1
rm -rf /path/to/directory/{*,.*}
Also in Shell:
- Title
- read string by string in file in linux
- Category
- Shell
- Title
- install google client api individually
- Category
- Shell
- Title
- npm warn ws butterfly install peer dependencies
- Category
- Shell
- Title
- firewall-cmd create new zone
- Category
- Shell
- Title
- bash if statement
- 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
- free port in linux
- Category
- Shell
- Title
- change ratio vmware ubuntu
- Category
- Shell
- Title
- close all localhost connections
- Category
- Shell
- Title
- linux check used space in folder
- Category
- Shell
- Title
- install redux-thunk
- Category
- Shell
- Title
- how to open mongodb-compass
- Category
- Shell
- Title
- python print sql in shell_plus
- Category
- Shell
- Title
- intel pinning threads
- Category
- Shell
- Title
- python install random library
- Category
- Shell
- Title
- git SSL certificate problem: certificate has expired
- Category
- Shell
- Title
- linux permanent mount
- Category
- Shell
- Title
- git global ignore
- Category
- Shell
- Title
- how to install react router dom with typescript
- Category
- Shell
- Title
- git command to create a branch
- Category
- Shell
- Title
- Macbook git user config global
- Category
- Shell
- Title
- display folder of path linux bashrc
- Category
- Shell
- Title
- append a string in all files name linux
- Category
- Shell
- Title
- matplotlib change he yticks to two number after digit
- Category
- Shell
- Title
- undo git add
- Category
- Shell
- Title
- stop elasticsearch node
- Category
- Shell
- Title
- choco list installed
- Category
- Shell
- Title
- ubuntu list running services
- Category
- Shell
- Title
- how to install lightgbm on mac
- Category
- Shell
- Title
- convert all files and folders in current directory into zip in linux
- Category
- Shell
- Title
- linux generate file
- Category
- Shell
- Title
- rails no migration with version number
- Category
- Shell
- Title
- FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
- Category
- Shell
- Title
- create a screen screen session tmux
- Category
- Shell
- Title
- lstinputlisting excluse lines
- Category
- Shell
- Title
- install bootstrap in laravel
- Category
- Shell
- Title
- desktop trigger click bash shell ubuntu
- Category
- Shell
- Title
- git reset specific file
- Category
- Shell
- Title
- ngb-tabset install
- Category
- Shell
- Title
- how to uninstall kernel jupyter
- Category
- Shell
- Title
- undo add stage git
- Category
- Shell
- Title
- get random number shell script
- Category
- Shell
- Title
- git how to see changes made by a commit
- Category
- Shell
- Title
- git get remote branches
- Category
- Shell
- Title
- linux df -h levels occupy
- Category
- Shell
- Title
- powershell zip multiple files
- Category
- Shell
- Title
- linux grep
- Category
- Shell
- Title
- how to download youtube video in linux
- Category
- Shell
- Title
- linux red hat version
- Category
- Shell
- Title
- vim command to open a file
- Category
- Shell
- Title
- linux download ftp get all files and folders
- Category
- Shell
- Title
- open pdf command line linux
- Category
- Shell
- Title
- kill app at port
- Category
- Shell
- Title
- date linux show millis
- Category
- Shell
- Title
- gulp-gzip
- Category
- Shell
- Title
- linux show version
- Category
- Shell
- Title
- [mysqld] ubuntu 18
- Category
- Shell
- Title
- install node in nvm
- Category
- Shell
- Title
- linux inhalt einer textdatei anzeigen
- Category
- Shell
- Title
- SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: Connection refused : connect@src/mongo/shell/mongo.js:341:17 @(connect):2:6
- Category
- Shell
- Title
- sh declare variable
- Category
- Shell
- Title
- git worktree
- Category
- Shell
- Title
- how to install emotion in gatsby
- Category
- Shell
- Title
- bootstrap node install
- Category
- Shell
- Title
- ubuntu terminal get version
- Category
- Shell
- Title
- htaccess secure
- Category
- Shell
- Title
- start mongodb
- Category
- Shell
- Title
- get additional parameters linux scripting
- Category
- Shell
- Title
- installing git on mac
- Category
- Shell
- Title
- linux list
- Category
- Shell
- Title
- install automapper asp.net core mvc
- Category
- Shell
- Title
- how to connect to the database as root user in linux
- Category
- Shell
- Title
- git delete tag name
- Category
- Shell
- Title
- bash string starts with
- Category
- Shell
- Title
- git find merge conflicts
- Category
- Shell
- Title
- increase no of watchers
- Category
- Shell
- Title
- chocolatey installation
- Category
- Shell
- Title
- fatal: unable to access Could not resolve host wsl
- Category
- Shell
- Title
- git config --global credential.helper osxkeychain
- Category
- Shell
- Title
- long term projects for java learners
- Category
- Shell
- Title
- git list user and email
- Category
- Shell
- Title
- how to install and update git mac terminal
- Category
- Shell
- Title
- install redux
- Category
- Shell
- Title
- git merge tag to branch and squash commits
- Category
- Shell
- Title
- how to perform mathematical operations in shell script
- Category
- Shell
- Title
- git show staged files
- Category
- Shell
- Title
- add remote in git
- Category
- Shell
- Title
- unable to install deno in ubuntu
- Category
- Shell
- Title
- make recursive directory linux
- Category
- Shell
- Title
- Verificação de acesso de escrita [/srv/moodle/lib/editor/atto/plugins] Instalação abortada devido a falha de validação
- Category
- Shell
- Title
- powershell create symlink
- Category
- Shell
- Title
- get ip address linux
- Category
- Shell
- Title
- .gitignore not working
- Category
- Shell
- Title
- ubuntu check ssh login log
- Category
- Shell
- Title
- remove git credentials terminal
- Category
- Shell
- Title
- create next js app
- Category
- Shell
- Title
- install dateutil
- Category
- Shell
- Title
- install kubernetes on ubuntu
- Category
- Shell
- Title
- firewall in ubuntu 18.04
- Category
- Shell
- Title
- install ruby mac
- Category
- Shell