Archives for category: shell

From HowToGeek

The useful ones:

  • Ctrl + A Go to the beginning of the line you are currently typing on
  • Ctrl + E Go to the end of the line you are currently typing on
  • Ctrl + W Delete the word before the cursor
  • Ctrl + K Clear the line after the cursor
  • Alt + F Move cursor forward one word on the current line
  • Alt + B Move cursor backward one word on the current line

If you’re ever using a Shell in with Linux or for Windows the command prompt, you’ll quickly develop a hatred for typing full file paths.

For instance, on windows (Windows+R – cmd):

cd C:\Documents and Settings\Windows XP User\Application Data\

That’s just too much to type. Let’s not forget about the quotation marks issue for folders with spaces in their name.

You could just type this:

cd C:\Doc [tab]\Win[tab]\Appli[tab]

The blanks would be filled in and quotes would be added. Bliss. [click to enlarge]

cmd.gif

This also works on every *NIX shell I’ve ever used.

[tags]daily-shortcut, productivity, accesskeys, shell, cmd[/tags]

Follow

Get every new post delivered to your Inbox.