updatedb: unexpected operand on command line处理
来源:互联网 发布:南方起名软件官网 编辑:程序博客网 时间:2024/05/21 10:48
在安装完CentOS6.4后执行locate命令,无法使用,参照网上一些说法:
解决方法:#yum install mlocate
#updatedb mlocate
出现如下错误:
updatedb: unexpected operand on command line
多方查找无果,最后看了下updatedb --help:
Update a mlocate database.
-f, --add-prunefs FS omit also FS
-n, --add-prunenames NAMES omit also NAMES
-e, --add-prunepaths PATHS omit also PATHS
-U, --database-root PATH the subtree to store in database (default "/")
-h, --help print this help
-o, --output FILE database to update (default
`/var/lib/mlocate/mlocate.db')
--prune-bind-mounts FLAG omit bind mounts (default "no")
--prunefs FS filesystems to omit from database
--prunenames NAMES directory names to omit from database
--prunepaths PATHS paths to omit from database
-l, --require-visibility FLAG check visibility before reporting files
(default "yes")
-v, --verbose print paths of files as they are found
-V, --version print version information
The configuration defaults to values read from
`/etc/updatedb.conf'.
最后加上-n后OK,正确命令为:updatedb -n mlocate.
错误解决,具体原因不详。
- updatedb: unexpected operand on command line处理
- Working on Command Line
- unexpected T_ELSE in if_expression.php on line
- Uninstall DB2 on Linux from Command Line
- FRM-90926: Duplicate parameter on command line
- Create a new repository on the command line/Push an existing repository from the command line
- Using MIT-Scheme in MacOS X on the Command Line
- How to use 7zip on Linux command Line
- New in Xdebug 2.2: Colours on the command line
- 4.2.3.1. Using Options on the Command Line
- How to identify video formats from command line on Linux
- 【指导】Install Appium on Ubuntu in command line
- How to Use Android ADB Command Line Tool on mac
- A note on Cmake - 1 Command-Line Tools
- Lab01 Editing text files on the command line
- Mysql Warning :Using a password on the command line...
- MySQL5.6 Using a password on the command line inte
- command line
- Vim简明教程【CoolShell】
- Illegal Instruction 错误初窥
- centos6.4安装gcc4.8.2
- ORECALE类型声明及过程中用OR正则验证
- Android是如何绘制View的
- updatedb: unexpected operand on command line处理
- 高中物理有点难 名师讲座一点通
- test5-3(数组排序)
- linux命令行下载文件以及常用工具:wget、Prozilla、MyGet、Linuxdown、Curl、Axel
- GSM中的帧
- 必定考上复旦,求见证,满分在支撑
- 《Windows DIY》第一章: 概述
- select和from中间尽量不要用自定义的函数
- java内存优化性能优化