Quote:
Originally Posted by validator456
I then typed in the command:
Code:
sudo mkdir -p ~/.config/cheat && cheat --init > /.config/cheat/conf.yml
The result is:
bash: /home/porter/.config/cheat/config.yml - Permission denied.
|
The bold part executes as
root, thus the resulting directory
~/.config/cheat is owned by
root. The
italic part is executed as normal user who does not have read/write permission to the previously created directory.
This demonstrates what I mean:
Code:
$ sudo whoami && whoami
root
user
$
Delete the folder created by root and run
mkdir and
cheat as normal user:
Code:
sudo rm -rf ~/.config/cheat
mkdir -p ~/.config/cheat && cheat --init > /.config/cheat/conf.yml
There is no
sudo required in the instructions you linked.