Showing posts with label hotkey. Show all posts
Showing posts with label hotkey. Show all posts

Friday, January 4, 2013

Hotkeys for terminal advanced usage

Web Source: http://allhotkeys.com/ubuntu_hotkeys.html

the most useful and less known commands:

1) Ctrl+D = Log out from the current terminal. In X, this may log you out after a shuting down the emulator.
It is very useful if you have a lot of open terminals(with ssh connection to remote server) and you want to logout from them quickly(without typing 'exit' in each on them)

2) Ctrl+R = History search (Finds the last command matching the letters you type).
Previously I used "history | grep my_command", but this looks like more elegant.

3)Ctrl+L = Clears terminal output.

Saturday, December 1, 2012

Hotkey Maximize and Minimize window in Ubuntu 12.04 (Unity)

In older Ubuntu there was hotkey(shortcut) to Maximize and Minimize window.
In Unity(12.04) these was changed:
Maximize - Ctrl+Super+UpArrow
Minimize - Ctrl+Super+DownArrow

Thursday, August 30, 2012

Linux command 'Less' short list of commands

Linux command 'Less' short commands:
source, source2.

h - show help

f - scroll page forward
b - scroll page backward
g or "<" - go to begin of the file
G or ">" - go to end of the file

/PATERN - search
n - search for next appearance
N - search for previous appearance


tail mode:

Press Shift-F. This will take you to the end of the file, and continuously display new contents. In other words, it behaves just like tail -f.
To start less in the tail mode, execute:
$ less +F /var/log/messages
To scroll backwards, you must first exit the follow mode by pressing Control-c.

reload latest lines from file, one time 'tail mode':
Shift+G - got to the end of file
Shift + ">" - load till the end of file, press few times if you expect changes to file.