• Linux基础学习-命令行与图形界面切换


    命令行模式和图形界面模式切换

    打开文件 vim /etc/inittab

    # systemd uses 'targets' instead of runlevels. By default, there are two main targets:
    #
    # multi-user.target: analogous to runlevel 3
    # graphical.target: analogous to runlevel 5
    #
    # To view current default target, run:
    # systemctl get-default
    #
    # To set a default target, run:
    # systemctl set-default TARGET.target
    

    打开终端输入以下命令

    [root@qdlinux src]# systemctl get-default 
    graphical.target
    [root@qdlinux src]# systemctl set-default multi-user.target
    Removed symlink /etc/systemd/system/default.target.
    Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/multi-user.target.
    [root@qdlinux src]# systemctl get-default 
    multi-user.target
    [root@qdlinux src]# 
    
    

    查看当前运行级别

    [root@qdlinux src]# runlevel 
    N 5
    
  • 相关阅读:
    Xshell 设置右键粘贴功能
    python中dict操作集合
    mac 设置网页字体
    博客收藏
    memcache 安装与简单使用
    mac安装homebrew
    Graphviz下载 使用
    jekyll 与hexo
    js 汉字排序
    初试gem
  • 原文地址:https://www.cnblogs.com/qdlinux/p/9442900.html
Copyright © 2020-2023  润新知