LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-20-2020, 02:07 PM   #1
pittendrigh
Member
 
Registered: Jun 2014
Posts: 32

Rep: Reputation: Disabled
is locate configurable? locate -i be default for instance?


Is `locate` configurable? locate -i be the default behavior for instance?

I almost always start with locate -i
Only after I get feedback from that--I'll sometimes use `locate` without the case insensitive flag. Is there a config file? Probably not. I didn't find one. locate -i usually tells me what I need to know.

Worth asking. You never know.
 
Old 03-20-2020, 04:19 PM   #2
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by pittendrigh View Post
Is `locate` configurable? locate -i be the default behavior for instance?

I almost always start with locate -i
Use an alias, like ilocate (or shorter iloc) for the case insensitive one.
There is no config file for options in either slocate or mlocate, I do not know which one you're using (or even the old GNU locate?).

Last edited by ehartman; 03-20-2020 at 06:00 PM.
 
1 members found this post helpful.
Old 03-20-2020, 04:24 PM   #3
pittendrigh
Member
 
Registered: Jun 2014
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ehartman View Post
Use an alias, like ilocate (or shorter iloc) for the case insensitive one.
There is no config file for options in either slocate or mlocate, I do not know which one you're using (or even the old GNU locate?)/
Yes. Of course. Thank you.
 
1 members found this post helpful.
Old 03-20-2020, 08:06 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,382
Blog Entries: 28

Rep: Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164
The locate command is not configurable in the sense that it is what it is, but there are many arguments you can use to tailor it to particular situations. See man locate for the list.

If there's a particular set of arguments you need to use regularly, one option may be to write a simple script ("mylocate.sh"?) including those arguments and call the script when you need to use that particular version of the command.
 
Old 03-23-2020, 08:43 AM   #5
flukeyLinux
Member
 
Registered: Sep 2012
Location: Ireland
Distribution: Ubuntu redhat, wsl
Posts: 48

Rep: Reputation: Disabled
any one use ag by the silver searcher? it's brilliant and would recommend using instead of grep or locate. it's very very quick.
Link here if interested - https://github.com/ggreer/the_silver...ster/README.md
 
  


Reply



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
Can't ping or ssh to the cirros instance of the openstack instance visuharsha Linux - Networking 0 12-21-2017 01:44 PM
Postfix multiple instance only default instance work Dante K Linux - Server 0 09-05-2017 09:45 AM
[SOLVED] Switch to instance instead of creating a new instance of a program javascriptninja Linux - Newbie 8 01-28-2012 03:39 PM
My Configurable Wireless Connection Script miasmatic Linux - Wireless Networking 0 02-18-2004 05:44 PM
Configurable Mail Client? MikHud Linux - Software 1 04-27-2003 06:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:41 AM.

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
Open Source Consulting | Domain Registration