Hot answers tagged

57

You can find the version number of a package in your repositories with the yum info command. # yum info rabbitmq-server Available Packages Name : rabbitmq-server Arch : noarch Version : 2.6.1 Release : 1.fc16 Size : 1.1 M Repo : updates Committer : Peter Lemenkov <lemenkov@gmail.com> Committime : Tue Nov 8 13:00:...


21

well grep -n "my string" file_name will do for your particular query. GREP is by default case sensitive in nature and to make it case insensitive you can add -i option to it. The -n option displays the line numbers. For other myriad options, I recommend man grep for more interesting pattern matching capability of GREP.


18

https://pkgs.org/ provides a "Linux Packages Search" for several distributions, including CentOS 5–7.


12

Sure. You'll probably want to do something more useful than the following example though. $evilHashes = @( '4C51A173404C35B2E95E47F94C638D2D001219A0CE3D1583893E3DE3AFFDAFE0', 'CA1DEE12FB9E7D1B6F4CC6F09137CE788158BCFBB60DED956D9CC081BE3E18B1' ) Get-ChildItem -Recurse -Path C:\somepath | Get-FileHash | Where-Object { $_.Hash -in $...


9

[String]$BadHash = '5073D1CF59126966F4B0D2B1BEA3BEB5' Foreach ($File In Get-ChildItem C:\ -file -recurse) { If ((Get-FileHash $File.Fullname -Algorithm MD5).Hash -EQ $BadHash) { Write-Warning "Oh no, bad file detected: $($File.Fullname)" } }


9

If you have a copy of the file, you should activate AppLocker across the entire domain and add a hash rule for that file to stop its execution. This has the added bonus of identifying computers that are trying to run the program because AppLocker logs block and deny actions by default.


8

I usually chain greps to do this. grep uploaded $file | grep -v 09


8

At first run sudo indexer --all It will create index files than run searchd


7

For search volumes of that size, I've used a Google Search Appliance. They can be expensive, but they are very customizable and they do an incredible job of indexing things. As a bonus, it will not only index file shares, but you can point it at web resources as well for indexing.


7

POSIX grep doesn't have such options, but coreutils grep does. grep -r --include='*.xml' -l foobar . should do it. FreeBSD grep (and OS X) appear to have the same thing, Solaris & AIX lack them AFAICT.


7

You should enable it globally, otherwise you'll be vulnerable to the situation where an attacker modifies the unencrypted form to send all the user data to evilserver.com rather than to the one you want (or, since the attacker is actively listening, modify the form action to use HTTP instead of HTTPS). You may also get into a configuration headache ...


6

I guess you mean to look for attribute uid or mail (not filtering on those). It is not possible, straight away, to use 2 different attributes in the LDAP URL, although RFC 2255 allows for it. mod_authnz_ldap alone: not possible Apache mod_authnz_ldap documentation states the URL must be like: ldap://host:port/basedn?attribute?scope?filter with attribute: ...


6

The CPU usage you showed in the screenshots is not very high. So let's start by investigating what do you mean by "slowness". It's very likely that your disks are saturated, causing everything to feel slow. It's a good hypothesis that the indexing server is the one causing it, but we've to collect more evidence first. Go to Task Manager > Performance >...


5

Actually, Everything Search can search on the network, but you have to create a file list yourself. Go to Tools -> File List Editor Click Edit -> Add folder --> here, select a shared folder on the network and hit OK. Everything Search might freeze and it might take from 1 to 10 minutes or longer to create a list so be patient. When you see files in the ...


5

You can use cmd: dir *#*.* /s


5

I know you are using Jetty, but I have a method using Tomcat that works and will explain below. Basically, I have given up trying to understand what I perceive as excessively obtuse ways Java web apps protect themselves in Jetty and Tomcat. So I prefer allowing Apache to do the heavy lifting of being the first line of defense against access. Apache is solid ...


5

In Powershell, single quotes ' indicates variable expansion should not happen within the string. You should try with the double quotes " instead: Get-QADComputer -NotLoggedOnFor 90 -SearchRoot "doman.name/OU1/$OU2" From the docs: PS C:\> Get-Help about_Quoting ... SINGLE AND DOUBLE-QUOTED STRINGS When you enclose a string in double quotation marks ...


4

LAN Search Pro will search Windows shares in an entire domain, workgroup, or server.


4

find dir1 -name '*.mp3' -print will do it. -name and -iname are case-sensitive and case-insensitive matches for find.


4

This isn't using grep - but anytime I have a need that requires more than a basic grep, I turn to my favorite, sed. Certainly any time I have to chain grep commands together... Use this command to do it: sed -n '/09/d; /uploaded/p' file Just one single command (not two).


4

You can use the -v option to grep to invert the match so grep uploaded file | grep -v 09 will do what you want. This finds the lines that contain uploaded which are passed piped into a grep command to ignore lines with 09 in them.


4

This behavior is by design. IPv6 is being preferred - so the status of the resource in AAAA terms is determined first. An NXDOMAIN response comes back - so the client figures it needs to append the search path. Note that the ndots remark you've made is correct - but not the whole story. If the ndots number higher than the name being queried (if it were a ...


4

You need to change the collation of the database/tables, by selecting one that equates é with e that is most suitable for your needs, such as utf8_general_ci. You should carefully select one based on your requirements, unfortunately there are a lot to choose from; http://dev.mysql.com/doc/refman//5.5/en/charset-unicode-sets.html MySQL also offers some nice ...


3

Depending on what files you are trying to index, you probably need the appropriate iFilters so Windows Search can go in and actually sift through the binary contents of each file and grab out the text so it can index it. After the iFilters are installed, go to Control Panel -> Indexing Options Click Advanced button Click Rebuild PDF iFilters Adobe -- ...


3

Given that you're trying to search a server and not your local system, it's probably not related to indexing as you shouldn't have all your clients indexing a file server. What happens on the system that doesn't work if you login as a completely different user and try to search the sever? If you get results, try the steps laid out on this site There's a ...


3

AFAIK, yum info only shows information for one specific "instance" of a package. I wanted to know not what version I had installed but which were available on the repos. So this did it for me: yum -v list package_name --show-duplicates


3

Sure, you've just got to make sure the indexing for all the different sites cooperate to provide compatible search data. Exactly how you'll achieve that is a tricky subject that would be better suited to SO (since it's a programming question).


3

I guess it would depend on how your server is loaded but I can't say I've ever known a find command make a server go unresponsive. If you're concerned about it then you could always use nice. You don't say which OS/Distro or Webserver you're using but it may be easier to just look at the webserver config files. For example you can look for DocumentRoot ...


3

Open Server Manager, click on Add roles and features click next until you get to Features and then uncheck Windows Search Service and complete the wizard. You might be best of sharing the issue you are having as well, is it a performance issue due to this service?


Only top voted, non community-wiki answers of a minimum length are eligible