In this video, learn how to read the contents of text files.
- [Instructor] In this movie we're going to learn … how to read content from files. … There's three main ways. … A fourth if you count opening up inside the text editor, … but we're not going to do that. … We're interested in commands that will read files for us. … The first command is called cat, … and it's kind of a funny name. … It's actually short for concatenate. … If we give cat several arguments, … it'll read the files and also concatenate them together. … But if we give it only one file name, … well, then it will just return the contents of that file. … So, it becomes the defacto way on Unix … to just look at the contents of a file. … You cat, and then the file name, … and you see what's inside the file, … even though it's not actually doing any concatenation. … That works really well with short files, … but if we have really long files, … we'd really like to have some way … to view those in pages or sections, … instead of having it just all output at once. … I mean, we might be viewing a file …
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.