Anyone know the default path to date

  • Chaze
  • Graduate
  • Graduate
  • User avatar
  • Posts: 111
  • Loc: WebHost.pro

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4924
  • Loc: NY

Post 3+ Months Ago

/bin/date
  • Chaze
  • Graduate
  • Graduate
  • User avatar
  • Posts: 111
  • Loc: WebHost.pro

Post 3+ Months Ago

Thanks for the reply.

which date

worked perfectly for finding it, the path is:

/bin/date

Exactly right, thanks again.
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

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:~$
  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4924
  • Loc: NY

Post 3+ Months Ago

I use the locate command.
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

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:
  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4924
  • Loc: NY

Post 3+ Months Ago

They should be the same. Why would I want a truncated answer?
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

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 ?
  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4924
  • Loc: NY

Post 3+ Months Ago

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.

Post Information

  • Total Posts in this topic: 9 posts
  • Users browsing this forum: No registered users and 29 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.