Tuesday, December 25, 2012

Command line short cuts in Centos

Desktop and command line short cuts in CENTOS


[Ctrl] + [Alt] + [Backspace] = kills your current X session. Kills your graphical desktop session and returns you to the login screen. Use this if the
 normal exit procedure does not work.

[Alt] + F2 = Show the panel run application dialog 

[Ctrl] + [Alt] + [Delete] = From a non-graphical shell prompt, shuts down your Red Hat Enterprise Linux system. Use only when the normal shutdown procedure does not work. In a graphical desktop session, this shortcut displays the desktop logout screen that allows you to logout, reboot, or shut down your system.

[Ctrl] + [Alt] + [Fn] = switches screens. [Ctrl]+[Alt] + one of the function keys displays an available screen. By default, [F1] through [F6] are text-mode shell prompt screens and [F7] is the graphical desktop screen.

[Alt] + [Tab] = switches tasks in a graphical desktop environment. If you have more than one application open at a time, you can use [Alt] + [Tab] to switch among open tasks and applications. 

[Ctrl] + [a] = moves cursor to the beginning of a line. This works in most text editors and in the URL field in Mozilla.

[Ctrl] + [d] = logout of (and close) shell prompt. Use this quick shortcut instead of typing exit or logout.

[Ctrl] + [e] = moves cursor to end of a line. This works in most text editors and in the URL field in Mozilla.

[Ctrl] + [l] = clears the terminal. This shortcut does the same thing as typing clear at a command line.

[Ctrl] + [u] = clears the current line. If you are working in a terminal, use this shortcut to clear the current line from the cursor all the way to the beginning of the line. 

[Tab] = command autocomplete. Use this command when using a shell prompt. Type the first few characters of a command or filename and then press the [Tab] key. It will automatically complete the command or show all commands that match the characters you typed.

[Up] and [Down] Arrow = shows command history. When using a shell prompt, press the [up] or [down] arrow to scroll through a history of commands you have typed from the current directory. When you see the command you want to use, press [Enter]. 

[!!] = Repeat Last Command

[Alt] + [f] = Move the cursor to the end of the next word. Again, like with all shortcuts that use Alt as the modifier, this may not work in all graphical terminal emulators

[Ctrl] +[w] = Delete the word before the cursor.

[Ctrl] + [k] = Delete the line from the position of the cursor to the end of the line.

[Alt] + [b] = Move the cursor to the beginning of the current or previous word. Note that while this works in virtual terminals, it may not work in all graphical terminal emulators, because many graphical applications already use this as a menu shortcut by default.

0 comments:

Post a Comment