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)
You must log in to post a comment.