How to remove all the folders and files inside a folder in Linux/Unix
[admin@myhost test]$ ls
folder1 folder2 new file sample.txt sample.txt~ test1.txt test1.txt~
[admin@myhost test]$ rm -rf *
[admin@myhost test]$ ls
[admin@myhost test]$
[admin@myhost test]$ ls
folder1 folder2 new file sample.txt sample.txt~ test1.txt test1.txt~
[admin@myhost test]$ rm -rf *
[admin@myhost test]$ ls
[admin@myhost test]$
No comments:
Post a Comment