Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 tty bettwen 15 和 24 列出来自 dev 端的文件...应该出现 /dev/tty15、/dev/tty16、/dev/tty17 等,直到 /dev/tty24
命令是什么?
如果我正确理解了这个问题,您可以使用 Bash 的大括号扩展:
ls /dev/tty{15..24}
ls /dev/tty{15..24}?