Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash remove random files from directory

find /path/to/dir -type f -print0 | sort -zR | tail -zn +1001 | xargs -0 rm
Comment

PREVIOUS NEXT
Code Example
Shell :: awk csv rows to column 
Shell :: get pid of proccess 
Shell :: git link on local project 
Shell :: install Helm v3.x 
Shell :: nvcc issue in jetson nano 
Shell :: delete git local branch 
Shell :: linux install with package manager snap snapd 
Shell :: how to install gnome software center 
Shell :: how to create a patch file between 2 branches git 
Shell :: git fast forward 
Shell :: regex start word 
Shell :: bash float 
Shell :: push local to remote git 
Shell :: create branch git command 
Shell :: jenkins get last commit message 
Shell :: bash date 
Shell :: debian grub set default kernel 
Shell :: remove changes file git command 
Shell :: Can we install XAMPP on Linux from a given link 
Shell :: firebase cli 
Shell :: change php version devilbox 
Shell :: git initial commit 
Shell :: git how to not commit but keep changes 
Shell :: install go on mac brew 
Shell :: print batch 
Shell :: powershell command shutdown computer 
Shell :: sed use match in replacement 
Shell :: application version on ubuntu 
Shell :: how to clear terminal in linux 
Shell :: Unable to connect to server: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =