How to use restart command in Ubuntu 12.10 terminal

Asked by Edmond Condillac on 2013-07-23

My PC is an emachine (eME732) 32-bit running Ubuntu 12.110 32-bit operating system. I tried using the restart command at the root prompt, but got the following output
                                                 restart: missing job name

Kindly advise what the job name should be. I ran the command restart --help. This advised the following
                                                Usage: restart [OPTION]... JOB [KEY=VALUE]...
                                                Restart job.

I'm new to running CLI commands in the terminal and would be most grateful for help and advice on learing to use this, please.

Thank you for your kind help.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
2013-07-23
Last query:
2013-07-23
Last reply:
2013-07-23

reboot is the command to power off and on a system. Restart is for init
http://linux.die.net/man/8/restart

You can also run:

sudo shutdown -r now

Edmond Condillac (econ22) said : #2

Thanks actionparsnip, that solved my question.

frankrice (mad-skin) said : #3

sudo init 0 is going to do the same job :)

Barry (barrytafe) said : #4

The Linux command Line by William E. Shotts is the best book to read,as i am currently studying this as well,
a free PDF. download is also available at
www.linuxcommand.org

Good luck
Barry

Edmond Condillac (econ22) said : #5

On 23/07/13 13:21, Barry wrote:
> Your question #232896 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/232896
>
> Barry posted a new comment:
> The Linux command Line by William E. Shotts is the best book to read,as i am currently studying this as well,
> a free PDF. download is also available at
> www.linuxcommand.org
>
> Good luck
> Barry
>
Thank you for your most kind advice.

Edmond Condillac (econ22) said : #6

On 23/07/13 12:21, frankrice wrote:
> Your question #232896 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/232896
>
> frankrice posted a new comment:
> sudo init 0 is going to do the same job :)
>
Thank you for this useful help.