Run one at a time. Normally you can copy and paste a whole series of commands at once, but I just tried it out and it looks like the sudo on the second line is preventing that trick from working.
If it still doesn't work, try relaunching Finder by control+option+clicking on the Finder icon in your Dock and selecting Relaunch. If it still doesn't work, try restarting the computer.