Change user, assume environment, stay in current dir

2009-10-03 68 words 1 min read

<a href="http://blog.amit-agarwal.co.in/category/linux/">Bookmark this category

Change user, assume environment, stay in current dir $ su — user I&#8217;ve used this a number of times troubleshooting user permissions. Instead of just &#8217;su – user&#8217; 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: <a href="http://feedproxy.google.com/~r/Command-line-fu/~3/7LH0tfWi1Oc/change-user-assume-environment-stay-in-current-dir">http://feedproxy.google.com/~r/Command-line-fu/~3/7LH0tfWi1Oc/change-user-assume-environment-stay-in-current-dir


Tags: bash

author

Authored By Amit Agarwal

Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.

We notice you're using an adblocker. If you like our webite please keep us running by whitelisting this site in your ad blocker. We’re serving quality, related ads only. Thank you!

I've whitelisted your website.

Not now
This website uses cookies to ensure you get the best experience on our website. Learn more Got it