How To Take Screenshot In Kindle Fire HD [Quick Tip]

Amazon Kindle Fire HDAamzon launched a low cost tablet series named Kindle Fire last year. The tablet has been a decent hit among those would not spend a lot on tablets like iPad or Galaxy. If you own one and wondering how to take screenshot in Kindle Fire, you need not to buy/download any dedicated app for this. Taking screenshot in Kindle Fire is almost similar to taking screenshot in Samsung Galaxy.

To take screenshot in Kindle Fire, all you have to do is:

Press the volume down button and the power button at (almost) same time and hold them together for around 1-2 second.

And nothing else. You will see an effect of screenshot being taken. You can view the saved screenshots in Photos->Device->Screenshot location. You can retrieve the photos by connecting it to a computer.

How To Take SCreenshot in Kindle Fire HD

I hope this quick tip helps you.

How to copy all the content of a directory in Unix without “cp: omitting directory” error [Quick Tip]

Problem Scenario:

You want to copy all the contents of a directory (lets say source_dir) which contains lots of other files and subdirectories inside it to another directory (lets say target_dir). If you simply try cp command it may result in the following error:

command: cp source_dir target_dir
output: cp: omitting directory source_dir

If you try recursive copy (using option -r) the directory is copied inside the target directory which you may not be suitable if you want to duplicate the contents of the source directory.

command: cp -r source_dir target_dir
command: ls target_dir
output: source_dir

Solution:

If you want to copy just the contents of the source directory as in duplicating all its contents use the following command:

command: cp -r source_dir/* target_dir

This command will copy all the content (not the directory itself) in the target directory.

How to remove a directory including all the subdirectories and files in Unix [Quick Tip]

Problem:

Imagine a scenario where you want to delete a directory (lets say dir_name) which contains lots of subdirectories (folders) and files. You may encounter the following errors if you try rm or rmdir:

rm: cannot remove `dir_name': Is a directory

rmdir: failed to remove `dir_name': Directory not empty

cannot remove directory `dir_name’. Directory not empty

Solution:

To avoid this problem use the following command:

rm -rf dir_name

It will delete all the content of dir_name including the subdirectories.