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

Which command is used to clear the screen?

547


What is clang tidy?

575


You are required to restore the file memo.ben. It was backed up in the tar file MyBackup.tar. Which command would you use to do it?

532


Explain shift command of linux?

579


How do I run a .sh file in linux?

555






What is p command?

576


What is difference between free and available memory in linux?

516


How do you copy in terminal?

563


Brief about the command ff?

596


How do I remove a soft link in linux?

517


What is the difference between command ‘ping’ and ‘ping6’?

536


How can we increase disk read performance in single command in Linux operating system?

691


What is tty name?

565


What is dos and its commands?

611


What does (cd dir && command) do?

542