Link to home
Start Free TrialLog in
Avatar of gudii9
gudii9Flag for United States of America

asked on

su command

how below commands are different

su department (when i do pwd here says department)
vs
su - department(when i do pwd here says /home/department)

when i do below

su -c 'echo $echo  $DEPARTMENT_HOME' department
it does not work

when i do below

su -c 'echo $echo  $DEPARTMENT_HOME'  - department
it does work. Please advise the difference.

what is difference between
department and  /home/department

how su and sudo are different?

how can there is depearment inside home as well as outside at top level again?

what is visudo and sudoers file or folder?

Please advise
ASKER CERTIFIED SOLUTION
Avatar of Wayne88
Wayne88
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial