Use grep to search through source code trees fast and find what you are looking for.

Using the grep utility to search through source code can take a long time when you are searching for certain text. But this can be made easier if you use grep. The command below: grep -rn –include "*.*" "winlogon" .grep -rn –include "*.*" "winlogon" . Will search recursively through a source code tree and find … Read more

Searching for words in random data. This is very interesting.

I have found a nice method of searching randomly generated data for certain words. This takes a while but can bear fruit in the end. Here is an example, this is searching through the /dev/urandom file and then finding an instance of the word “linux”. jason@jason-Lenovo-H50-55:~$ time tr -cd [:lower:] < /dev/urandom | fold -w … Read more

How to search for a folder and then switch to it in Linux.

This simple command will search for a folder named xray* and then switch to it. ┌──[[email protected]]─[~/Documents] └──╼ ╼ $ cd $(find . -type d -name "xray*")┌──[[email protected]]─[~/Documents] └──╼ ╼ $ cd $(find . -type d -name "xray*") After running this command, it has found a folder that matches the wildcard and then switched to it. ┌──[[email protected]]─[~/Documents/xray-16] … Read more

How to find matching files when using grep to search for files containing text.

The grep utility is very useful when searching for text in files. This can be used recursively to find matching files. This tip will return the full path to all files containing the text you are looking for. 4.4 Thu Apr 23 jason@Yog-Sothoth 1: $ grep -r -H "noclip"4.4 Thu Apr 23 jason@Yog-Sothoth 1: $ … Read more

How to use find on Linux to find and display a list of files.

The Linux find command is very useful for finding certain files. I will show how to search a folder and return a listing of files. This example below shows how to list all webm and gif files in the directory and all subdirectories. 4.4 Fri Feb 21 jason@Yog-Sothoth 0: $ find -regex ‘.*\.\(gif\|webm\)’ -print ./1397195397532.gif … Read more

How to search through textfiles in a folder when you are stuck on Windows.

Windows has quite a few useful utilities for searching text. The findstr utility allows searching through a folder full of text files for a certain string. Here is an example. >findstr /S /R "money_quest_update" *.*>findstr /S /R "money_quest_update" *.* And this is how to search for text strings in a folder. E:\shadowofchernobyl\gamedata>findstr /S /R "money_quest_update" … Read more

Finding files with the Linux command line. Using find & locate.

Finding files with the Linux command line. Using find & locate The find command on Linux is very useful for finding commands on your Linux installation. In the example below, I am using wild-cards to look for all the c source files in a certain folder. neo@deusexmachina:~/Documents$ find -name "*.c" ./strobe.c ./myftp.c ./utv_gd.c ./syscall.c ./program.c … Read more

Russian cybercafe webcam, and how to find more webcams online.

To find cool webcams with the Google search engine, use this Google search term. inurl" /view/index.shtmlinurl" /view/index.shtml This is an example I found, this is a Russian cybercafe. http://212.42.54.137:8008/view/index.shtml Russian cybercafe. This is another search term. intext:”MOBOTIX M10″ intext:”Open Menu”intext:”MOBOTIX M10″ intext:”Open Menu” This is one cam I found with it. A view over some … Read more

Use the find command in Linux to look for multiple file types at once.

The Linux find command is useful for finding files on your Linux system. It is possible to look for more than one file type. This example will search for all text and png files under the /usr/share directory. jason@neo:/usr/share$ find -regex ‘.*txt\|.*png’jason@neo:/usr/share$ find -regex ‘.*txt\|.*png’ This example will search for three different file types. jason@neo:/usr/share$ … Read more

How to search for files on a Windows machine with the command line. And some other useful tricks.

This command will search a directory recursively to find files matching a pattern. C:\Users\Homer>where /R C:\Users\homer\Documents *.txt C:\Users\Homer\Documents\age-of-ultron-script-outline.txt C:\Users\Homer\Documents\windows10key.txt C:\Users\Homer\Documents\Downloads\Linux The Complete Manual 2nd Edition (TRUE PDF)\Torrent downloaded from AhaShare.com.txt C:\Users\Homer\Documents\Downloads\Linux The Complete Manual 2nd Edition (TRUE PDF)\Torrent Downloaded From ExtraTorrent.cc.txt C:\Users\Homer\Documents\Downloads\Linux The Complete Manual 2nd Edition (TRUE PDF)\tracked_by_h33t_com.txt C:\Users\Homer\Documents\Downloads\Linux The Complete Manual 2nd Edition … Read more

A good utility for finding all executables in a given path.

Finding all executables in a given path is easy if you use the lsx utility. Firstly install the required packages. jason@eyjafjallajkull:~$ sudo apt-get install suckless-tools [sudo] password for jason: Reading package lists… Done Building dependency tree Reading state information… Done Suggested packages: dwm stterm surf The following NEW packages will be installed: suckless-tools 0 to … Read more

How to find files on the Linux filesystem.

The find command is very useful for locating files on your Linux filesystem. Below is an example of wildcards to locate files in the /boot directory. ubuntu@ip-172-31-20-16:~$ sudo find /boot -name "vm*" /boot/vmlinuz-3.13.0-44-genericubuntu@ip-172-31-20-16:~$ sudo find /boot -name "vm*" /boot/vmlinuz-3.13.0-44-generic Here I am searching the whole / filesystem for a set of files that end in … Read more

How to find the Ubuntu version using the command line terminal.

The lsb_release -a command will print the Ubuntu version to the terminal. This is how you find out information about your Ubuntu installation. ubuntu@ip-172-31-20-16:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.2 LTS Release: 14.04 Codename: trustyubuntu@ip-172-31-20-16:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.2 … Read more

How to find a file with the Linux command line.

The Linux command line is very useful for finding files, the find command is the best way to locate files on your filesystem. This is a simple example. knoppix@Microknoppix:~$ sudo find /proc -name "meminfo" /proc/meminfoknoppix@Microknoppix:~$ sudo find /proc -name "meminfo" /proc/meminfo Use the -maxdepth parameter to only search a certain number of levels deep into … Read more