Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

linux delete all file in current directory

sudo rm -fr * .*
Comment

remove all files inside directory linux

# remove everything in a directory 
rm /path/to/dir/*
# remove all sub-directories and files
rm -r /path/to/dir/*
Comment

delete all files in linux

Deletes all files in current directory, including hidden

rm -rf {,.[!.],..?}*
Comment

remove all files in a directory linux

rm -rf .trash/*

//trash folder name
Comment

PREVIOUS NEXT
Code Example
Shell :: install nvm via npm 
Shell :: ubuntu upgrade 
Shell :: bash read file line by line with spaces 
Shell :: aws cli update profile variable 
Shell :: git stash list with date 
Shell :: how to add application to unity launcher 
Shell :: linux search inside files 
Shell :: install torch anaconda 
Shell :: vercel cli 
Shell :: git username and password in terminal 
Shell :: windows docker update clock 
Shell :: installing gunicorn with anaconda 
Shell :: how to exit telnet linux 
Shell :: ubuntu get external ip 
Shell :: edit iptables 
Shell :: uninstall mono ubuntu 
Shell :: how to install vs code on fedora 
Shell :: open folder in gui from terminal linux 
Shell :: aws eks update-kubeconfig 
Shell :: how to check if a python script is running 
Shell :: git pull remote branch 
Shell :: bash scripting string comparison 
Shell :: how to activate virtual environment using ubuntu 
Shell :: install poetry 
Shell :: CommandNotFoundError: Your shell has not been properly 
Shell :: how to install limma in r 
Shell :: how to install visual studio code in ubuntu 
Shell :: kubectl without sudo 
Shell :: uptime kuma docker compose 
Shell :: bash delete a range of lines from a file 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =