Skip to content

Commit ceea7d7

Browse files
committed
feat: Let learners see the failed command prior to editing.
1 parent fd17652 commit ceea7d7

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

episodes/01-introduction.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -370,26 +370,28 @@ Displays the name of every program that starts with `pw`.
370370
Editing a long command can be time consuming. The shell has shortcut keys for moving to the start
371371
or end of a command that you are typing.
372372

373-
Try typing this command, but don't hit enter yet.
373+
Try this command.
374374

375375
```bash
376376
ls home/dcuser/shell_data
377377
```
378378

379-
Notice that there is an error: there should be a `/` at the start of the path.
379+
You will get an error `ls: cannot access 'home/dcuser/shell_data': No such file or directory`.
380+
There should be a `/` at the start of the path.
380381

382+
Use the up arrow to get the previous command again.
381383
Use CTRL+A (hold down the control (CTRL) key and press the A key) to move to the start of the command.
382-
383-
Edit the command to add the missing `/`, but don't hit enter yet.
384+
Edit the command to add the missing `/` and hit enter.
384385

385386
```bash
386387
ls /home/dcuser/shell_data
387388
```
388389

389390
Now you decide actually you wanted to see the contents one level down in `sra_metadata`.
390391

391-
Use CTRL+E to move to the end of the command.
392-
392+
Use the up arrow to get the previous command again.
393+
Your cursor will be at the end of the command.
394+
Use CTRL+A to move to the beginning of the command, then CTRL+E to move to the end of the command.
393395
Edit the command to add `/sra_metadata` and now hit enter.
394396

395397
```bash

0 commit comments

Comments
 (0)