EzineArticles - Expert Authors Sharing Their Best Original Articles



  Submit Articles
  Members Login
  Benefits
  Expert Authors
  Read Endorsements
  Editorial Guidelines
  Author TOS

  Terms of Service
  Ezines / Email Alerts
  Manage Subscriptions
  EzineArticles RSS

  Blog
  Forums
  About Us
  What's New
  Contact Us
  Article Writing Shop
  Advertising
  Affiliates
  Privacy Policy
  Site Map


Advanced Search


Would you like to be notified when a new article is added to the Software category?

Email Address:


Your Name:


Prefer RSS?
Subscribe to the
Software
RSS Feed:

Linux Su Command Training Example - How to Get to Work As the Linux Root User - Debain Ubuntu
Print This Article Ezine Publisher Send To Friends Add To Favorites Post A Comment Suggest Topic Report Author
CloseRecommend This Article
From:
To:
Message:

When working at a Linux desktop as a "regular" Linux user, many times you will need to go to the command line prompt and run System Administration commands.

And to run many of the these commands, you need to work as the user named root (a.k.a. Superuser).

Linux Commands Training Tips: The Superuser name is abbreviated as su (and you will see how to use the command of the same name below).

You use the Linux su command (with the - option) at the prompt to change from working as a "regular" user to working as the root user.

A "regular" user is also referred to as a "non-root" user.

For security reasons, you should never log in to a Linux desktop with the user name of root. So, you must log in as a "regular" user and then you're at the desktop and you do the steps to "open" a Linux "terminal emulation window" to go to the command line prompt.

At the prompt as a "regular" user, you need to run the Linux su command to "log in" and change from working as a "non-root" user to working as the root user so you can run the powerful Linux System Administration commands.

Using the Linux su Command to Work as root Superuser

When using Red Hat, Fedora, SUSE, Debian and many other distributions, after logging in to a Linux desktop as a "regular" and "non-root" user, and opening a terminal emulation window, the command line prompt appears as a $ (a dollar sign symbol).

At this point, you are not working as the root user.

Here's how to run the Linux su command:

Try all of the examples below to get real, practical commands training experience.

$ su -

Be sure to use the - (dash) as shown at the right of the command above. This provides the "root user environment".

After running the command above, the prompt changes from $ (a dollar sign) to # (a number sign) to indicate that you are working "as the root user" and not "as a regular user".

Now you can run Linux System Administration commands.

To "go back" to working as a "regular" user, run the Linux exit command:

$ exit

Linux Commands Training Tips: When you run commands, you are running them "in the bash shell" (environment) and when you run the su command (with the dash option) to work as the root user, you're actually opening a "subshell" inside of the "bash shell".

When you run the exit command, you're "exiting" out of the subshell (as the root user) to the "regular" shell!

Debian Linux is a "major" Linux distribution and the following distributions are "based on" or "derived from" this version - and so the examples above will work on the following distributions as well:

Ubuntu, Damn Small Linux, Dreamlinux, Kanotix, Knoppix, LinEx, Linspire, Mepis, Sidux, Xandros - and many more!

And now I would like to offer you free access to my Linux Commands Training Mini-Course, a 7 Lesson, Daily Mini-Course, including the free Linux Commands ebook and Linux audio podcasts - showing you how to get started learning how to use Linux commands.

You can get your instant access at: http://www.LinuxCommandsTrainingCourse.com

From Clyde Boom - The Easy Linux Training Guy - Easy, self-paced Linux training - In Plain English!

Article Source: http://EzineArticles.com/?expert=Clyde_E._Boom

Clyde E. Boom - EzineArticles Expert Author

Other Recent EzineArticles from the Computers-and-Technology:Software Category:

Most Viewed EzineArticles in the Computers-and-Technology:Software Category (60 Days)

  1. Windows 7 Runs Very Slow? - How to Speed Up Windows 7 Quickly and Fast
  2. How to Get Rid of Personal Security in Minutes - Let Personal Security Removal Help You
  3. Why My Computer is Running So Slow? How to Speed Up Computer - Fix Your Problem Instantly
  4. Speed Up Slow Computer - How to Make Your Computer Run Faster? Fix it in Seconds!
  5. Malware Defense Removal - How to Delete This Spyware Off Your Computer
  6. Keylogger Software - Catch Your Cheating Spouse Red-Handed
  7. Personal Security Removal - 3 Easy Steps on How to Remove Personal Security in Seconds
  8. How to Remove Antivirus Live - Uninstall Antivirus Live Easily With Removal Instructions
  9. 3 Fast Methods to Get Rid of Antivir in Seconds - Quickly Conduct an Antivir Removal
  10. 4 Steps to Speed Up Your PC - How to Make Your PC Run Faster in Just a Few Minutes!
  11. Improve PC Performance - Step by Step Instructions to Dramatically Increase Your System Performance
  12. How to Remove Malware Defense - Uninstall Malware Defense Spyware From Your PC
  13. Is a Cleaner Free Reg Program for Your Computer's Registry A Great Tool to Use?
  14. How to Remove Antivirus Live - The Easiest Antivirus Live Removal Guide
  15. Internet Security 2010 Removal - Delete This Spyware From Your Computer

Most Published EzineArticles in the Computers-and-Technology:Software Category (60 days)

  1. How to Remove Spyware From Your Computer Today
  2. 3 Fast Methods to Get Rid of Antivir in Seconds - Quickly Conduct an Antivir Removal
  3. How to Remove Security Tool in 5 Minutes - Get a Security Tool Removal the Easy Way
  4. How to Get Rid of Personal Security in Minutes - Let Personal Security Removal Help You
  5. 7 Easy Ways on How to Remove AntiVir in Seconds - Follow These AntiVir Removal Instructions
  6. The Simplest Way on How to Remove Windows Enterprise Defender - Guide Removal Instructions
  7. Personal Security Removal - 3 Easy Steps on How to Remove Personal Security in Seconds
  8. 4 Steps to Speed Up Your PC - How to Make Your PC Run Faster in Just a Few Minutes!
  9. One Step How-To Uninstall Malware Defense - Learn the Malware Defense Removal Methods
  10. Need How to Remove Security Central in Seconds - Just Read This and Remove Them in Very Easy Way
  11. How to Remove Security Central in Seconds - Quickly Conduct a Security Central Removal
  12. One Step How to Remove Personal Protector From Your PC and Laptop - Remove Them in 10 Minutes
  13. Disabling the Windows Live Messenger is Just a Simple Procedure
  14. Windows 7 Runs Very Slow? - How to Speed Up Windows 7 Quickly and Fast
  15. Why My Computer is Running So Slow? How to Speed Up Computer - Fix Your Problem Instantly

 

This article has been viewed 1,385 time(s).
Article Submitted On: November 26, 2008



© EzineArticles.com - All Rights Reserved Worldwide.