I tried stopping OS X from writing Spotlight and Trash files to a memory card. The method by Metaxis to the question here "How to stop OS X from writing Spotlight and Trash files to memory cards and USB sticks?" works fine and I have used it many times, but this time I wasn't paying attention and have addressed the wrong folder. The question how to stop in the original post
This is what I did including the responses and replacing my first name with first name and full name with myfullname:
MBP-van-firstname:~ myfullname$ mdutil -i off /Volumes/SD128MB
/Volumes/SD128MB:
2016-03-02 22:57:40.638 mdutil[1232:208844] mdutil disabling Spotlight: /Volumes/SD128MB -> kMDConfigSearchLevelFSSearchOnly
Indexing disabled.
MBP-van-firstname:~ myfullname$ rm -rf .{,_.}{fseventsd,Spotlight-V*,Trashes}
MBP-van-firstname:~ myfullname$ mkdir .fseventsd
MBP-van-firstname:~ myfullname$ touch .fseventsd/no_log .metadata_never_index .Trashes
MBP-van-firstname:~ myfullname$ cd -
-bash: cd: OLDPWD not set
So, where the action were supposed to happen in the targeted folder, they were in the wrong folder. How can I undo this?