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

Answer Posted / papseddy

there is little difference in both of these commends...

su --> just switch you to user mode (root) but didn't provide the complete user environment


su - ---> provide you the complete user environment and also direct jump to user home directory.

Is This Answer Correct ?    20 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is FC command?

497


What are the ms dos commands?

527


Suppose I lost a root password and I need to give it, I treid to change it through single usermode even though I am not get a password, then what is the otherprocedure to give a root password?

540


Who am I command in linux?

564


What the command used for list the contents of your home directory, current directory and all subdirectories?

523






What does the ps command do in linux?

540


Why is it called bash?

501


Brief about the command nn?

605


What are different command to check ram, process and hdd of linux machine?

534


You wish to print a file ‘draft’ with 60 lines on a page. What command would you use?

665


How do I find command history in linux?

493


What does df command do in linux?

550


What is clang llvm?

589


Explain about lpr filename?

606


What is tty in linux process?

514