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

I am trying to install gitlab on my server but when I run this command:

sudo -u git -H editor config/gitlab.yml

then I get:

sudo: editor: command not found

cn you guys tell me what is the wrong with this command, I am following this instruction for installing GitLab:

I am not much familiar to Linux and SSH commands, so be gentle with me. Thanks

share|improve this question
Newcomers often use the nano editor. Does sudo -u git -H nano config/gitlab.yml work for you? – John1024 Apr 23 '14 at 7:47
up vote 3 down vote accepted

The editor command doesn't exist by default. In the tutorial you are using they are making editor as an alias for vim earlier.

You can just use vim (advanced) or nano (easy) instead of editor.

share|improve this answer
Doesn't it? which editor shows me /usr/bin/editor... That should exist for all users. – Oli Apr 23 '14 at 7:48
@Oli I agree. /usr/bin/editor links to /etc/alternatives/editor, which links to /bin/nano on both of my systems. – Jos Apr 23 '14 at 7:51
@Oli Yeah you're right, my bad. But it is a symlink which he may have accidentally removed (if he just executed all commands in the tutorial). – Louis Matthijssen Apr 23 '14 at 7:52

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.