i was trying to run
sudo rm -r ./tmp
but instead typed
sudo rm -r /tmp
Will it be fixed by running?
sudo mkdir /tmp
if i do what permissions should i give it?
ps: i didnt log out of my system yet
i was trying to run
sudo rm -r ./tmp
but instead typed
sudo rm -r /tmp
Will it be fixed by running?
sudo mkdir /tmp
if i do what permissions should i give it?
ps: i didnt log out of my system yet
I can't think of a reason why this shouldn't work. On my system, the permissions are set by:
(drwxrwxrwxt)
You should run the following commands to restore the tmp folder.
Then you sould be all good
To add to Alex's answer, you can do both those commands at the same time using the
-m
or--mode
option for mkdir(1), which specifies the mode for the created directory:So the command would be: