Loading

×Sorry to interrupt
CSS Error

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

Skip to main content

Products and Accounts

Support

Knowledge

Communities

Success

Learning

My Subscriptions

Loading

Knowledge Base

Changing Linux run levels (1004015)

Last Updated: 9/4/2017Categories: Total Views: 22236Language:
English

2 like this article

Subscribe to get an email
newsletter with new updates

2 people found this helpful Please provide article feedback:

Purpose

This article describes how to change Linux run levels. Changing Linux run levels is useful in troubleshooting problems where it is suspected that there is a daemon or application being loaded into Linux that may be causing unexpected operating system behavior. Examples of such unexpected behavior include crashes, the operating system failing to respond or being slow, and network problems. If the unexpected behavior stops after disabling a service or application then the source of the problem is identified. Other reasons for changing the run level include not having a requirement for an X-Windows environment and needing to perform system maintenance.

Resolution

To change the run level of a Linux operating system:

Note: If the run level is being changed to troubleshoot a problem with the operating system or an application, following this procedure may remove a software environment that is required to test the health of your operating system.

Ensure that you are logged in as a user with root privileges.

Edit the file /etc/inittab in the text editor of your choice.

Note: To perform this from a shell prompt using the VI text editor, refer to the Additional Information section at the end of this document.

Look for the line of text id:X:initdefault: where X is replaced by a number. This number represents the default Linux run level.

Edit the line of text and replace X with the run level you want to change to:

1

Single User Mode

3

Full multiuser

5

X-Windows (X11)

Note: The above is a list of run levels that are generally used. If the full list is not displayed at the top of the inittab file and you need to change to a level not listed, refer to the manual for your distribution of Linux.

Warning: Do not set X to 0 or 6.

Save the edited file.

Reboot the operating system.

Note: Linux boots into the new run level each time it is started. To return it to its former behavior, repeat steps 1-6 and edit the file to use the original value of X.

Note: It is possible to change the run level without rebooting the operating system and without affecting the run level the operating system defaults to when it is started:

Open a shell prompt. For more information, see Opening a command or shell prompt (1003892).

Type init X and press Enter, where X is replaced by the run level you want to change to.

Note: If this command does not work, refer to the manual for your distribution of Linux.

Caution: This command exits all running applications. Save all work before entering this command.

Related Information

Editing the /etc/inittab file from a shell prompt using the VI text editor:

Open a shell prompt. For more information, see Opening a command or shell prompt (1003892).

Type cd /etc and press Enter.

Type vi inittaband press Enter.

Type /id: and press Enter.

Press the right arrow key three times.

Type r.

Type the number of the run level you want to change to.

Type :x and press Enter.

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
English

Attachments

Additional Resources

KB
•
vCenter Server または VCSA のバージョン 6.0 から 6.5 または 6.7 へのアップグレードが第 2 ステージの 40% で失敗する (68014)

KB
•
vSphere 6.5 以降で CLI を使用して SSO ID ソースを追加または構成する方法 (67304)

Results 1-2 of 2

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware Workstation Player

VMware Workstation

VMware VirtualCenter

VMware View

VMware vCenter Lab Manager

VMware Server

VMware Player

VMware GSX Server

VMware Fusion

VMware ESX Server

VMware Converter

VMware Consolidated Backup

VMware Capacity Planner

VMware ACE

view all

Related Versions:

Take Our Survey

Was this article helpful?

YES

NO

Copyright © 2005-2024 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.

Terms of Use

Your California Privacy Rights

Privacy

Accessibility

Cookie Settings

Support Assistant