Working with text on Linux is common. This video covers some common tools for doing so.
- [Narrator] Because a lot of what we will…be working with at the command line…involves text files or text output,…it's important to have a few tools in your tool kit…to check out the contents of text files.…The first one I want to introduce you to is called cat,…which we've seen before.…And it's short for concatenate.…To concatenate means to stick two or more things together,…and cat can do that.…But it's often used just to print…the contents of a file to the screen.…It's also helpful to get the contents of a text file…into a series of piped commands.…Depending on the operating system you're using,…you'll have different files available to you.…
Normally, we'd use cat to look at a log file…or something like that.…But here, I'll use some classic poems…because I want you to be able to follow along…with me exactly,…and not get tied up in differences…between lynx distributions at this point.…To just list out the contents of a file,…I'll write cat followed by the name of the file.…In this case, poems.txt.…Then, I'll press enter.…
- Recognize what the characters “-h” represent in the statement “df –h/home/alice/Documents”.
- Explain how to recall a previous command in Bash.
- Identify what the command “ls -l” will show.
- Recall what is needed to use the find command to look for files by name, size, and so on.
- List the two modes file permissions can be set to.
- Recall why many command line tools are intended to be used in pipes with other commands.
- Explain what the command “grep -E "" report.txt” will show.
- Identify what the “>” symbol is often used for.
Skill Level Beginner
Learning SQL Server Development on Linuxwith Joey D'Antoni1h 54m Intermediate
What you should know1m 51s
1. Setting Up Your Environment
2. Command-Line Basics
3. Files, Folders, and Permissions
4. Common Command-Line Tasks and Tools
5. A Peek at Some More Advanced Topics
Next steps1m 28s
- 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.