General :: Different Between 'locate' And 'find'?
Oct 14, 2010Why there are two so similar command in Linux? and normally what are the circumstances to use each of them?
View 2 RepliesWhy there are two so similar command in Linux? and normally what are the circumstances to use each of them?
View 2 RepliesMy goal is to find all pdf files on a remote machine, so I resort to the useful command find. So I type find .pdf or find .pdf" and I get nothing. I do the same on my machine and I get nothing. I do a regular search from the menu on my machine and I find quite a few pdf files. Would somebody please tell me what am I doing wrong?
View 5 Replies View RelatedI have a ton of files that are timestamped directories. These all look like2011-06-24_13.53.36 // a directory name for june 24th, 1:53:36 pmI have thousands of these directories. I want to do operations on some of the older ones. Let's say I give it a string for date time that matches that exact format, like i'll give it2011-06-25_00.00.00 // june 25th, 12amI want to find all the directories BEFORE my time. So if i give the string for 12am on june 25th, i want to find all the directories before then.If not i can find EVERY directory i have like this and then filter after wards. The created/modified dates are not tied to the actual timestamp im looking for (that would make this easier)
View 2 Replies View RelatedI tried to tag late onto a question similar to mine on stackoverflow (Find Non-UTF8 Filenames on Linux File System) to elicit further replies, with no luck so far, so here goes again... I have the same problem as the OP in the link above and convmv is a great tool to fix one's own filesystem. My question is therefore academic, but I find it unsatisfactory (in fact I can't believe) that 'find' is not able to find non standard ascii characters.
Is there anyone out there that would know what combination of options to use to find filenames that contain non standard characters on what seems to be a unicode FS, in my case the characters seem to be 8bits extended ascii rather than unicode, the files come from a Windows machine (iso-8859-1) and I regularly need to fetch them. I'd love to see how find and/or grep can do the same as convmv.
[Code]....
I would like to know if I want to vi /proc/sys/net/ipv4/ip_forward, but assume that I don't know the path of ip_forward, is there a way to tell where is it?
View 3 Replies View RelatedI was trying to find and run the program from command line like calculaterbut i was unable to do these two thing togethet.i can find the path seperetly or i can find and run the program without seeing the pathI want to find and see the path and run it at the same time?
View 6 Replies View RelatedKernel 2.6.21.5, Slackware 12.0
Just after the booting process is finished, running ps I get this:
Code:
As you can see, there are a lot of names beginning with the letter 'k'. Are these processes needed for the GUI to be fully functional when it is run (X Window System + WM + Xfce4)? And can I setup the system such that they're never run?
The reason for this question is that I am testing some programs and need the CPU to have as little time stolen as possible.
Forever I've been able to use "locate" to find files, but now it finds NOTHING at all and I have no clue why.. I tried apt-get install locate and it installed it, but it's not working in bash.
View 5 Replies View RelatedI am working on perl and I am stuck on tk.pm on fedora 12. It work fine on window 7. here is my code.
#!/usr/bin/perl -w
#
use Tk;
I did search on google and try diff ways, but still get the same result
Using a Ubuntu 10.04 desktop...I just rebuilt another computer (Ubuntu 10.04-Server) and when I attempt to ssh to the box I of course have the ssh key from the old install. I get the messageQuote:Add correct host key in /home/ken/.ssh/known_hosts to get rid of this message.Offending key in /home/ken/.ssh/known_hosts:3So how do I determine which key is hosts:3? It is not the third key in the known_hosts file - I deleted that one and got the same error.As I only have 4 other computers on my network I generally just delete all entries from known_hosts when I reinstall the OS on one of the others. It is about time I learn how to do it correctly
View 3 Replies View RelatedI am running a version of Fedora 10 on my PC for development puposes. The strange problem I have encountered is that I cannot locate the C compiler being used. I have looked for G++ GCC, etc but cannot find it. Does anyone know the compiler being used or the command to find it through command line.
View 5 Replies View RelatedI am executing command "yum install perl-CPAN". I got the following error "Can't locate CPAN.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .).". Let me give you some details of the problem.
OS: CentOS release 5.4 (Final)
Architecture: : 32 Bit
Installed Perl Version: This is perl, v5.8.8 built for i386-linux-thread-multi
I've also studies previous posts on this topic which says "yum install perl-CPAN" will fix the problem when I execute this command I got "No package perl-CPAN available".
We are using linux (Ubuntu ) to host our website and mails. There was a power problem and after restarting our servers, we are unable to access the co. website. When i try to access the mail by typing mail.domain, i am able to access the login page from within the network. Someone out of the network is unable to find the page[URL]
View 4 Replies View RelatedI am running Mandriva x64 and the nepoumuk file indexing was causing system hangups (in addition to not returning any results) so i disabled it. However kfind is not returning any results either - i feel a bit stupid and I'm sure there's a simple answer to this but How do i locate files under Mandriva linux? Is there a simple KDE application for that or do i need to look at kfind settings? Does file search only work with indexed database?
View 3 Replies View RelatedI am using Fedora on a system i just installed it on, i just got a new HP monitor and hooked it up, now it won't work. I keep getting AN ERROR: unable to locate 10APIC for GSI 6,13,8,12,1......WHEN THE SYSTEM BOOTS UP.
View 1 Replies View RelatedI had fedora 12 working nicely and tried to add Compiz. That has caused my laptop to hang with the cursor blinking. I can get to the virtual windows with Ctl-Alt-Fx keys. However I am not sure what to fix.I had run Dmesg and it is complaining that it can not locate the Nvidia driver. I believe it mentions Nvidia.ko but will need to verify that.My thought was that if I just did an "upgrade" maybe that wold restore the GUI and I could go forward from that. I am trying to get awaay from the MS world.
View 1 Replies View RelatedI want to print, using locate, all the paths that contain the element /bin/ but only one instance of each one. If I issue 'locate /bin/' then I have many screens of text with, for example,
/usr/bin/foo1
/usr/bin/foo2
/home/me/bin/foo3
whereas I want to see only
/usr/bin/foo1
/home/bin/foo3
That is to say, if in two lines /bin/ appears with the same prefix (in the example above the prefixes would be /usr and /home/me) I only want to print the first line. Can I pipe locate to grep to do this? I've mentioned locate because it does not scan the whole disk.
Looking for Driver for new install on Netbook. Have never been out of the Windows OS Printer Lexmark Z1420 wireless, inkjet
View 2 Replies View Relatedthere is a file named vmscan.c the location which is given on internet is usr/src/linux/mm/vmscan.c but when i went there , i found only two files ,but there was no vmscan.c so can any one help me to locate the file?
View 1 Replies View Relatedhow to locate device manager in redhat?
View 1 Replies View RelatedHy can anyone tell me if and where I can locate a program to update my drivers ?
View 4 Replies View RelatedAs the system boots up, these messages show up:
View 2 Replies View RelatedI used locate cmd to search file abc.txt (for example) as I didn't know in which directory it would be present and couldn't find it. But when I did find . -name abc.txt, it traced the file, luckily the file was in the same directory. I am wondering how find was able to search abc.txt and locate not. How these two are behavinb differently? Usually I use locate when I don't know the path to the parent dir.
View 8 Replies View RelatedCode:
nnjond@nnjond-den:/$ cd /media/disk/Dual_Data/
nnjond@nnjond-den:/media/disk/Dual_Data$ ls
07_Magna_DOWNLOADS 21_TEMPS Peleas.htm
08_Self-Improvement 22_Desktop Pelleas.odt
[code]....
I am running a linux software called altboot to install software on my xerox copy printers network controller harddisk but it keeps failing and I wonder what the error message means. Is it a cable, software or hardware problem?
I have pasted part of the log below...
modprobe: modpro/none on /proc type proc (rw)
create symbolic link `/lib/modul INIT: Entering runlevel: 2
modprobe: modprobe: Can't locate module block-major-33
modprobe: modprobe: Can't locate moduleeth0: Setting full-duplex based on MII #1 link partner capability of 45e1.
block-major-8
modprobe: modprobe: Can't locate module block-major-33
modprobe: modprobe: Can't locate module block-major-8
What do I need to add to my .emacs to get it to save all of my autosaves and backups into one directory? I don't do a lot of .emacs configuration, and I just can't get the variables out of emacsWiki to play right. Anybody mind sharing how they do it? I would prefer to have the saves placed in /tmp/emacs/{username}/{autosaves | backups}
BONUS, configuration to do the same for TRAMP
I read somewhere that shell scripts are not detected because they may be system files. So how do I detect them. Noob as I am just doing my hello world program. Also what is the difference between "ls bin" and "ls /bin"
View 8 Replies View RelatedHow do I locate the menu for wireless connections in Kubuntu (KDE?)
View 1 Replies View RelatedIs there a way to process the output of a locate command on the spot within bash. The output is 3 lines, ex:
Code:
[root@server confluence]# locate .timestamp
/opt/confluence/confluence-persistent/index/.timestamp
[code]....
I own a web server (centos 64bit with cpanel on it) and my datacenter add me a second hard disk and i want first to locate from ssh where is it (the path) and then to copy my mysql folder /var/lib/mysql to the new disk and have it like this /new/mysql on the second disk.
View 8 Replies View Related