Change user, assume environment, stay in current dir

Bookmark this category

Change user, assume environment, stay in current dir $ su — user I\’ve used this a number of times troubleshooting user permissions. Instead of just \’su – user\’ you can throw another hyphen and stay in the original directory.

* View this command to comment, vote or add to favourites * View all commands by matthewdavis

commandlinefu.com

by David Winterbottom (codeinthehole.com)

URL: http://feedproxy.google.com/~r/Command-line-fu/~3/7LH0tfWi1Oc/change-user-assume-environment-stay-in-current-dir