954,242 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Ubuntu Command-line Editing and History Exercise

This exercise is designed to get you familiar with the Ubuntu command-line editing features. It also introduces you to the concept of command-line history.

Follow these steps
Type the words "We all love Ubuntu" (without the quotation marks) but do not press Enter.
Press the left arrow key to move the cursor to the letter "a" in the word "all".
Press Alt+D to delete the word "all".
Re-type the word "all" at the present cursor position.
Press Ctrl+A to move the cursor to the beginning of the command line.
Press the right arrow key to move the cursor to the letter "l" in "love".
Press Ctrl+K to delete the line from the current cursor position.
Press Ctrl+A and then press Ctrl+K to delete the entire line.
Type "echo $SHELL" and press Enter.
Type "date" and press Enter.
Type "cal" and press Enter.
Press the up arrow three times. You should see "echo $SHELL" on the current command line. Press the down arrow once. The current line will show "date". Now press Enter.
Type "clear" and press Enter.

Evenbit
Junior Poster
140 posts since Mar 2005
Reputation Points: 99
Solved Threads: 5
 

very cool!

peptidebond
Newbie Poster
1 post since Nov 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: