简体   繁体   English

无法执行“ $ echo prog1 / p *。”命令

[英]cannot proceed “$ echo prog1/p*.” command

I am currently reading " The LPI Introductory Programme ". 我目前正在阅读“ LPI入门计划 ”。
It says that I can try $ echo prog1/p*.c to search exact files that starts with " p " and ends with " c ". 它说我可以尝试$ echo prog1/p*.c搜索以“ p ”开头和以“ c ”结尾的精确文件。

But instead of that, echo command just prints out the given in quotes, why ? 但是相反, echo命令只是打印出给定的引号,为什么?

echo attempts to print file names that matches the given pattern, but if no match is found it treats pattern as text to be printed and does what it is meant for. echo尝试打印与给定模式匹配的文件名,但是如果找不到匹配项,它将把模式视为要打印的文本,并执行其目的。

use ls -l prog1/p*.c instead, for listing files. 请使用ls -l prog1/p*.c来列出文件。 also make sure your current working directory and navigable sub directories from there. 还要确保您当前的工作目录和可导航的子目录从那里。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM