位置: 编程技术 - 正文

linux命令行下文件名中有空格的处理方法(linux命令行在哪)

编辑:rootadmin

推荐整理分享linux命令行下文件名中有空格的处理方法(linux命令行在哪),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:linux命令行在哪,linux中命令行,linux命令行文件,linux down命令,linux中命令行,linux命令行大全文档,linux命令行大全文档,linux命令行文件,内容如对您有帮助,希望把文章链接给更多的朋友!

Q:我在树莓派命令行模式下使用mplayer播放单首音乐,因为文件名中含有空格,提示不存在该文件,该如何解决?

[johnwick@raspberrypi~]$sudo mplayer Me like yuh.mp3

MPlayer2 2.0--g2cc7-4+b1 (C) - 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.

linux命令行下文件名中有空格的处理方法(linux命令行在哪)

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播放当前目录下单首歌曲的格式为: mplayer [文件名],显然系统认为 Me like yuh.mp3 是三个独立文件

解决办法:①使用引号(英文输入法下)将文件名全部包含: mplayer "Me like yuh.mp3"

方法②空格前使用连接符号"" : mplayer Me like yuh.mp3 “”告诉系统后面跟着的字符为原意,不是命令

参考:linux命令行下进入带空格的文件夹的方法

完毕。

Linux删除制定时间的文件的方法 Linux下如果想要批量删除制定时间的文件,可以使用find命令:find/home-maxdepth1-typef-newermtNov-printfind命令查找/home目录下的十一月日创建的类型是文件的

Linux安装ElasticSearch启动报错的解决方法 今天就出现的异常问题专门解决一下。你安装好ElasticSearch以后,在启动的时候需要注意的问题是,ElasticSearch是不能用root用户启动的(这是根据elasticsear

用sudo命令无法读取环境变量的解决方法 通过sudo-l来查看sudo的限制:$sudo-lMatchingDefaultsentriesforxxxonthishost:env_reset,mail_badpass,secure_path=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/binUserxxxmayrunthe

本文链接地址:https://www.jiuchutong.com/biancheng/363117.html 转载请保留说明!

上一篇: linux命令行下进入带空格的文件夹的方法(linux 进入命令)

下一篇:Linux删除制定时间的文件的方法(linux删除定时任务)

免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络