在 bash 中,我可以键入 Ctrl+u 它会“剪切”光标后面的文本。
然后当我按下 Ctrl+y 时,它会将文本粘贴回去。
是否有存储剪切文本的文件?
最佳答案
“剪贴板”——实际上称为kill ring——由readline
库实现。它不是持久性的,因此不会保存在文件中。
有很多用于“杀死”和“抽出”文本的击键命令,在 bash manual 中有描述。 :
Killing text means to delete the text from the line, but to save it away for later use, usually by yanking (re-inserting) it back into the line. (‘Cut’ and ‘paste’ are more recent jargon for ‘kill’ and ‘yank’.)
更完整的文档在 this section of the manual 中.
关于linux - bash 中的剪贴板数据存储在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25451628/