大网数据广告活动
服务器运维问答

How to autocomplete long file names in terminal

· 52CE 我爱测

If I have in current directory a file with a long name starting with "build" I can write in console "build", press Tab and autocomplete type full filename for me. However if I have multiple files starting with build the autocompl…

问题原文

原帖链接 · Roman Kolesnikov · CC BY-SA 3.0

If I have in current directory a file with a long name starting with "build" I can write in console "build", press Tab and autocomplete type full filename for me. However if I have multiple files starting with build the autocomplete doesn't work - it simply gives me a list of files starting with build.

In contrary in Windows pressing Tab key immediately gives to me full file name of the first file and if I press Tab key second time it gives me second file name.

How to autocomplete filenames in Linux like in Windows? PS: Its really terrible if I have several long filenames that differ by extension only.

已采纳解答

原帖链接 · sPENKMAN · CC BY-SA 3.0

If they differ by extension only the autocomplete will autofill all untill there are multiple options. When tabbing yields a list of names, type the next character and hit tab again to resume auto completing.

As I'm linux minded I really have fights with the way windows autocomplete works, guess it's what you're used to ;)

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-03-04)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。