Knowing the Shortcuts of Linux

Everyone agrees that Linux is not so user friendly. Well, even though this is true, most of them won’t vote for this. And this bunch of people will be a gang of coders and geeks. And yes, this is true. Linux proves to be an excellent OS for coding as it has its own compiler. Well, keeping this thought aside and reserved for a debate for next time, let us focus on the shortcuts that can come handy while coding in Linux.

Knowing the Shortcuts of Linux

Basic

CTRL+B         Moves the cursor backward one character.

CTRL+C        Cancels the currently running command.

CTRL+D        Logs out of the current session.

CTRL+F         Moves the cursor forward one character.

CTRL+H        Erase one character. Similar to pressing backspace.

CTRL+P         Paste previous line(s).

CTRL+S         Stops all output on screen (XOFF).

CTRL+Q        Turns all output stopped on screen back on (XON).

CTRL+U        Erases the complete line.

CTRL+W        Deletes the last word typed. For example, if you typed ‘mv file1 file2’ this shortcut would delete file2.

CTRL+Z         Cancels 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.

Command Line

 ~         Moves to the user’s home directory.

!!          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.

reset   Resets the terminal if terminal screen is not displaying correctly.

shutdown-h now      Remotely or locally shuts the system down.

Using these shortcuts will help you master the Linux operating system while coding. Hope these shortcuts are helpful to you.

So friends, do follow these shortcuts and let us know your thoughts on this. Do not forget to comment. Feel free to express your thoughts, for they will be appreciated.

Leave a Reply

Your email address will not be published. Required fields are marked *