linux, Tips, Tutorial

Practical Find Command Examples – Linux

Working on Linux environment is much easier and –a lot faster– when you know how to use command line. Even knowing basic operation of command line is more than enough if you know the combinations.

One of powerful commands in Linux is find. With this four character you find almost anything, from file located inside a directory to specific category of files or even rename files with particular condition. All can be done with find –and its combination of course.

find - Linux

The simplest command of find is: find [path] [expression]

But, there are many expressions available for find, including -daystart, -mindepth, -mtime, -iname, -inum and so on.

Here is 15 practical find command examples and here’s 15 awesome more. It’s practical and so easy to follow.

If you want more information, find it here. Or type man find in your Terminal. Good luck!

blog, linux, news

[Linux] Penguins Can Fly

We all know Penguins cannot fly, right? Well, in Russia they can fly. Because they have Eagle wings. Here it is:

Penguins Can Fly
Credit: http://lazarenko.me

Who said that penguins can’t fly? Here is an example! A small bird has made things, that were not given to it by the mother nature, by itself – wings. We wanted to somehow help Tux to become more popular and we finally ended up with this project.

Sergey V Mikhailov, CEO of Tyunet, commented.

It is Linux movement project in Russia sponsored by Tyunet hosting provider. I wish I had the sculpture in my room.

Oh, anyway. Vladimir Putin has mandated the government to use Linux as their operating system. Cool. huh?

Featured, How to, linux, Open Source, Tips

[How to] Recover Deleted Files With Scalpel in Ubuntu

I am in a habit of using [Shift] + [Del] combination to delete files rather than delete only. I won’t store not-so-important files in my Recycle Bin, that’s why. This is a good habit in one hand and bad in the other hand because there’s a chance I accidentally delete an important file/folder.

Recover your deleted files in Ubuntu

Luckily, Linux (Ubuntu in this case) has few good tools to recover deleted data and in easy ways. In this post I will show you how to recover deleted file via Ubuntu with Scalpel.

Scalpel is a file system independent recovery tool which available for Linux and Mac OS. But, you can run it on Windows with mingw.

  1. Install the Scalpelwith:
    # sudo apt-get install scalpel.
  2. Open configuration file located in /etc, it looks like /etc/scalpel/scalpel.conf, with an editor.
    # vi /etc/scalpel/scalpel.conf
  3. Uncomment file type line part you wish to recover and save the file
  4. Run Scalpel from the Terminal
    scalpel /Device_Name/Drive_Name/Folder_Name -o Output_Directory
  5. Output_Directory will be created in the directory we’re running Scalpel. The Output_Directory should not be exist before you run Scalpel because otherwise Scalpel will refuse to start.
  6. Go to Output_Directory and view what’s inside.
  7. There should be a file named audit.txtwhich contains a summary of what Scalpel has done. Open it to look what has done.
    cat audit.txt
  8. There should be adirectory which has recovered files. For example the folder named pdf-0-0 for PDF files. Open the folder and you have your file.

For more information about scalpel commands, type: man scalpel

Good luck and here’s the download link.