Macos mc
Материал из noname.com.ua
Mac OS MC
locate
Maxs-MacBook-Pro:~ root# sudo /usr/libexec/locate.updatedb shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied find: .: Permission denied
#!/bin/bash pushd . > /dev/null cd /usr/libexec echo "Updating locate database..." sudo ./locate.updatedb echo "Updating complete!" popd > /dev/null