How to be root using sudo

If you want to execute a series of commands with root privilege then it is cumbersome to type sudo before every command. Instead just type sudo -i This will take you to root login with required environment variables. You can continue your work there.
hash@ssl50:~$ sudo -i
[sudo] password for hash:
root@ssl50:~#

For more details check manpage for sudo.

pdftk : manipulate pdf files


pdftk (pdf toolkit) is a tool for manipulating pdf files. It can be used for
  • concatenating pdf files
  • splitting files
  • update files
  • ....
It's very easy to use the tool. For example, to combine two pdf documents say part1.pdf and part2.pdf to get full.pdf just type
pdftk part1.pdf part2.pdf cat output full.pdf

For more details visit http://www.accesspdf.com/pdftk/

zenity : dialogs from command line and shell script

zenity is a tool for displaying gtk+ dialogs from command line or shell scripts. It can be used for displaying various kind of dialog boxes.

It is easy to use zenity for simpler applications compared to writing a GTK based program.

Following are some of dialogs that can be created using zenity.

  • Read text (entry)


  • hash@ssl50:~$ name=`zenity --entry --title="Example" --text="Your name please"`



  • Calendar


  • hash@ssl50:~$ zenity --calendar --title="Example" --text="Select the day"


  • Filechooser


  • hash@ssl50:~$ filename=`zenity --file-selection`



  • Question

    hash@ssl50:~$ zenity --question --text="Are you sure ?" ; echo $?



Check man page of zenity for more information.