Overview
Fedora Workstation is a Linux distribution based on Red Hat Linux. This lab provides guidance on using the BASH Shell of the Linux+. By performing this lab, students will learn how to execute various file manipulation commands.
OUTCOMES:
In this lab, you will learn to:
- Use various commands to display the contents of text files.
- Use various commands to modify the contents of text files.
Key terms and descriptions
file
Before attempting to display a file, you should make sure it is a text file, not a binary file. This can be accomplished with the file command.
cat
Cat displays the contents of a file.
head
Displays the top of the file
tail
Displays the bottom of the file
tr
The tr command is designed to translate a set of characters to another set of characters.
cut
The cut command is good for text database files. It will read one line of data at a time, break up the line based on a “field separator,” and allow you to manipulate the fields.
sort
Sorts a list