I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
Why do you use sudo for every copy command? The implication is that your user account doesn't have access to things in its own home directory. You're then running a chown command to make sure everything's back to normal at the end. What's the reasoning there?
I recommend using something like GNU stow to handle this stuff automatically.
Yep, thanks for pointing it out. Actually, dotfiles was created by other user so i had to use sudo and unknowingly i put in all codes since these code works without sudo too as i have chown my home with the current user ujwal
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Why do you use
sudo
for every copy command? The implication is that your user account doesn't have access to things in its own home directory. You're then running achown
command to make sure everything's back to normal at the end. What's the reasoning there?I recommend using something like GNU
stow
to handle this stuff automatically.Yep, thanks for pointing it out. Actually, dotfiles was created by other user so i had to use sudo and unknowingly i put in all codes since these code works without sudo too as i have chown my home with the current user
ujwal