LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-01-2010, 09:20 AM   #1
deco81
LQ Newbie
 
Registered: Jun 2010
Posts: 4

Rep: Reputation: 0
I carelessly deleted /tmp


How do I remake /tmp so it has the exact configuration it did when the system was installed? (ubuntu).

mkdir /tmp
chown ....
chmod ....

Any help?
 
Old 07-01-2010, 09:23 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,644

Rep: Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523
chown root:root
chmod 1777
 
Old 07-01-2010, 09:26 AM   #3
digitolx
Member
 
Registered: Nov 2004
Posts: 96

Rep: Reputation: 15
mkdir /tmp
chmod 777 tmp
chmod +t tmp
chown root:root tmp (forgot this one) I assumed that you were creating as root...)

I'm sure there is a way to do this in one command but this should do it...

Last edited by digitolx; 07-01-2010 at 09:27 AM.
 
  


Reply

Tags
deleted, 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
I just accidentally deleted my /tmp directory Daedra Slackware 3 05-30-2009 09:19 PM
deleted contents of /tmp dave`2005 Slackware 2 06-22-2007 10:45 PM
getting files deleted on /tmp ines Linux - General 13 01-28-2005 03:35 AM
/tmp files being deleted new@linux Linux - Newbie 2 12-30-2004 01:51 PM
tmp directory being deleted jpokrzyk Linux - General 3 10-30-2004 06:42 PM


All times are GMT -5. The time now is 11:34 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