What is the Difference between 'su' and 'su-' ?

Answer Posted / naresh

SU and SU - doing same job but few diff. is
su <username> is switch user without loading the user environment variable

su -<username> --switch the user with loading the user environment variables.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why context switching time should be minimum? How it depends on hardware support?

1297


How do you limit memory usage for commands?

571


What is #!/ Bin sh?

549


How do I run a shell script?

505


How do you run a command for a limited time?

589






You have a tab delimited file called phonenos and want to change each tab to four spaces. What command can you use to accomplish this?

560


Hi everyone i want to learn Devops in Hyderabad can anyone please suggest me best institute.

1149


Why is it called bash?

500


What is difference between comm and CMP command?

527


How you will create new folder / directories and how to remove file and folder in linux?

482


What is du -s * | sort -k1,1rn | head command used for?

534


How do I list all processes in linux?

524


What are the basic command in linux?

538


why is the tar command used?

548


How remove all files in a directory linux?

522