In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the linux command line under the file name of how to deal with spaces, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor with you to understand.
Q: I use mplayer to play a single piece of music in raspberry pie command line mode, because there is a space in the file name, indicating that the file does not exist, what should I do?
[johnwick@raspberrypi~] $sudo mplayer Me like yuh.mp3
MPlayer2 2.0-728-g2c378c7-4+b1 (C) 2000-2017 MPlayer Team
Cannot open file'/ root/.mplayer/input.conf': No such file or directory
Failed to open / root/.mplayer/input.conf.
Cannot open file'/ etc/mplayer/input.conf': No such file or directory
Failed to open / etc/mplayer/input.conf.
Playing Me.
Cannot open file 'Me': No such file or directory
Failed to open Me.
Playing like.
Cannot open file 'like': No such file or directory
Failed to open like.
Playing yuh.mp3.
Cannot open file 'yuh.mp3': No such file or directory
Failed to open yuh.mp3.
A:mplayerh plays the first song of the order in the current directory in the format of mplayer [file name]. Obviously, the system thinks that Me like yuh.mp3 is three separate files.
Solution: ① uses quotation marks (under the English input method) to include all the file names: mplayer "Me like yuh.mp3"
The method ② space is preceded by the concatenation symbol "\": mplayer Me\ like\ yuh.mp3 "\" to tell the system that the character that follows is the original meaning, not a command.
Thank you for reading this article carefully. I hope the article "how to deal with spaces in the file name under the linux command line" shared by the editor is helpful to everyone. At the same time, I also hope you can support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.