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 are the 7 types of sentences?

561


What is tty in linux command?

522


What is command example?

563


How do I find command history in linux?

491


What is env command in linux?

510






What is echo command in batch file?

591


Which daemon is used for scheduling of the commands?

570


How do I run a command in linux?

552


How use linux command line?

528


Explain the working of command grouping?

543


The ‘logout’ built in command is used to

764


What is 9 in kill?

525


What is difference between comm and CMP command?

527


Brief about the command ff?

594


Explain trap command of linux?

578