Macos mc: различия между версиями

Материал из noname.com.ua
Перейти к навигацииПерейти к поиску
(Новая: Категория:MAC_OS =Mac OS MC=)
 
Строка 1: Строка 1:
 
[[Категория:MAC_OS]]
 
[[Категория:MAC_OS]]
 
=Mac OS MC=
 
=Mac OS MC=
  +
  +
  +
==locate==
  +
<PRE>
  +
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
  +
</PRE>
  +
<PRE>
  +
#!/bin/bash
  +
pushd . > /dev/null
  +
cd /usr/libexec
  +
echo "Updating locate database..."
  +
sudo ./locate.updatedb
  +
echo "Updating complete!"
  +
popd > /dev/null
  +
</PRE>

Версия 09:25, 5 апреля 2013

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