linux 命令行
➜ webapps head b.txt | cut -d'/' -f2-
除了先用鼠标选中,再ctrl+shift+c
复制外 有没有更快捷的方式复制当前光标所在命令行中的内容。
PHP中文网2017-04-17 14:33:14
Ctrl+Alt+T opens the terminal
Some commonly used terminal shortcut keys:
Ctrl+L clears the screen (function is equivalent to the command clear)
Ctrl+U cuts text until the line Start (can be used to clear the line)
Ctrl+K Cut text until the end of the line
Ctrl+Y Paste the recently cut text
Ctrl+C Kill Kill the current process (can also be used to clear the current line)
Ctrl+D exits the current Shell (function is equivalent to the command exit) or deletes the current characters
Ctrl+A at the beginning of the line
Ctrl+E at the end of the line
Home/End Line start/end
Ctrl+F Move forward one character
Ctrl+B Move backward one character
Ctrl+P or Ctrl+N Up and down history
Up and down direction Key up and down history
Ctrl+Shift+C Copy
Ctrl+Shift+V Paste
There is also Tab completion, hold down the Ctrl key for block selection.
Middle mouse button: Paste (in gnome -You can also paste using "menu key + P" in terminal)