LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 12-18-2004, 01:40 PM   #1
DreameR-X
Member
 
Registered: Dec 2004
Location: New York
Distribution: Slackware
Posts: 154

Rep: Reputation: 30
What's the difference between 'updatedb' and 'updatedb&' ??


Just curious. I notice that updatedb won't make a new bash line until it's done...while updatedb& puts [1] *some #* and then immediately makes a new bash; yet it is obviously still updating. And when you hit enter on the new bash (after the cpu stops wizzing), it puts [1]+ Done updatedb. But what does it all mean???!! Thanks!
-Galen
 
Old 12-18-2004, 01:43 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,698

Rep: Reputation: 287Reputation: 287Reputation: 287
Updatedb runs in foreground. Add & to the command (as in updatedb &) and it runs in background, and gives you the term window back for other uses. It also gives you the job number assigned to the background process, in case you need to kill it for some reason.
PS to see what processes are running in background, use the jobs command (a bash builtin command).
 
Old 12-18-2004, 02:45 PM   #3
DreameR-X
Member
 
Registered: Dec 2004
Location: New York
Distribution: Slackware
Posts: 154

Original Poster
Rep: Reputation: 30
Then another question: if I install programs and stuff while updatedb is running; is updatedb pointless? (since it won't include the new stuff?) Point being, what's the point in having it in the background while I program something...when I save the program, that program won't be in the db...right?
-Galen

P.S. Can I use & for most any commands?
 
Old 12-18-2004, 03:17 PM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Updatedb is often run from a cron job. Thus it may always be a little out of date, but no more than a few hours. Hopefully you won't lose stuff you've just put on the system. If you need an up to the minute snapshot, just run it manually.

Yeah - any command can be backgrounded, or most any.
 
Old 12-18-2004, 04:36 PM   #5
DreameR-X
Member
 
Registered: Dec 2004
Location: New York
Distribution: Slackware
Posts: 154

Original Poster
Rep: Reputation: 30
Awesome, thanks for all of the advice!
-Galen
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
updatedb mikedeatworld Linux - Software 21 09-16-2004 10:59 PM
updatedb? nexx_au Fedora 2 04-06-2004 10:17 PM
UT & updatedb CaptainInsane Linux - General 1 02-10-2004 08:56 AM
updatedb pezplaya Fedora 2 01-05-2004 05:32 PM
Updatedb & time Option mikeshn Linux - General 1 06-11-2003 11:09 PM


All times are GMT -5. The time now is 10:58 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration