Home > Articles

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

Login and Shutdown

After rebooting your PC, you'll be able to log in to a Linux session. If you didn't choose to have X11 configured during the installation, you'll log in at a text-based login prompt. If you configured X and enabled a graphical login, the screen will clear after Red Hat Linux boots, and you'll be presented with a graphical login screen.

To log in at the text-based prompt, type your username and press Enter. You'll then be prompted for your password. After you press Enter, you'll be at the Linux command line. If you use a graphical login, you can use the shutdown or reboot menus in the screen's dialog box to shut down or reboot your system. To immediately shut down your system from the command line of a text-based session, use the su command and its -c option to run the shutdown command. In addition, use the -h or halt option and the keyword now, or the numeral 0, like this:

$ su - c "/sbin/shutdown -h now"

You can also use

$ su -c "/sbin/shutdown -h 0"

You can also use the shutdown command to immediately reboot your computer like this:

$ su -c "/sbin/shutdown -r now"

Or, you can use

$ su -c "/sbin/shutdown -r 0"

For new users, installing Red Hat Linux is just the beginning of a new and highly rewarding journey on the path to learning Linux. See Chapter 5 for additional information about using Linux commands. For Red Hat Linux system administrators, the task ahead is to fine-tune the installation and to customize the server or user environment.

Related Red Hat and Linux Commands

You might use the following commands while installing Red Hat Linux:

dd—Convert and copy data

fdisk—The Linux disk partitioning utility

grub—The GNU boot loader for Linux and other operating systems

lilo—The Linux boot loader

LOADLIN—A Linux boot loader for DOS

mkbootdisk—Red Hat's Linux boot disk creation utility

RAWRITE—A disk image utility for DOS

  • + Share This
  • 🔖 Save To Your Account