Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

delete every file in directory mac

To remove all non-hidden files and sub-directories (along with all of their contents) in a directory use:

rm -r /path/to/directory/*
Comment

PREVIOUS NEXT
Code Example
Shell :: get file info linux 
Shell :: how to clone databases on mongodb atlas 
Shell :: -z option in shell script 
Shell :: ssh keep connection 
Shell :: ubuntu startup takes longer after swap file changed 
Shell :: How to download Brave Browser in a chromebook 
Shell :: terrminal generate uudi 
Shell :: watchman fatal error: openssl/sha.h: No such file or directory 
Shell :: redis bitnami/redis kubernetes and docker-compose 
Shell :: Install aaPanel linux 
Shell :: kde neon linux type 
Shell :: left navbar not showing in ubuntu 
Shell :: how to do copy all using cp command in linux 
Shell :: even digits leetcode 
Shell :: install check_mk ubuntu 20.04 
Shell :: rar command line split size 
Shell :: deleting compizconfig 
Shell :: bash #Complete the function/method so that it returns the url with anything after the anchor (#) removed. 
Shell :: command to get back shell variable from environment variable 
Shell :: wget raw to file 
Shell :: windows how to run sh script 
Shell :: run anydesk from terminal ubuntu 
Shell :: how to create ssh key for github 
Shell :: pyglet linux 
Shell :: grep in multiple files 
Shell :: rename directory from command line 
Shell :: how to access kafka command in docker 
Shell :: error installing cocoapods mac 
Shell :: how slice for loop filename without extension in batch file 
Shell :: Failed to download pear within preferred state "stable" 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =