Trash missing from Dock
You shouldn't be able to delete the Trash folder from your Dock. To put it back, reset your Dock settings:


Open Terminal (/Applications/Utilities/Terminal.app)
Run the following command to delete the Dock preferences file:

rm ~/Library/Preferences/com.apple.dock.plist

Log out and back in.