LINUX命令报错

1、find: paths must precede expression

[[email protected] /]# find find /u01/app/diag/tnslsnr/fossdb/listener/alert -name log_*.xml

find: paths must precede expression

Usage: find [-H] [-L] [-P] [path...] [expression]

[[email protected] /]#

进行查找资料,多文件的查找的时候需要增加单引号

[[email protected] /]#  find /u01/app/diag/tnslsnr/fossdb/listener/alert -name ‘log_*.xml‘

2、find: missing argument to `-exec’ 或 find: 遗漏“-exec”的参数

[[email protected] /]#find /u01/app/diag/tnslsnr/fossdb/listener/alert -name ‘log_*.xml‘ -exec rm -rf {}\;

find: missing argument to `-exec’

要这样

find /u01/app/diag/tnslsnr/fossdb/listener/alert -name ‘log_*.xml‘ -exec rm -rf {} \;--这里要加空格

时间: 2024-08-25 21:04:49

LINUX命令报错的相关文章

Linux中,使用SSH过程中,sh-copy-id命令报错:-bash: ssh-copy-id: command not found

Linux中,使用SSH过程中,sh-copy-id命令报错:-bash: ssh-copy-id: command not found在服务器之间传送文件我们经常会使用SCP命令来进行传送文件,但是每次都要进行密码验证,非常繁琐,所以通常我们会用ssh免密码登录. 首先,我们会在目的端生成私钥和公钥 (使用:–ssh-keygen -t rsa 命令),然后通过ssh-copy-id -i ~/.ssh/id_rsa.put 的方式,将目的端的公钥导入发送端,来进行实现免密连接. 但是总会遇到

191016 Linux中python2升级到python3导致yum命令报错

因为python2到python3的升级,导致使用yum相关的命令时报错: 报错一: command not found... 方案:修改/usr/bin/yum文件的第一行,将结尾的python改成python27(或python2.7),请自行尝试,修改后能查询yum版本即可: 报错二:cannot retrieve matalink for repository:epel/x86... 方案:sed -i ‘s#https://#http://#g' /etc/yum.repos.d/ep

C3P0在linux下报错:Name or service not known

CentOS监视Tomcat当前命令行输出 tail -f .../apache-tomcat-x.x.x/logs/catalina.out C3P0在Linux下的主要错误内容 31-Jul-2014 14:14:43.072 INFO [localhost-startStop-1] com.mchange.v2.c3p0.impl.C3P0ImplUtils.generateVmId Failed to get local InetAddress for VMID. This is unl

解决docker images,info,-d等命令报错的问题

解决docker images,info,-d等命令报错的问题 楼主因为在搞docker,所以出现了好多的问题,百度上不好找,谷歌的话,楼主不会翻墙.不管给大家推荐一个软件:蓝灯. 楼主不管输入那个命令,都出现了: FATA[0000] Cannot connect to the Docker daemon. Is 'docker -d' running on this host? 以及类似的错误,就连docker version命令都报错了,楼主开始找啊找,找到了好多东西,结果发现没一个能行的

Linux 系统报错 rcu_preempt detected stalls on CPUs/tasks

说在前面的一些废话: 这是什么错误我不知道,为什么出现我不知道! 那为什么还要把他写出来了,只是因为这个错误遇到了,而且浪费了我很多时间和精力. 故事留给自己看,解决办法就是,重新升级一下Linux系统内核. 这个问题出现在Reboot之后,不能进入不了系统,平均发生几率是40次左右出现一次. 之后重新升级完内核后没有出现.至于内核改了什么我也不知道. Linux 系统报错如下: 故事: 去年用C语言写的软件,过年客户才真正用起来,结果接二连三的出现死机的问题. 怀疑是自己的程序写的有问题,开始

记hbase list 命令报错zookeeper连接失败

hbase list 命令报错:zookeeper exists failed after 4 attempts $telnet h0082161 2181 Connected to 172.16.82.161.Escape character is '^]'. telnet connect by close foreign. 此时发现telnet h0082161 其他端口均正常,其他机器telnet h0082161 2181正常, 此时进入一个误区,一直在围绕telnet 服务查看,查看/

CURL命令报错:dyld: lazy symbol binding failed: Symbol not found: _SSL_load_error_strings解决办法

Mac OS X 10.11.6, curl 命令报错,错误如下: dyld: lazy symbol binding failed: Symbol not found: _SSL_load_error_strings Referenced from: /usr/local/lib/libcurl.4.dylib Expected in: flat namespace dyld: Symbol not found: _SSL_load_error_strings Referenced from:

hadoop命令报错:权限问题

root用户执行hadoop命令报错: [[email protected] conf]# hadoop fs -ls /user/ [INFO] 17:50:42 main [RetryInvocationHandler]Exception while invoking getFileInfo of class ClientNamenodeProtocolTranslatorPB over vmocdp127.test.com/172.16.145.127:8020. Trying to fa

windows下使用GNU make命令报错的解决方法

windows下使用GNU make命令报错的解决方法=> 错误信息:make: Interrupt/Exception caught (code = 0xc00000fd, addr = 0x4227d3) ## 1.原因环境变量中配置了`D:\Program Files (x86)\Git\bin`,该目录下存在一个`sh.exe` 在执行make命令时,如果在`MakeFile`文件中没有指定shell的路径,`make`就会到环境变量中,去找一个`X:\\XXX\XXX\sh.exe`作