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:
3185
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:
Terminate a process - kill
Write a script to find the value of one number raised to the power of another
Shell Script to create a Menu Driven program : Hard Link, Soft Link, Counting each of the links for a specific link and Display the soft-links
Give example of cut command?
Copy file and directory subtrees - cp
Tar is used to archive file - tar
Write a shell scripts which works similar to the Unix commands Head Tail
How would u display the hidden files?
How to compare two files?
Write a shell script to convert a file to lower case or upper case as specified by user.
Wild cards and examples in unix
Different types of Error in unix
Combine two files to a single file
Write a shell script, which displays a list of all files in the current directory to which you have read, write and execute permissions
To identify directory and executable file which command is used?
Write a menu driven shell script for Copy a file, Remove a file, Move a file
Moving the text in unix
Count no.of character in file abc?
Write a shell script, which reports names and sizes of all files in a directory whose size is exceeding 1000 bytes
Concatenate, copy, print files - cat
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