Some useful commands through Linux command line

Some useful commands through Linux command line


Search quickly in Wikipedia by using the Linux command mode
in Linux/Unix command prompt, For example – type what is Command ? Use the following command:


dig +short txt (words u need to search in Wikipedia)

dig +short txt

Output : -

“Command may refer to: Command (computing), a statement in a computer language, COMMAND.COM, the default operating system shell and command-line interpreter for DOS, Command (military formation), an organizational unit, Command key, a modifier key on Apple” ” Macintosh computer keyboards, Command pattern, a software design pattern in which objects represent actions, Command…

Easy ways to take screenshot in Linux Terminal window

We already discussed in previous topic about taking screenshot using  import command 

Another method to take screenshot is scrot command.

What is scrot

SCROT-(SCReenshOT) command is used for taking screen shots of your Desktop,Scrot uses imlib2 library to aquire & save images.

To install scrot using Yum command

yum install scrot*
Loaded plugins: presto, refresh-packagekit
google-chrome | 951 B 00:00
updates/metalink | 3.4 kB 00:00
virtualbox | 951 B 00:00
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package scrot.i686 0:0.8-5.fc12 set to be updated
–> Processing Dependency: for package: scrot-0.8-5.fc12.i686
–> Processing Dependency: for package: scrot-0.8-5.fc12.i686
–> Running transaction check
—> Package giblib.i686 0:1.2.4-14 set to be updated
—> Package imlib2.i686 0:1.4.3-1.fc13 set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

Package Arch Version Repository Size
scrot i686 0.8-5.fc12 fedora 18 k
Installing for dependencies:
giblib i686 1.2.4-14 fedora 21 k
imlib2 i686 1.4.3-1.fc13 updates 180 k

Transaction Summary
Install 3 Package(s)
Upgrade 0 Package(s)

Total download size: 218 k
Installed size: 542 k
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
fedora/prestodelta | 414 B 00:00
updates/prestodelta | 837 kB 00:00
Processing delta metadata
Package(s) data still to download: 218 k
(1/3): giblib-1.2.4-14.i686.rpm | 21 kB 00:00
(2/3): imlib2-1.4.3-1.fc13.i686.rpm | 180 kB 00:00
(3/3): scrot-0.8-5.fc12.i686.rpm | 18 kB 00:00
Total 145 kB/s | 218 kB 00:01
Running rpm_check_debug

scrot 0.8-5.fc12.i686

scrot -d 4 screenshot.png

This command will take entire screenshot of your Desktop


To display a countdown in the console. Use following command

scrot -q 80 -c -d 4 screenshot.jpg

Another method to take screenshot using  xwd command

What is xwd ?

Xwd is a dumping utility of X Window system.It also used to take screenshot.

xwd | convert xwd:- scnshot_$(date +%Y%m%d_%H%M%S).png


If you need to take a screenshot of your remote desktop use the following command

DISPLAY=”:0.0″ import -window root screenshot.png

Leave a Reply

Your email address will not be published. Required fields are marked *