https://askubuntu.com/questions/385901/how-to-see-more-lines-in-the-terminal
If you are using the standard Terminal program on a Desktop version of Ubuntu...
- Choose Edit -> Profile Preferences from the terminal windows global menu.
- Choose the Scrolling tab
- Set Scrollback to the desired number of lines (or check the Unlimited box).
Then you can use the scrollbar at the side of the terminal to scroll back through the lengthy command output.
I use the default terminal in Ubuntu 14 (bash) and to scroll by page it is Shift + PageUp or Shift + PageDown to go up/down a whole page.
Ctrl + Shift + Up or Ctrl + Shift + Down to go up/down by line.
go to previous/next tab: ctrl+,/.
move to previous/next: ctrl+shift+,/.
find/search: ctrl+f
Up arrow and Down arrow for history without autocompletion
Alt-P and Alt-N for autocompletion from history
Ctrl-K to cut text from cursor until end of line. Ctrl-Y to paste it.
it uses an internal shell clipboard.
https://ss64.com/bash/syntax-keyboard.html
Ctrl + xx Toggle between the start of line and current cursor position
Alt + l Lower the case of every character from the cursor to the end of the current word. Alt + c Capitalize the character under the cursor and move to the end of the word.
Ctrl + s Stop output to the screen (for long running verbose commands) Then use PgUp/PgDn for navigation Ctrl + q Allow output to the screen (if previously stopped using command above) Ctrl + D Send an EOF marker, unless disabled by an option, this will close the current shell (EXIT) Ctrl + Z Send the signal SIGTSTP to the current task, which suspends it. To return to it later enter fg 'process name' (foreground).
Ctrl + b
- Move back a char Ctrl + f
- Move forward a char Ctrl + r
- Search the history backwards Ctrl + R
- Search the history backwards with multi occurrence Ctrl + u
- Delete backward from cursor Ctrl + xx
- Move between EOL and current cursor position Ctrl + x @
- Show possible hostname completions Ctrl + z
- Suspend/ Stop the command Alt + n
- Search the history forwards non-incremental Alt + p
- Search the history backwards non-incremental https://www.slant.co/versus/2442/2453/~gnome-terminal_vs_lxterminal
https://opensource.com/life/17/10/top-terminal-emulators
https://askubuntu.com/questions/19916/how-to-show-gnome-terminal-menubar/19917
How to show gnome-terminal menubar?
Right click anywhere inside the terminal, and you'll get a similar pop up menu that lets you reenable it.
You can also make it via terminal command line:
gnome-terminal --show-menubar
If you read the
man gnome-terminal
you can find this:--show-menubar Turn on the menu bar for the last-specified window; applies to only one window; can be specified once for each window you create from the command line.
https://askubuntu.com/questions/53688/making-ctrlc-copy-text-in-gnome-terminal
Ctrl + C is typically used for interrupting a program. But instead of using Ctrl + Shift + C to copy, which I do much more frequently than interrupting a process, I change the setting to have Ctrl +
C to copy and Ctrl + Shift + C to interrupt.
C to copy and Ctrl + Shift + C to interrupt.
You can do this in GNOME Terminal by going to "Edit" -> "Keyboard Shortcuts..." and map the "Copy" action to Ctrl + C and "Paste" to Ctrl + V. The interrupt command will automatically be remapped to Ctrl + Shift + C.
Apart from what @Dan said, there's another option for copy-pasting text in Linux which I'm finding much faster and easier to use, since there's no need to swich from mouse (which you're using to make the selection) to keyboard:
- selecting text with mouse copies it to clipboard
- middle-click pastes it.
This feature is especially useful in terminal, for example when assembling a command from bits of text which are already on screen.
This works in all applications, so it's possible to copy-paste text from a web page to terminal etc.
The clipboard buffer used for middle-click copy-paste is separate from the one used for Ctrl-C/Ctrl-V, which makes possible to have two different bits of text copied at the same time.
Copy: Ctrl+Shift+C
Paste: Ctrl+Shift+V
Paste: Ctrl+Shift+V
You may also find usage for:
Copy: Shift+Home
Paste: Shift+Insert
Paste: Shift+Insert
Edit > Key combinations
(translated from my spanish version of the Terminal), and set the legendary Ctrl+C
and Ctrl+V
https://stackoverflow.com/questions/9679776/how-do-i-clear-delete-the-current-line-in-terminal
You can use Ctrl+U to clear up to the beginning.
You can use Ctrl+W to delete just a word.
You can also use Ctrl+C to cancel.
If you want to keep the history, you can use Alt+Shift+# to make it a comment.
To delete the whole line no matter where the cursor is, you can use the
kill-whole-line
command, but it is unbound by default. It can be bound to, for example, Ctrl+Alt+K by inserting"\e\C-k": kill-whole-line
into your Readline init file (conventionally
~/.inputrc
).
In order to clean the whole line (2 different ways):
- Home , Ctrl+K
- End , Ctrl+U
8) Using pushd, popd, cd -, ~ to Move Across a Directory