I've been using Ubuntu server at home for a while now, and I've noticed I've some holes in my knowledge of bash and in general several dangerous tools like rm.
It is first time in my life I used rm to delete something I didn't intend to...
pwd
: /media/storage/vod
ls
: css html series music movies
sudo rm *.QTFS
sudo rm -rf *.QTFS
What is the difference between these two above? I've filename specified. So will recursion look within all sub directories for *.QTFS or just inside current dir (vod)? I imagine later... so in this case recursion flag doesn't do anything, correct?
sudo rm -R *.QTFS series/*
This was my undoing command. Anyhow, so in this case I just gave rm two separate delete commands, correct?
first delete recursively *.QTFS, but this part only looks inside current dir (vod).
Second deletes recursively contents of series directory.
In essence I'm trying to understand if I deleted something beyond obvious damage.