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:
3531
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:
Write a shell script to find the sum, the average and the product of the four integers entered
For joining the line
Filters in unix
Write a shell program to check whether a given string is palindrome or not.
Change file owner of group - chown
Display your login name
Print user and group IDs and names - id
Write a script to count and report the number of entries in each subdirectory mentioned in the path, which is supplied as a command-line argument
How to compare two files?
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
Write a shell program to display the alternate digits in a given 7 digit number starting from the first digit
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
Find all lines in a file with words longer than 4 characters, assuming that words are separated by spaces except at the beginning or end of line
Sort Numeric file
Program to calculate the sum of its digits
Show current directory - pwd
Word Navigation in unix
Shell Script to separate the colon from the given item
Ex mode command in unix
List all files start with a or A
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