zoukankan      html  css  js  c++  java
  • find: paths must precede expression

    郁闷了今天进行如下的查询居然报告错误,

    [root@localhost /]# find /root/ -name *.txt
    find: paths must precede expression
    Usage: find [-H] [-L] [-P] [path...] [expression]
    [root@localhost /]#

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

    [root@localhost /]# find /root/ -name '*.txt'
    /root/.mozilla/firefox/5w8zmvga.default/cookies.txt
    /root/tomcat7.0/aa.txt
    /root/tomcat7.0/apache-tomcat-7.0.11/logs/localhost_access_log.2011-04-13.txt
    /root/tomcat7.0/apache-tomcat-7.0.11/logs/localhost_access_log.2011-04-21.txt
    /root/tomcat7.0/apache-tomcat-7.0.11/logs/localhost_access_log.2011-04-22.txt
    /root/tomcat7.0/apache-tomcat-7.0.11/RUNNING.txt
    /root/tomcat7.0/apache-tomcat-7.0.11/webapps/docs/RUNNING.txt
    /root/tomcat7.0/apache-tomcat-7.0.11/webapps/docs/appdev/sample/docs/README.txt
    /root/tomcat7.0/apache-tomcat-7.0.11/webapps/docs/appdev/build.xml.txt
    /root/tomcat7.0/apache-tomcat-7.0.11/webapps/docs/appdev/web.xml.txt
    /root/tomcat7.0/apache-tomcat-7.0.11/webapps/docs/RELEASE-NOTES.txt
    /root/tomcat7.0/apache-tomcat-7.0.11/webapps/docs/BUILDING.txt
    /root/tomcat7.0/apache-tomcat-7.0.11/webapps/docs/architecture/startup/serverStartup.txt
    /root/tomcat7.0/apache-tomcat-7.0.11/webapps/ROOT/RELEASE-NOTES.txt
    [root@localhost /]#

  • 相关阅读:
    mvc与springmvc
    mybatis一级与二级缓存详解
    resultType和resultMap的使用场景
    mybatis第一天学习总结
    linux常用命令(不断更新)
    SSH基本框架搭建的详细过程
    hibernate多条件组合查询的两种方式
    AJAX验证用户名是否被注册
    Vimrc
    关于window.open在不同浏览器的不同点
  • 原文地址:https://www.cnblogs.com/antflow/p/8046296.html
Copyright © 2011-2022 走看看