Anyone know the default path to date

  • Chaze
  • Graduate
  • Graduate
  • User avatar
  • Joined: Apr 01, 2003
  • Posts: 107
  • Loc: www.dwhs.net
  • Status: Offline

Post May 24th, 2010, 12:11 pm

Anyone know the default path to date

I can't find it anywhere, I use Centos and apache 2 php 5 if that helps.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 24th, 2010, 12:11 pm

  • Don2007
  • Web Master
  • Web Master
  • No Avatar
  • Joined: Nov 21, 2006
  • Posts: 4924
  • Loc: NY
  • Status: Offline

Post May 24th, 2010, 1:59 pm

/bin/date
How do you know when a politician is lying? His mouth is moving.
  • Chaze
  • Graduate
  • Graduate
  • User avatar
  • Joined: Apr 01, 2003
  • Posts: 107
  • Loc: www.dwhs.net
  • Status: Offline

Post May 24th, 2010, 8:29 pm

Thanks for the reply.

which date

worked perfectly for finding it, the path is:

/bin/date

Exactly right, thanks again.
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post May 24th, 2010, 10:04 pm

BASH Code: [ Select ]
joebert@frankenstien:~$ whereis date
date: /bin/date /usr/share/man/man1/date.1.gz
joebert@frankenstien:~$
  1. joebert@frankenstien:~$ whereis date
  2. date: /bin/date /usr/share/man/man1/date.1.gz
  3. joebert@frankenstien:~$
Strong with this one, the sudo is.
  • Don2007
  • Web Master
  • Web Master
  • No Avatar
  • Joined: Nov 21, 2006
  • Posts: 4924
  • Loc: NY
  • Status: Offline

Post May 25th, 2010, 6:16 am

I use the locate command.
How do you know when a politician is lying? His mouth is moving.
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post May 25th, 2010, 7:13 am

I wondered what the difference between locate and whereis was, so I tried both. Apparently the difference is a few hundred lines of output from locate VS 1-3 lines of output from whereis. :shock:
Strong with this one, the sudo is.
  • Don2007
  • Web Master
  • Web Master
  • No Avatar
  • Joined: Nov 21, 2006
  • Posts: 4924
  • Loc: NY
  • Status: Offline

Post May 25th, 2010, 1:36 pm

They should be the same. Why would I want a truncated answer?
How do you know when a politician is lying? His mouth is moving.
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post May 25th, 2010, 2:21 pm

Well, for me locate gives me the path to anything and everything that has "date" in the directory or file names. Whereas whereis just gives me paths to binaries and manpages.

Am I missing a flag for locate or something ?
Strong with this one, the sudo is.
  • Don2007
  • Web Master
  • Web Master
  • No Avatar
  • Joined: Nov 21, 2006
  • Posts: 4924
  • Loc: NY
  • Status: Offline

Post May 25th, 2010, 3:10 pm

There are flags but I don't use them. I guess the flag that you would want is -l to limit the number of results.

locate -l 10 would give you 10 lines.
How do you know when a politician is lying? His mouth is moving.

Post Information

  • Total Posts in this topic: 9 posts
  • Users browsing this forum: No registered users and 65 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.