Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The title says all. I would like to have this option in right click menu on the desktop or in nautilus. I know that is possible, but I don't remember how to do this.

share|improve this question
up vote 11 down vote accepted

You may want to use Templates directory (or how is called in your language) from your home directory in this sense. Files from this folder will appear in the New Document menu. So, add the files with the extension what you want in this folder and you can create them after files with the same extension from the right click menu:

enter image description here

Moreover, if you add some predefined text in these files from Templates folder, the new files which you will create them from the right click menu will contain that text.

See also: What is the "Templates" folder in the home directory for?

share|improve this answer
+1 for showing a fast way to create blank empty files via the terminal. – i08in Dec 3 '13 at 11:11
@Jobin I know this from when I asked here :) – Radu Rădeanu Dec 3 '13 at 11:16
@Jobin be careful, if the file exist it will get truncated ;) – Braiam Dec 3 '13 at 19:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.