Shutting down F8 from terminal

Page 1 of 1

9 Replies - 907 Views - Last Post: 13 April 2008 - 12:43 PM

#1 bigdoggy   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 115
  • Joined: 31-October 07

Shutting down F8 from terminal

Posted 10 April 2008 - 09:31 PM

hi

I have my system dual-booting with Vista and F8 but was wondering how I shutdown linux from the terminal? shutdown isn't recognised by bash...? (I have a console login which then sends me to an X selection screen-in case it hinders the problem)
here is my power management options if anything needs altering

# Power management options (ACPI, APM)
#
CONFIG_PM=y
CONFIG_PM_LEGACY=y
CONFIG_PM_DEBUG=y
# CONFIG_PM_VERBOSE is not set
# CONFIG_DISABLE_CONSOLE_SUSPEND is not set
CONFIG_PM_TRACE=y
CONFIG_PM_SLEEP_SMP=y
CONFIG_PM_SLEEP=y
CONFIG_SUSPEND_SMP_POSSIBLE=y
CONFIG_SUSPEND=y
CONFIG_HIBERNATION_SMP_POSSIBLE=y
CONFIG_HIBERNATION=y
CONFIG_PM_STD_PARTITION=""
CONFIG_ACPI=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_PROCFS=y
CONFIG_ACPI_PROC_EVENT=y
CONFIG_ACPI_AC=m
CONFIG_ACPI_BATTERY=m
CONFIG_ACPI_BUTTON=m
CONFIG_ACPI_VIDEO=m
CONFIG_ACPI_FAN=y
CONFIG_ACPI_DOCK=y
CONFIG_ACPI_BAY=m
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_HOTPLUG_CPU=y
CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_ASUS is not set
CONFIG_ACPI_TOSHIBA=m
CONFIG_ACPI_BLACKLIST_YEAR=1999
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
CONFIG_X86_PM_TIMER=y
CONFIG_ACPI_CONTAINER=y
CONFIG_ACPI_SBS=m
CONFIG_APM=y
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
# CONFIG_APM_DO_ENABLE is not set
CONFIG_APM_CPU_IDLE=y
# CONFIG_APM_DISPLAY_BLANK is not set
# CONFIG_APM_ALLOW_INTS is not set
# CONFIG_APM_REAL_MODE_POWER_OFF is not set

Is This A Good Question/Topic? 0
  • +

Replies To: Shutting down F8 from terminal

#2 pertheusual   User is offline

  • D.I.C Head

Reputation: 10
  • View blog
  • Posts: 245
  • Joined: 26-January 08

Re: Shutting down F8 from terminal

Posted 10 April 2008 - 10:13 PM

What do you mean by isn't recognized. It just doesn't do anything?
How about using the command "halt"?

I don't know about F8, but I know in Ubuntu I have to do "sudo halt".
Maybe you need sudo?

Per
Was This Post Helpful? 0
  • +
  • -

#3 MorphiusFaydal   User is offline

  • D.I.C Lover
  • member icon

Reputation: 44
  • View blog
  • Posts: 1,376
  • Joined: 12-May 05

Re: Shutting down F8 from terminal

Posted 11 April 2008 - 01:15 AM

Most likely you're not doing it as root - Linux, unlike Windows, only the superuser can shut down the system.. You'll have to change to root before you can shutdown.

Either, like pertheusual said, you can try sudo shutdown -h now. Alternately, you can do -
[email protected] # su -
Enter password:
root $ shutdown -h now


I give both options because I'm not sure if Fedora 8 sets up sudo or not. If neither of these work, can you copy and paste the full error?
Was This Post Helpful? 0
  • +
  • -

#4 bigdoggy   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 115
  • Joined: 31-October 07

Re: Shutting down F8 from terminal

Posted 11 April 2008 - 02:40 AM

View PostMorphiusFaydal, on 11 Apr, 2008 - 01:15 AM, said:

Most likely you're not doing it as root - Linux, unlike Windows, only the superuser can shut down the system.. You'll have to change to root before you can shutdown.

Either, like pertheusual said, you can try sudo shutdown -h now. Alternately, you can do -
[email protected] # su -
Enter password:
root $ shutdown -h now


I give both options because I'm not sure if Fedora 8 sets up sudo or not. If neither of these work, can you copy and paste the full error?

The message is:

root-) shutdown -h now
bash: shutdown: command not found
Was This Post Helpful? 0
  • +
  • -

#5 GWatt   User is offline

  • member icon

Reputation: 312
  • View blog
  • Posts: 3,107
  • Joined: 01-December 05

Re: Shutting down F8 from terminal

Posted 11 April 2008 - 05:00 AM

shutdown, init, reboot are all in /sbin (or /usr/sbin) which are only accessible from super user mode.
Was This Post Helpful? 0
  • +
  • -

#6 bigdoggy   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 115
  • Joined: 31-October 07

Re: Shutting down F8 from terminal

Posted 11 April 2008 - 12:27 PM

View PostGWatt, on 11 Apr, 2008 - 05:00 AM, said:

shutdown, init, reboot are all in /sbin (or /usr/sbin) which are only accessible from super user mode.

so I can only use 'shutdown -h now' via running the command 'su [enter password] shutdown -h now'?
Because I've tried it and it doesn't work????
Was This Post Helpful? 0
  • +
  • -

#7 pertheusual   User is offline

  • D.I.C Head

Reputation: 10
  • View blog
  • Posts: 245
  • Joined: 26-January 08

Re: Shutting down F8 from terminal

Posted 11 April 2008 - 12:44 PM

Okay, if something still doesn't work, we still need more info. Did it say "command not found" again?

And if so, when you do "su", do you have a space and a dash after it like in the example given above?

Also, check if "sudo" is installed, then you can just run "sudo shutdown -h now". It's only one command instead of two.

Per
Was This Post Helpful? 0
  • +
  • -

#8 Nova Dragoon   User is offline

  • The Innocent Shall Suffer, Big Time
  • member icon

Reputation: 38
  • View blog
  • Posts: 6,169
  • Joined: 16-August 01

Re: Shutting down F8 from terminal

Posted 11 April 2008 - 01:48 PM

you have to do a su - with the - to get the correct environment for root
Was This Post Helpful? 0
  • +
  • -

#9 MorphiusFaydal   User is offline

  • D.I.C Lover
  • member icon

Reputation: 44
  • View blog
  • Posts: 1,376
  • Joined: 12-May 05

Re: Shutting down F8 from terminal

Posted 13 April 2008 - 12:18 AM

Yeah, make sure you don't forget that hyphen. It makes it load the proper $PATH variable for root, rather than just acting as your regular user with root permissions. Seeing as how `shutdown` is in /sbin, it's not in the default $PATH, and thus won't work if you just `su`, rather than `su -`. You could `/sbin/shutdown -h now`, but it's shorter to tack that hyphen onto the `su`. :)
Was This Post Helpful? 0
  • +
  • -

#10 Tom9729   User is offline

  • Segmentation fault
  • member icon

Reputation: 181
  • View blog
  • Posts: 2,642
  • Joined: 30-December 07

Re: Shutting down F8 from terminal

Posted 13 April 2008 - 12:43 PM

I usually do "sudo init 0", works better than the shutdown command if you don't need things like a timer.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1