when using following command
nix --extra-experimental-features nix-command build -f default.nix plutus.haskell.pack ages.plutus-core.components.library
getting following error
error: could not set permissions on '/nix/var/nix/profiles/per-user' to 755: Operation not permitted
to solve this I used sudo
sudo nix --extra-experimental-features nix-command build -f default.nix plutus.haskell packages.plutus-core.components.library
but then getting another error
sudo: nix: command not found
I am following evernote.com for the installation process.