so I accidentally ran 'sudo rm -f *' within my home directory. Should I worry about it? I did I delete hidden files? can I get it back? or did I just deleted empty folders(pictures, music,etc)?
edit: this is a fairly new install, so i didnt have any pictures, songs, etc. Also, it is a ext2 partition
rm -rf *
does not delete hidden files located directed in the directory from which it is run. It does delete hidden files in non-hidden subdirectories, since those entire directories are deleted (with all their files). In effect this means that if you run it in your home directory, then configuration files that start with.
, application configuration directories that start with.
, and the.config
directory are all spared--none are deleted. But if there are hidden files (starting with.
) inside non-hidden directories inside the home directory, those will be deleted. – Eliah Kagan May 24 '12 at 20:41rm -f *
, so unless that was a typo, it would not delete folders anyway. ;-) – reverendj1 May 24 '12 at 20:49