When I type command echo 'cd ~/Development/Web' > /usr/local/bin/webdev, my goal is create file webdev in /usr/local/bin, I get error 'Permission denied', then change command to 'echo 'cd ~/Development/Web' > sudo /usr/local/bin/webdev', command runs successfully my expection is that created file webdev in /usr/local/bin, but instead is create sudo file in ~. How I can run my first command, without sudo su and then echo 'cd ~Devel...?
-
What do you actually want to do?Kusalananda– Kusalananda ♦2018-03-13 13:25:34 +00:00Commented Mar 13, 2018 at 13:25
-
@Kusalananda, updated question.Rami Chasygov– Rami Chasygov2018-03-13 13:33:39 +00:00Commented Mar 13, 2018 at 13:33
Add a comment
|