IntroToLinux

4. Command Line Editing

Cursor Movement:

Ctrl+A    # Move to beginning of line
Ctrl+E    # Move to end of line
Ctrl+F    # Move forward one character
Ctrl+B    # Move backward one character
Alt+F     # Move forward one word
Alt+B     # Move backward one word

Text Editing:

Ctrl+D    # Delete character at cursor
Ctrl+H    # Delete character before cursor (Backspace)
Ctrl+W    # Delete word before cursor
Ctrl+K    # Delete from cursor to end of line
Ctrl+U    # Delete from cursor to beginning of line
Ctrl+Y    # Paste previously deleted text

Command Control:

Ctrl+C    # Cancel current command
Ctrl+Z    # Suspend current command
Ctrl+L    # Clear screen (same as 'clear' command)
Tab       # Auto-complete command or filename
Tab Tab   # Show all possible completions

Next: → Working With The Path Variable
Previous: ← Command History
Lesson Home: ↑ Lesson 3: History & Variables Course Home: ⌂ Introduction to Linux