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 02-15-2014, 11:55 AM   #1
sryzdn
Member
 
Registered: Feb 2013
Posts: 273

Rep: Reputation: 9
date command


Hi,

What does this command represent:

Quote:
$ date +%d/%m
Thanks for your help.
 
Old 02-15-2014, 12:04 PM   #2
Isaac Velando
LQ Newbie
 
Registered: Feb 2014
Location: Texas
Distribution: Arch, Ubuntu Server, CentOS
Posts: 29

Rep: Reputation: 21
GNU date is used to interact with the system's date and time; for one example it's very useful in scripting for adding dates and/or times to file names. Anyway I advise you to consult the manual to get a full listing of its capabilities including what %d/%m means (see the FORMAT section) -- there's such a wide array of capabilities you'd be doing yourself a disservice by not checking them out.

Code:
man date
and use either arrow keys and page up/page down or vim style d, u, j, k to navigate.
 
1 members found this post helpful.
Old 02-15-2014, 12:11 PM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,868

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
Quote:
Originally Posted by sryzdn View Post
Hi,

What does this command represent:



Thanks for your help.
Did you run it and see what the result was? What does it look like it represents?
 
Old 02-15-2014, 12:29 PM   #4
sryzdn
Member
 
Registered: Feb 2013
Posts: 273

Original Poster
Rep: Reputation: 9
Quote:
Originally Posted by 273 View Post
Did you run it and see what the result was? What does it look like it represents?
yes, I swear I'm not that lazy to run the command. But it only shows today's date. So what's the use of all +%d/%m ?
 
Old 02-15-2014, 12:31 PM   #5
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,868

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
I mean what precisely does it show and how does that relate to what you typed in?
 
Old 02-15-2014, 12:37 PM   #6
sryzdn
Member
 
Registered: Feb 2013
Posts: 273

Original Poster
Rep: Reputation: 9
Quote:
Originally Posted by Isaac Velando View Post
GNU date is used to interact with the system's date and time; for one example it's very useful in scripting for adding dates and/or times to file names. Anyway I advise you to consult the manual to get a full listing of its capabilities including what %d/%m means (see the FORMAT section) -- there's such a wide array of capabilities you'd be doing yourself a disservice by not checking them out.

Code:
man date
and use either arrow keys and page up/page down or vim style d, u, j, k to navigate.
I got it thank you
 
  


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
date command Volcano Linux - Newbie 17 04-25-2012 07:41 PM
using date command sumeet inani Linux - Newbie 9 05-06-2010 06:40 AM
date command miran_shahverdyan Linux - General 4 10-14-2009 07:59 AM
command for date DarReNz Solaris / OpenSolaris 7 09-05-2006 10:53 AM
date command aetucker1 Linux - General 3 01-21-2005 01:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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