I was not in touch with linux for couple of years now. So I forgot a command I used to use. I recently installed Fedora 12 and I can not remember what was that command.Here is what it used to do: I remember that I used to run a special search command on server that used to find a file very fast because it was kind a database based command. To enable it for first time after linux installation, I used to build an index of computer's files and then I could use its command [don't remember if it was "find" or "search"].
So my question if anybody know what I am talking about and what is name of these two commands. How can I build the index first.
I am thinking about writing a script to search through specific folders on a Linux based server (Centos 5) and report any changes made to any file on that server.Like a detailed change log with the date it was changed and the difference in size. Dose anyone know if such a script exist?
I am web developer I have this command find . -exec grep "Improve your score" '{}' ; -print for searching through files . I found this command but now i would like to tweak it to gain more out of it.
I was hoping to get some pointers on how to rename files based on database entry. I got hundreds of thousands of files that has GUID name assigned to it. only way to find out the file name is to look up the database table. Its obvious that this is not efficient. I couldn't find any tutorials on how to do this. Please point me to right direction. A starting point would be very helpful.
Any time I've tried to run 'yum search' or 'yum info' I end up getting a error "database disk image is malformed"
Code: $ yum info postgresql Loaded plugins: presto, refresh-packagekit Error: database disk image is malformed I am, however, able to update and install software without this error occuring.
I've tried the 'yum clean all", "yum clean metadata", "yum clean datacache", and rebuilding with "yum makecache", but still this problem crops up. As I understand it, the error message comes from something possibly not having been updated properly in one of the sqlite databases that yum stores information in. I probably could fix it if I knew which sqlite db that 'yum search' and 'yum info' hit.
Is there any application that will let me restrict search results, by, for example, whether it is a plain text document or a jpeg image (not by extension, but the same way nautilus knows if something is a jpeg even if it doesn't have an extension)?It would be nice to have an easy way to search for, e.g., just images, just videos, or just music without relying on file extensions.
I am not clear as how to put my question but what I am looking at is some tool which has a GUI to be able to design a databases and also once the database is done it should be working.Some thing like drag and drop interface for a database.As an example I can write a query on mysql command prompt or phpmyadmin to create table its fields etc.Can I use some thing which does not involve mysql command line?What should I search for?I know very well how to work with mysql command prompt I need a GUI tool for the same to some non technical users.
I have a Windows-only language lab program ('Logolab') which provides students with listen and repeat exercises on audio and video material loaded by the teacher. It operates in conjuction with a Firebird database which stores subtitles (I think) and the sequencing data (the lengths of each segment) for recording (a recorded piece will be subdivided into small audio/video segments during which the student repeats what's been said).The audio and video functions are run internally by Windows Media Player, and the video input must be in .WMV format for the system to function.Using Wine, I've managed to install the language lab program on Ubuntu, as well as the Firebird database program. However, each time I start the language lab program, I get the message "Firebird database not started!".There is a BIN folder with the language lab software that contains a .INI file with the following contents:
Perhaps that needs to be modified for Linux or Wine on Linux? I've tried changing the DataBase field with the Linux path to the appropriate .FDB file, and likewise the ServerName field to the Ubuntu computer name or the ip address, but to no avail. Lately, I've installed the Linux version of Firebird and Flame Robin (which I couldn't understand).If anyone can provide any help or suggestions, I'd be most grateful (it's the only thing preventing me from migrating 100% to Linux).
I'm looking for a simple and reliable search engine for searching particular content on the files in the storage database. The output will display files' name and their path. Google search found following site:- "List of search engines";[URL]..There are many of them. I have no idea how to make my selection. Could you please shed me some light. Furthermore can a simple shell command do the same job?
I recently moved into a new place and when I hooked up my webserver, I wasn't able to bring up my page, even from localhost. With some digging, it seems that I can't access the database that housed my posts (wordpress installation). I looked for the datadir in MySQL and that directory shows the wordpress directory that should be holding the database and all the files are still there. 1) why the database no longer shows up 2) how to restore the database from the files?
I am having a few issues related to the RPM command. I think something is wrong with the database. Here is what has happen. I had open office installed, I heard about the fork and decided I would install LibreOffice . I uninstalled open office but left the shared libs. I downloaded the new beta release that is out and used the rpm files to install. In the process of installing the menu links I ran into a few conflicts related to dependencies. So I removed the rest of the open office libraries. Now if I try to launch LibreOffice I get a message saying that it can't find it. If I try and do a reinstall with the RPM files I get a message saying that it is already installed. example below:
Every time I need to find a file and then open it, I have to use : find ./ -name **.properties. , then copy the result, and then vi "paste the result here" . If I need to use a mouse, it can be a little trouble. So is there any better way to do this?
I have some large log files that I would like to search for a specific text via command line in the file. I know I can open the file in GUI but is there command that I can run against the file path then make it search in the file in command line?
This is a bit of a long shot and I think the answer will be no but I thought I'd ask just in case. I have a number of tutorials in html but I want to be able to search for particular information in these files and display that information in the terminal rather than having to go through a browser. Apart from using grep which gives a pretty messy display or having to write a a specially Bash or python script, is there any command line tools that can provide such a function?
Any solution using awk/sed/regexp or other standard linux utility (this is for a mix of RH versions)? I am dealing with some very large application log files. I want to see everything that has been written to the log since the last application restart.
For an example take a log file like this: Code: # cat test.log 1 msg 2 msg 3 restart 1 4 msg 5 restart 2 6 msg
The following command is close to what I want: Code: # awk '/restart/,G' test.log 3 restart 1 4 msg 5 restart 2 6 msg
But the awk command grabs the first restart not the last. If it was working the way I wanted I would see something like this: Code: # awk '/restart/,G' test.log 5 restart 2 6 msg
So, I need something in that search pattern that says look for the last occurrence. I know how to do this with a pipe line - I could reverse the file and then do a similar awk and reverse back, or I could find the number associated with the last restart and then use that in the awk search. But these just take too long because the file is too big.
I'm writing a script that edits a Maya ascii file. Inside the .MA(maya ascii file) there is a line defaultRenderGlobals. My script is supposed to find this line and according to what options they manipulate will update the lines below defaultRenderGlobals. I've got that working... but... the issue i'm having is that defaultRenderGlobals is only made when a the maya scene is made into a batch render. I want my script to manually addefaultRenderGlobals line into the .ma file if its not there and add the certain lines below it.RenderGlobals is already there I want to just manipulate whats below it. Hope this makes sense
I've got 2 problems:1. How can I use the find command to search for devices files?2. I need to find all files thaare 6 months (or more) old and that have a size of 2 Mo or more. What would the code look like?Oh and also, how can I use the cat command to insert text in a file?
how to search for those files which contain word "AM_COLLECTION=22". I need to know all the files with this string. ( I know the grep command can do it but either
I want to search file excluding the NFS ...find / -mount -name 'filename' restricts the search only in the root disc partition,but the file can be in other partitions alsoIs there any way to exclude the NFS only.
i am using openSUSE 10.3 & like to use power of terminal to do tasks.I want to search all files containing word 'echo' in given folder.What should be command.
Trying to find a way to have the find command perform a search using multiple file extensions such as "find all pics" i.e. .jpg, .png, .gif, .raw etc. I would have thought something like the following would have worked, but apparently I'm doing something wrong:
sudo find / -type f -iname "*.jpg" "*.png" "*.gif" -printf
I'm guessing find simply doesn't support more than one "-name/-iname" at a time? Or perhaps I'm going about this the wrong way? I realize most times there's several different ways to skin a cat when a task is requested in linux/unix.
I am using NetworkManager Applet in Gnome to connect to the internet with a 3G modem. After last update few days back it changed the way it was recognizing the modem. I used to click on the NetworkManager Applet icon on the notification area and choose my configured mobile connection from the list. Because, as I said, I am using mobile broadband connection and I have to check via SMS my usage in order not to overcome the GB I am supposed to use (to avoid overpriced charge). In order to use Wammu to send/receive SMS I have to close the internet connection by right clicking on the NetworkManager Applet and uncheck "Enable Mobile Broadband" otherwise Wammu can't use the usb dongle because it's locked by the internet connection. Up to this point all is working exactly the same. Except when I uncheck the "Enable Mobile Broadband" the NetworkManager Applet disappears and I can only get it back with a reboot. Also I tried clicking on the applet and choosing "Disconnect" from the menu. The applet stays there but there are no more options for mobile connection. Only wired connections and VPN (whatever that is). In this case if I disconnect and reconnect the usb dongle it recognise it again. So my question is: Is there a way to make NetworkManager Applet to always stay aware of the usb modem without disconnecting or rebooting? Or at least is there a command that can search for new usb hardware without the described procedure?
When looking for a certain word or phrase in the man page of linux command, one can type '/' followed by the word/phrase to search for it. What I'd like to be able to do is to search for the next occurrence of the word/phrase without having to type it out again. Kinda like when you use 'ctrl+f' in a browser to search for a word, and then press 'enter' to find the next occurrence of that word.If this is possible to do, how do I do it?