Fedora running Level and Its Virtual File System/proc

Source: Internet
Author: User
Tags superuser permission

When adding new hardware to an existing Linux system, you want to know the resource configuration status of the current system. How should you view it? Very convenient. The/proc file system contains kernel information about resource allocation. Among them,/proc/interrupt,/proc/dma,/proc/ioports, including system interruption, dma, and I/O port distribution. You can run the lsusb command to check whether the device is connected to the Linux system. The command lsmod will display the status of the system to load the module. Of course, you can run cat/proc/modules to check whether the device is connected to the Linux system. If a module is not loaded at the beginning, can it be installed or removed at runtime? The answer is yes. Use the "install module" or "modprobe module" command to automatically locate and insert a module to a running kernel with the superuser permission, and remove the unused module as the "rmmod modules" command.

The running level of Linux is represented by 0-6, where 0 and 6 are transitional special levels, representing shutdown and restart respectively. When a Linux system is started, the first process executed is init, which starts all other processes. This process is responsible for guiding the system to the default running level, usually 2, 3, and 5, this depends on the Linux version and the machines used. The following table lists the meanings of Typical Running levels:

Running Level 1 (single user mode) is a basic operating environment dedicated for system maintenance. A common cause of forced entry into the single-user mode is that the system cannot automatically handle file system damages, and the administrator needs to intervene to make corrections.

You can set the default running level through ln-s/lib/systemd/system/<target name>. target/etc/systemd/system/default.tar get (this command is the method on Fedora17)

The general method is to modify the/etc/inittab file. Run the runlevel command to view the current running level of the system. To change the current running level, there are two commands available: init and telinit will send a signal to the running init process and tell it to switch to the specified running level. This Command requires the superuser permission.

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.