How to Set Fedora to start from the command line by default?

Source: Internet
Author: User
Sumary: since there is no/etc/initab file in Fedora, we cannot set its runleveltarget here, But Linux provides us with a powerful tool named systemd, we can use system to link the default startup level, so let's get started! I. Implementation Code (1) Delete the target link and create a new Symbolic Link (started from the command line) ln-sf/lib/systemd/system/multi-user.target

Sumary: because there is no/etc/initab file in Fedora, we cannot set its runlevel target here, But Linux provides us with a powerful tool named systemd, we can use system to link the default startup level, so let's get started!

I. Implementation Code

(1) Delete the target link and create a new Symbolic Link (starting from the command line)

ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target

(2) Start from the graphic interface

Replace multi user.targetwith graphical.tar get.

Ii. Code explanation

Ln command

The ln command is a command for establishing a link between files. By default, it is hard link. We need to use symboli link ), it can create links for files in different file systems.

Options:

-S: Create a symbolic link

-F: delete an existing link with the same name.

One of the Usages: ln [target to be linked] [linked file or directory]

Example:

Ln-s xx yy

// Create a symbolic link yy for xx

Done!

For more details, please google the key words

Linux boot mode systemd upstart sysV http://www.linuxidc.com/Linux/2014-01/95555.htm

Why is systemd so quickly adopted? Http://www.linuxidc.com/Linux/2014-08/105789.htm

Systemd and sysVinit Color comparison table http://www.linuxidc.com/Linux/2014-09/106455.htm

Linux Kernel EMD-start/stop/Restart service http://www.linuxidc.com/Linux/2014-08/105975.htm in RHEL/CentOS 7

So useful! Run the systemd command to manage the Linux system! Http://www.linuxidc.com/Linux/2014-09/106490.htm

Linux init system initialization, Part 1: Systemd http://www.linuxidc.com/Linux/2014-12/110383.htm

For more information about Fedora, see Fedora topics page http://www.linuxidc.com/topicnews.aspx? Tid = 5

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-01/111985.htm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.