I am trying to install the nohup command. When I run sudo apt-get install nohup I get:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package nohup

What is the issue here?

  • Are you using Ubuntu? What happens if you run nohup in a terminal?
    – Pilot6
    Commented Jun 5, 2020 at 15:08

1 Answer 1


There is no nohup package and you don't need to install it.

This command is provided by coreutils package as you can see by

dpkg -S /usr/bin/nohup

This package should be installed by default.

  • 1
    Oh I see. I had the command in a script and I was getting script.trimmo.sh: 1: ’nohup: not found so I assumed nohup was not installed but looking more carefully I noticed that it's the ’ that's causing the issue. Thanks Commented Jun 5, 2020 at 15:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .