I don't understand this command:
find -name "*mp3*" -exec mv {} $HOME \
I know that find is performing a search in all the directories where the files or directories contain mp3 in their name -exec(I think it is executable) mv (to move) {} (I don't understand it very well but it is to indicate a pattern) $HOME (refers to the /home/ directory) (I have no idea).
find $HOME -name "*.txt" | tr -d " "
Similar to the previous one but with the addition of tr (I don't understand it very well but I understand that what we put in argument 1 "" will be replaced by argument 2 "" eg: tr "ax" "bz" replaces ax with bz) -dy that the name of the file or directory ends in .txt
I don't know if it is not specified in the command find d(directory) of(file) choose one of the two by default?