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:
3165
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:
Filters in unix
Shell script to take LOGNAME or the UID an an input and find how many terminals has this user logged in
Program of calculator
Write a shell script to ask your name, program name and enrolement number and print it on the screen.
Count no.of character in file abc?
Pipes examples in unix
Create a directory - mkdir
Tee examples in unix
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
Write a shell script, which displays a list of all files in the current directory to which you have read, write and execute permissions
Shell script that prints names of all sub-directories present in the current directory
Shell Script to separate the colon from the given item
Write a shell script that takes a file names as a argument and deletes this file from every directory above the present working directory.
Wild cards and examples in unix
Shell Script to display the exit status using grep command which search a string from a string
Navigation command in unix
Write a shell script to reverse a number supplied by a user
Process in unix
Shell script which receives two file names as arguments and checks whether the two file contents are same or not. If same then delete second file
Program to calculate the sum of its digits
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