Thursday, 17 March 2016

Unix shortcuts

Unix/ Linux ShortCuts


Unix/ Linux Keyboard shortcuts

These commands are case insensitive.

Shortcut/commandDescription
[Ctrl]+BMoves the cursor backward one character.
[Ctrl]+CCancels the currently running command.
[Ctrl]+DLogs out of the current session.
[Ctrl]+FMoves the cursor forward one character.
[Ctrl]+HErase one character. Similar to pressing backspace.
[Ctrl]+PPaste previous line(s).
[Ctrl]+SStops all output on screen (XOFF).
[Ctrl]+QTurns all output stopped on screen back on (XON).
[Ctrl]+UErases the complete line.
[Ctrl]+WDeletes the last word typed. For example, if you typed 'mv file1 file2' this shortcut would delete file2.
[Ctrl]+ZCancels current operation, moves back a directory or takes the current operation and moves it to the background. See bg command for additional information about background
[Ctrl]+EAlternative to End key (or) Move cursor to end of command
[Ctrl]+AAlternative to Home key (or) Move cursor to starting of command



Unix/ Linux Command line shortcuts

These are a few command line shortcuts.
Shortcut/
command
Description
~Moves to the user's home directory.
cd -Move to previously accessed directory
cd !$!$ represents the arguments from your last command
mkdir myfolder{1,2,3}create three folders: myfolder1, myfolder2, and myfolder3.
!!Repeats the line last entered at the shell. See history command for previous commands.
!$Repeats the last argument for the command last used. See history command for previous commands.
resetResets the terminal if terminal screen is not displaying correctly.
shutdown -h nowRemotely or locally shuts the system down.
exitlogout
<Mark or Select text><Enter>Copies the text currently highlighted  or marked
<Mouse Right Click>Paste the text which is currently highlighted somewhere else.
aliasUsing alias, we can create shortcuts for frequently used commands/



tags: Unix shortcuts, Linux keyboard shortcuts,

No comments:

Post a Comment