I want to do the following from the command line:
Is it possible to give the terminal app full disk access from the command line?
I am getting "Operation not permitted" errors when trying to run some commands and believe this is the fix, as Mojave has changed how privacy and security settings work for applications. du -hs | sort - h is the command I am trying to run from the root folder to find out where exactly the disk space is being used, i.e trying to find the folders which take up the largest amount of space. This command gives operation not permitted on certain folders, which I believe can be fixed by giving the terminal app full disk access.
I am sshing into a machine where I cannot use a GUI to change this setting. So can I do it from the terminal?