LinuxQuestions.org
Review your favorite Linux distribution.
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 08-18-2003, 12:03 PM   #1
MidtownMike
LQ Newbie
 
Registered: Aug 2003
Location: North Carolina
Posts: 3

Rep: Reputation: 0
Making Temporary Directory


Its pretty straight forward quetion. How do i go about making a temporary directory? any insight would be delightful
 
Old 08-18-2003, 12:07 PM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
If you want to make a directory, you can use the mkdir command.

But what exactly do you mean by temporary directory ?
 
Old 08-18-2003, 12:36 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
Use "mktemp". See "man mktemp" for more.

If you want to create randomness yourself you could use any of
"dd if=/dev/urandom count=1 2>/dev/null|md5sum|cut -d " " -f 1" or
"openssl rand 100000)$$ | sha1sum | tr -d [a-z-" "]" or
"perl -e 'srand; printf int(rand(1000000))'".
 
  


Reply


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
gnupg: changing temporary write directory from /tmp to...? mushmaster Linux - Software 0 03-29-2005 08:19 PM
Temporary AUTH FAILURE cailun Linux - Software 0 03-12-2005 10:10 AM
Making all the filenames in a directory lowercase? minm Linux - Newbie 4 12-24-2004 01:50 AM
Problems making a directory JROCK1980 Slackware 1 12-12-2003 06:03 AM
temporary tar directory . . .? zthomasz Linux - Newbie 4 08-05-2003 12:24 PM


All times are GMT -5. The time now is 06:27 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration