linux终端复制粘贴_如何将文本复制并粘贴到Linux终端中

本文介绍了在Linux终端中如何高效地复制和粘贴命令,以节省输入时间。通过按Ctrl+C复制命令,Ctrl+Alt+T打开终端,然后右键选择粘贴,可以快速执行命令。此外,还可以从终端复制文本到其他程序。当需要修改复制的命令时,可以使用箭头键和退格键进行编辑。
摘要由CSDN通过智能技术生成

linux终端复制粘贴

linux终端复制粘贴

00_lead_image_copy_paste_text_in_terminal

When you enter a long command into the Terminal window that you found on the web or in a document, you can save yourself some time by easily copying and pasting the command at the prompt.

在Web或文档中的“终端”窗口中输入长命令时,可以通过在提示符下轻松复制和粘贴命令来节省一些时间。

Update: Read our in-depth guide to copy-pasting text at the Linux command-line for more detailed tips and tricks.

更新 :阅读我们的深入指南,以在Linux命令行上复制粘贴文本,以获取更多详细的提示和技巧。

To begin, highlight the text of the command you want on the webpage or in the document you found. Press Ctrl + C to copy the text.

首先,在网页或找到的文档中突出显示所需命令的文本。 按Ctrl + C复制文本。

01_copying_text_from_web_page

Press Ctrl + Alt + T to open a Terminal window, if one is not already open. Right-click at the prompt and select “Paste” from the popup menu.

如果尚未打开终端窗口,请按Ctrl + Alt + T打开。 右键单击提示,然后从弹出菜单中选择“粘贴”。

02_selecting_paste_in_terminal

The text you copied is pasted at the prompt. Press Enter to execute the command.

您复制的文本将粘贴在提示符处。 按Enter执行命令。

03_text_pasted

The command is executed like you typed in yourself.

该命令的执行就像您自己键入的一样。

04_command_executed

You can also copy text from the Terminal window to paste into other programs. Simply highlight the text, right-click on it, and select “Copy” from the popup menu. You can paste this text into a text editor, word processor, etc.

您也可以从“终端”窗口复制文本以粘贴到其他程序中。 只需突出显示文本,右键单击它,然后从弹出菜单中选择“复制”即可。 您可以将此文本粘贴到文本编辑器,文字处理器等中。

05_copying_text_from_terminal

When pasting a copied command into the Terminal window, you can use the arrow keys to navigate through the command and use the backspace key to delete text and retype it, if desired. This is useful if you want to copy a long command that has placeholders for certain parts of the command. You can easily change those to customize the command to your needs.

将复制的命令粘贴到“终端”窗口中时,可以根据需要使用箭头键浏览该命令,并使用退格键删除文本并重新键入。 如果要复制包含命令某些部分的占位符的长命令,这很有用。 您可以轻松更改它们,以根据需要自定义命令。

翻译自: https://www.howtogeek.com/203741/how-to-copy-and-paste-text-into-the-linux-terminal/

linux终端复制粘贴

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值