In an attempt to free up disk space as I was 100% full and could not write to the disk anymore I ran

Sudo rm -rf /tmp

Seems like that was a rather stupid thing to do as I cannot login into my machine via the GUI. I can log in though when pressing Ctrl, alt and f1 and access everything via the command line.

How do I go about fixing this?


If you recreate /tmp with the correct permissions, hopefully that will fix it:

sudo mkdir -p /tmp
sudo chmod 1777 /tmp
|improve this answer|||||
  • When using mkdir /tmp it says already exists – Richlewis Feb 23 '14 at 11:29
  • Looks like the chaos worked, all working now...thank you – Richlewis Feb 23 '14 at 11:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.