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:
3052
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 s shell script, which will receive any number of filenames as arguments. The shell script should check whether every argument is a file or a dir
Write a shell script to find how many terminals has this user logged in
Script to print all prime numbers from 1 to 300
Write a shell script to find sum of digits of a number
System activity reporter - sar
Write a shell script to display the digits which are in odd position in a given 5 digit number
Word Navigation in unix
How would u get today’s date?
Program to count length of user input string
Write a shell scripts which works similar to the Unix commands Head Tail
Tar is used to archive file - tar
Create a directory - mkdir
Different types of Error in unix
To identify directory and executable file which command is used?
Report process status - ps
Shell script to perform operations like compare string, concatenate, find length, occurrence of word in a string and reverse a string
Collect system diagnostic message to from error log - dmesg
How would u display the hidden files?
Display content of a file - more
Rename a file from first1.txt to first2.txt
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