Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
delete all the files without one in linux
CElestin
Programming language:
Shell/Bash
2021-03-29 06:15:37
4
Q:
delete all the files without one in linux
anonymoo
Code:
Shell/Bash
2021-02-07 18:20:21
# delete all except the filename $ rm -v !("filename")
1
Tags
file
files
linux
Related
delete lines text file linux
linux find files without string
ubuntu delete all files with extension
remove mac ._ files windows
remove all .orig files mac terminal
delete old files linux
linux delete files in folders without deleting the folder
linux how to remove all files with grep
linux sed remove string in file
delete all files smaller than a certain size linux
linux remove all files same extension in directory
remove all files inside directory linux
how to delete files in linux
linux remove lines from file
New to Communities?
Join the community