Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-01-2010, 09:20 AM   #1
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
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,695

Rep: Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566Reputation: 566
chown root:root
chmod 1777
Old 07-01-2010, 09:26 AM   #3
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.


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:33 PM.

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