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

Ссылки