Macos mc: различия между версиями
Материал из noname.com.ua
Перейти к навигацииПерейти к поискуSirmax (обсуждение | вклад) (Новая: Категория:MAC_OS =Mac OS MC=) |
Sirmax (обсуждение | вклад) (→Ссылки) |
||
| (не показаны 2 промежуточные версии этого же участника) | |||
| Строка 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> |
||
| + | ==Ссылки== |
||
| + | * http://macdays.ru/mac-os/tweaks-mac-os-x/ |
||
| + | * http://habrahabr.ru/post/143341/ |
||
Текущая версия на 09:03, 6 апреля 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