Thread: Locate Command?
04-13-2004, 11:29 AM #1taxxman2kGuestLocate Command?
Hello all. I just got my first Powerbook G4 and OS X. I come from a mixed world of linux and winders. Very pleased thus far with this computer. But I do have a question.
Upon a first install of unix when you go to the terminal and try to run the "locate" command you get this:
locate:: no database file /var/db/locate.database
I get that on my new mac too. In unix it is easy to login as root and run "updatedb", then you are all done. However, when I run that on my Mac I get updatedb command noty found. What do I need to do? Is there a super user account? or am I thinking too linux and not enough Mac?
04-13-2004, 11:43 AM #2
- Member Since
- Dec 24, 2002
- Los Angeles, California
- 2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi
Do a man on the locate command. It should be able to find the command that will create the databse that you need.
if you are trying to find where certain commands are located. You can try whereis and whence. I know these work on other favors of unix.Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!
04-13-2004, 11:52 AM #3taxxman2kGuest
Well I found this on another forum:
then the locate command works. It creates the "library"
good suggestions, I am just so used to the locate command, I don't know why but I am.......
Great forums by the way!
04-13-2004, 07:06 PM #4TylerMoneyGuest
there is definenlty a super user account you have to set up manually...but I've forgotten how...haven't done it..and until I learn more about unix..I won't...I can do everything I need with the administrator account....
04-13-2004, 07:11 PM #5
updatedb is a Linux cron command - in Slackware - if that is the command you want you use (switching to root - superuser) sudo sh /etc/daily > this needs to be done /weekly (instead of daily) and monthly. again with all apps closed. to enable the root user: Open NetInfo Manager, located in Applications > Utilities.
Choose Security > Enable Root User and type a password for the root account. You may need to type an administrator password to make these changes.
Choose Apple menu > Log Out.
Choose Other in the Login window, type root in the Name field, and the root password in the Password field.Remember root can do anything so you can fubar your system (I'm sure you this) and never be on line
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By P1ps in forum Security AwarenessReplies: 13Last Post: 06-16-2015, 12:35 PM
By milliamp in forum OS X - Operating SystemReplies: 3Last Post: 05-16-2015, 02:20 PM
By brasil2908 in forum OS X - Operating SystemReplies: 1Last Post: 09-19-2014, 02:06 PM
By jackt in forum OS X - Apps and GamesReplies: 0Last Post: 12-04-2011, 03:35 PM
By Jick in forum OS X - Operating SystemReplies: 10Last Post: 06-17-2011, 06:15 PM