LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-18-2011, 12:53 AM   #1
Artpro
LQ Newbie
 
Registered: Jul 2011
Posts: 2

Rep: Reputation: Disabled
Unhappy 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.
 
Old 07-18-2011, 01:40 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

Assuming that /tmp is not a partition, execute the following (as root):
Code:
mkdir /tmp
chmod 1777 /tmp
Hope this helps.
 
1 members found this post helpful.
Old 07-19-2011, 09:03 PM   #3
Artpro
LQ Newbie
 
Registered: Jul 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by druuna View Post
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.
 
Old 07-19-2011, 11:57 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,242

Rep: Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024
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.
 
1 members found this post helpful.
  


Reply

Tags
recover, recreate, temp, tmp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
tmp filling up with root-tmp diretories steinz Linux - Security 7 04-27-2010 08:34 AM
Can't login, says tmp directory full but tmp file is empty! Could be linked to MySQL? bethanlowder Fedora 7 09-25-2009 07:17 AM
how to securing /tmp , /var/tmp and /dev/shm hackintosh Linux - Security 7 10-17-2007 11:26 PM
Numerous scb_*.tmp files in /tmp dburk Programming 3 08-18-2003 04:28 PM
Newbie question - /tmp /var/tmp Mr happy Linux - Security 3 01-27-2003 01:03 PM


All times are GMT -5. The time now is 12:09 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration