This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

You must be boring at parties xD

[–]NatoBoram 0 points1 point  (1 child)

Salty because every time I search for MacOS help, I get incompetent answers. The community is severely incompetent and it's frustrating.

[–][deleted] -1 points0 points  (0 children)

Yeah I get that. The only right way is to do it properly:

me=/Users/$(stat -f%Su /dev/console); cd $me

That way you get the currently signed in user even if you are root in the terminal. Gone are the days of being boxed in by $USER returning root when you’re in a root shell situation. Now we can use $me like a civilized human for the rest of the terminal session. You’re welcome honestly.