Some shell and bash TIPS :)

The Hello world script, Commenting / Documentation, echo command, vi, emacs, other text editor comments, shell command or program?.

Some shell and bash TIPS :)

Postby crouse » Fri Mar 17, 2006 12:35 pm

http://www.andamooka.org/reader.pl?pgid=learndebch13_02

Keystroke(s) /Function

Up Move back one command in the history list.

Down Move forward one command in the history list.

Left Move back one character.

Right Move forward one character.

Esc f Move forward one word.

Esc b Move back one word.

Ctrl-A Move to beginning of line.

Ctrl-E Move to end of line.

Ctrl-D Delete current character.

Backspace Delete previous character.

Esc d Delete current word.

Ctrl-U Delete from beginning of line.

Esc k Delete to end of line.

Ctrl-Y Retrieve last item deleted.

Esc . Insert last word of previous command.

Ctrl-L Clear the screen, placing the current line at the top of the screen.

Tab Attempt to complete the current word, interpreting it as a filename, username, variable name, hostname, or command as determined by the context.

Esc ? List the possible completions.
User avatar
crouse
Site Admin
 
Posts: 561
Joined: Sun May 15, 2005 9:36 pm
Location: Des Moines, Iowa

Re: Some shell and bash TIPS :)

Postby cfajohnson » Fri Jul 30, 2010 3:34 pm

Ctrl-K is delete to end of line

ESC-K is delete entire line
cfajohnson
 
Posts: 2
Joined: Fri Jul 30, 2010 3:19 pm


Return to General suggestions and the VERY basics.

Who is online

Users browsing this forum: No registered users and 1 guest