Welcome -
Guest!
Login
/
Register Now
|
Search:
Home
Articles
Forum
Interview FAQ
Activities
News
Videos
Poll
Links
People
Groups
Unix / Linux / Ubuntu Articles
Submit Article
Home
»
Articles
»
Unix / Linux / Ubuntu
»
Commands
RSS Feeds
Change User - su
Posted By:
Adalfreddo Fischer
Category:
Unix / Linux / Ubuntu
Views:
3085
This article explains about su command with an example in unix.
su command is used to change user in unix.
Syntax of su Command
su [-] [username]
Example of su Command
Example 1 : Command to change user and user’s environment variable
su - syntax
Example 2 : Command to change user’s permission
su syntax
Share:
Previous Post:
Change file owner of group - chown
Next Post:
Add a new group to the system - groupadd
Didn't find what you were looking for? Find more on
Change User - su
Or get
search suggestion and latest updates
.
Adalfreddo Fischer
author of Change User - su is from Frankfurt,
Germany
.
View All Articles
Related Articles and Code:
menu driven shell program which have the options change the term, change the prompt and user list of unix system.
Change a permission of a file
How to change permission of file as 644?
Program to change characters in a StringBuffer objects and to reverse its contents
Program that changes an infix expression to a postfix expression according
Program to inter change to number in each other
Changing current directory - cd
Update access, modification, and / or change times of file - touch
Change file mode access permission - chmod
Change file owner of group - chown
Shell script to change extension of an existing file
PROGRAM TO CHANGE THE SIZE OF CURSOR
Write a query to change the format of date using to_char function
Write a query to change the case of strings using lower and upper function
Change login password and associated attributes - passwd
How to change the Page Title in ASP.Net 1.1 and C#
How to change the Page Title in ASP.Net 1.1 and VB.Net
Shell script to display all users names, or users names of a particular group, or name of users who are currently working in the system
program that takes string and word from a user and displays substring including user inputted word....
Write a Script to Broadcast a message to a specified user when the user loged on any terminal
Other Interesting Articles in Unix / Linux / Ubuntu:
Shell script to check whether inputted directory is in current directory or not
Calculate 9/5
Suppose four filenames are supplied then the first file should get copied into second file, the third file should get copied into four
Which command display version of the UNIX?
How to change permission of file as 644?
Shell script to display the name of those files (in the given directory) which are having multiple links
Write a menu driven shell script for Copy a file, Remove a file, Move a file
Shell script to print first 5 odd numbers
Script to count and report the number of entries present in each subdirectory mentioned in the path, which is supplied as a command-line argument
Display information about all the current programs running
To identify directory and executable file which command is used?
Change file mode access permission - chmod
Write a script to enhance the calander to accept any month as mm or mmm or only year as yyyy or both month and year
Write a shell program to find the position of substring in given string
Write a menu driven program to display message, user name, terminal name, login date and time
Write a shell program to display the alternate digits in a given 7 digit number starting from the first digit
Navigation command in unix
Program of calculator
Write a shell script to find the sum, the average and the product of the four integers entered
Count no.of character in file abc?
Please enter your Comment
*
*
Comment should be atleast 30 Characters.
Please put code inside [Code] your code [/Code].
Please login to post comment
No Comment Found, Be the First to post comment!
Unix / Linux / Ubuntu
View All
Advance
Basics
Commands
Homework Help
Interview FAQ
Terms and Terminology
Assembly Language
Artificial Intelligence
C Programming
C++ Programming
Visual C++
OOAD
Cobol
Java
SQL Server
Asp.net MVC
Rest and WCF Services
Entity Framework
Knockout.Js
Networking
OOPs Concept
HTML
Dos
SQL
System Analysis & Design
Gadgets
Internet
CSS
Javascript
.Net Framework
Asp.net
C#
VB.Net
Python
Perl
Oracle
Software Engineering
RDBMS Terms
AJAX Framework
Design Pattern
UML
WPF
WCF
SEO
PowerShell
Visual Studio
WWF
BizTalk Server
Azure
General
Testing
Online Certifications
PHP
My SQL
LinQ
Project Management
Silverlight
XML
MS Office
Windows OS
DHTML
Sharepoint