Learn how to use shortcuts to call commands in the Unix command history again.
- [Instructor] In this movie, … we'll learn to use some handy shortcuts … to run commands that are in the Unix command history. … There are some other useful shortcuts … that make use of the history. … Let me clear my screen again. … They all start with the exclamation point. … So let's just do history so I can see just the last few. … If you're on bash, you might want to do something … like history 15, … and let's pick one of these commands that we want to run. … Let's just run 340, because that's nice and simple. … It's just going to show me the current working directory. … So if I were to type in the dollar sign … followed by that number, 340, with no space after it, … it'll execute that command. … It tells me what command it's running, and then it does it. … That's very handy. … We can look back through the history, … pick the command that we want, … find its reference number, … and just put an exclamation point in front of it … to execute that command again. … Be careful, though, if your command includes …
Skill Level Intermediate
1. Introduction to Unix
2. Files and Directories
3. Ownership and Permissions
4. Commands and Processes
5. Directing Input and Output
6. Configure Your Working Environment
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.