Tuesday 25 June 2013

Find a File by its Contents (uBuntu Contents Search)

So you can find a file by it's name pretty easily using Nautilus but how do you search for it's contents?

Enter the following code in the terminal:
grep -lir "search text" /path/to/directory
And it'll return a list of files containing your search terms within them.

Sunday 9 June 2013

Extracting/Unzipping a Zip Archive with .z01 Files

This is what you do when you've got a bunch of rar files, one ending in .zip then .z01, z02 etc.

1. Open up the terminal.
What we're going to do is compile all those weird .z01 files into one easy to open .zip file - which we'll then unzip via the command line.

2. Enter the following commands, replacing example with your file name.

cat example.z01 example.zip > example2.zip

unzip example.zip 


3. And there you have it - you should have your file!