logo logo
  • Articles
  • Snippets
  • Topics
    • Login
    • Register

    • Mode:

Remove everything from a folder in Linux

  • May 25, 2023
  • Snippet ยท 1 min
  • 42 words
  • Share profile in a message
  • Save your profile to PDF
  • Lock profile

  • Profile settings
  • Like (0)
  • Favorite (0)

to remove everything from a folder, open the terminal and write the command below 

sudo rm -rf /folder_directory/{*,.*}

๐Ÿ“ Remember one thing don't give a space between this {*,.*} 


Linux Server Debian, Ubuntu
avatar
Md Najmul Hasan

Similar Stories

How to copy past data from clipboard in windows to virtual box Linux

snippet
Random Stories

Getting error to install php artisan ui react --auth for Laravel react ui the error is Could not resolve dependency: peer vite@"^3.0.0" from @vitejs/[email protected]

snippet

2 dimensional array sum the value

snippet

JavaScript Find Nth Root of Number

snippet

Laravel Queue with Parameters Step by Step Example

snippet

Rename / Change a Git Commit Message

snippet