Go to advanced search

by mitnk
Sun Jan 03, 2016 6:45 am
Forum: Raspberry Pi OS
Topic: sudo extends ~ to /root
Replies: 5
Views: 912

Re: sudo extends ~ to /root

Thanks @disorientedp and @QuietZone for the tips / informations.
by mitnk
Sat Jan 02, 2016 5:00 pm
Forum: Raspberry Pi OS
Topic: sudo extends ~ to /root
Replies: 5
Views: 912

sudo extends ~ to /root

Hi everyone, I am write some bash code like this: echo ${XYZ:-~/.vimrc} saved as foo.sh and I run it with: sudo ./foo.sh When I run at Raspbian, I got: /root/.vimrc (What I expected was: /home/pi/.vimrc) But at other OS (Ubuntu and OS X), I got this (mitnk is my username): /home/mitnk/.vimrc The OS ...

Go to advanced search