From the course: Complete Guide to Navigating Linux: Working with Users, Files, and Networks
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Viewing text file contents - Linux Tutorial
From the course: Complete Guide to Navigating Linux: Working with Users, Files, and Networks
Viewing text file contents
- In this video, you'll learn about text files and how to view their contents. Why do you want to know? Well, Linux configuration is typically stored in readable text files, and different formats are commonly used. You will find plain text or YAML, or JSON, or XML, or depending on the application that has generated the text file. In case you are in doubt, you can always use file. File will show you which format is used in a file. And that might be convenient because in Linux, you don't always work with extensions. So sometimes a file has specific content, but it doesn't show by the extension. Then the file command will show you which format is used in the file. To view a text file, less is convenient. Less is a page that allows you to read text file contents page-by-page. There's also cat, which is convenient for smaller text files. It dumps the entire contents of a text file on the screen and it's convenient for small text files. And finally, there is tail and head, which I use to…
Contents
-
-
-
(Locked)
Learning objectives44s
-
(Locked)
Understanding the Linux operating system4m 31s
-
(Locked)
Installing Ubuntu8m 15s
-
(Locked)
Accessing Linux2m 30s
-
(Locked)
Shell overview9m 28s
-
(Locked)
Navigating the file system3m 57s
-
Working with files and directories5m 12s
-
(Locked)
Absolute vs. relative paths5m 18s
-
(Locked)
Viewing text file contents5m 44s
-
(Locked)
Getting help5m 45s
-
(Locked)
Command overview1m 8s
-
(Locked)
Lesson 1 lab: Discovering Linux40s
-
(Locked)
Lesson 1 lab solution: Discovering Linux1m 18s
-
(Locked)
-
-
-
-