LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   recover tmp (http://www.linuxquestions.org/questions/linux-newbie-8/recover-tmp-892246/)

Artpro 07-18-2011 12:53 AM

recover tmp
 
Hello,there!
I deleted my /tmp in fedora core 14 accidently.
How could I recover it?
Could you give me some help?
Thanks for you help.

druuna 07-18-2011 01:40 AM

Hi,

Assuming that /tmp is not a partition, execute the following (as root):
Code:

mkdir /tmp
chmod 1777 /tmp

Hope this helps.

Artpro 07-19-2011 09:03 PM

Quote:

Originally Posted by druuna (Post 4417796)
Hi,

Assuming that /tmp is not a partition, execute the following (as root):
Code:

mkdir /tmp
chmod 1777 /tmp

Hope this helps.

First,Thank you for your help!
I know "chmod 777 file" means change the file mode to "rwxrwxrwx",
but I can't reach the "1" in command "chmod 1777 /tmp".
could you make it clear?

And what if /tmp is a partition?

Wait for your reply.

chrism01 07-19-2011 11:57 PM

https://secure.wikimedia.org/wikiped...iki/Sticky_bit http://www.linuxquestions.org/questi...d-sgid-258719/

If /tmp is (was) a partition, what does your /etc/fstab look like? drunna's advice should still work.


All times are GMT -5. The time now is 02:07 PM.