layout | title | tags |
---|---|---|
manual |
locate - Statistics of command combinations using pipe |
statistic |
The commands before locate
: Pipe the result of the given command to locate
.
Command | percentage |
---|---|
head | 100% |
The commands after locate
: Pipe the result of locate
to the given command.
Command | Percentage |
---|---|
xargs | 25% |
grep | 14% |
ls | 11% |
w | 11% |
sed | 7% |
name | 7% |
mv | 3% |
cat | 3% |
sort | 3% |
awk | 3% |
rm | 3% |
head | 3% |
Below are the scenarios for all command combinations above.
The description in the table is referenced from and can be used to search the one-line-command or the scripts in the website of CommandLineFu.
- Check apache config syntax and restart or edit the file
- do a full file listing of every file found with locate
- Move all located items to folder
- Delete all files from a locate output
- show a sorted list of directory whose name matches the pattern
- Find 'foo' in located files
- look some php code by some keywords
- locate a filename, make sure it exists and display it with full details
- quick find executable from locate db
- Find all relevant certificates (excluding some dirs) and list them each
- Find 'foo' in located files
- look some php code by some keywords
- do a full file listing of every file found with locate
- Find all relevant certificates (excluding some dirs) and list them each
- locate a filename, make sure it exists and display it with full details
- Random play a mp3 file
- Look up a unicode character by name
- look some php code by some keywords
- do a full file listing of every file found with locate
- pc is ghosted?!
- show a sorted list of directory whose name matches the pattern
- look some php code by some keywords
- Move all located items to folder
- Find all relevant certificates (excluding some dirs) and list them each
- search for files or directories, then show a sorted list of just the unique directories where the matches occur
- Random play a mp3 file
- Delete all files from a locate output
- Check apache config syntax and restart or edit the file