Ubuntu Command-line Editing and History Exercise
Please support our Getting Started and Choosing a Distro advertiser: Programming Forums
![]() |
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
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.
Last edited by happygeek : Dec 18th, 2006 at 4:09 pm. Reason: Formatting
while (CPU is present) {some assembly required}
![]() |
Similar Threads
Other Threads in the Getting Started and Choosing a Distro Forum
- C command-line I/O question (C++)
- PLS Help!!! I can't run GPEDIT.MSC and MMC in the run command line in my local PC (Windows NT / 2000 / XP / 2003)
- Ubuntu Directories Exercise (Getting Started and Choosing a Distro)
- What is the Command-Line Argument for??? (C++)
- Help! How to make a csh receive argvs from command line? (*nix Software)
- Three New Command-Line Tools (Windows tips 'n' tweaks)
- command line (OS X)
Other Threads in the Getting Started and Choosing a Distro Forum
- Previous Thread: Linux for laptop?
- Next Thread: Ubuntu Directories Exercise
•
•
•
•
Views: 4891 | Replies: 0 | Currently Viewing: 1 (0 members and 1 guests)





Linear Mode