I want to remove all files and folders in folder /home/user I'm using command
rm -rf /home/user/*
without success, next I tried:
cd /home/user;rm -rf *
Which gives the following output
rm: cannot lstat `*': No such file or directory
How do I solve that? If I'm deleting file one by one, it works, but with "*" it does not.