Download your favorite Linux distribution at LQ ISO.
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 05-26-2010, 12:28 AM   #1
LQ Newbie
Registered: May 2010
Posts: 6

Rep: Reputation: 0
mkdir with the date

Hi guys

How do I make a directory with the date in this format:

Old 05-26-2010, 01:10 AM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
mkdir $(date "+format string")
Read "man date" for details.


P.S.: Why did you mark it solved before there
was an answer/solution?
Old 05-27-2010, 12:40 AM   #3
LQ Newbie
Registered: May 2010
Posts: 6

Original Poster
Rep: Reputation: 0

I worked it out after I made the thread sorry


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
how to give options like '-v' for mkdir using system call mkdir() ? nehapawar Linux - Newbie 2 02-05-2010 03:13 AM
Trying to make a directory with mkdir using the date command. Altheastronut Linux - General 5 06-09-2009 01:14 PM
a C++ equivilant to mkdir /tmp/directory.$(date +%Y%m%d).$$" kbartoletta Programming 2 08-27-2008 05:22 PM
Windows XP batch script - mkdir %date% creates spaces! Micro420 Programming 1 10-19-2006 03:55 AM
can I use date command with mkdir? ewto Linux - General 6 06-16-2004 09:47 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:30 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
Open Source Consulting | Domain Registration