Book Image

CentOS Quick Start Guide

By : Shiwang Kalkhanda
Book Image

CentOS Quick Start Guide

By: Shiwang Kalkhanda

Overview of this book

Linux kernel development has been the worlds largest collaborative project to date. With this practical guide, you will learn Linux through one of its most popular and stable distributions. This book will introduce you to essential Linux skills using CentOS 7. It describes how a Linux system is organized, and will introduce you to key command-line concepts you can practice on your own. It will guide you in performing basic system administration tasks and day-to-day operations in a Linux environment. You will learn core system administration skills for managing a system running CentOS 7 or a similar operating system, such as RHEL 7, Scientific Linux, and Oracle Linux. You will be able to perform installation, establish network connectivity and user and process management, modify file permissions, manage text files using the command line, and implement basic security administration after covering this book. By the end of this book, you will have a solid understanding of working with Linux using the command line.
Table of Contents (11 chapters)

Managing Text Files

Computer systems are mostly used for editing, manipulating, or managing data. On Linux systems, this data is very often in the form of text files. In general, everything in Linux is a file, and having a solid understanding of working with text files is important. All important information in Linux is stored in text format files.

In this chapter, our objective is to learn how to work with text files on the command line, using the most popular default text-based editor, vi, and other text file manipulation utilities. Then, we will learn how input/output redirection is executed in files and programs for further processing.

In this chapter, we will cover the following topics:

  • Different methods to create a text file
  • Editing files with the vi editor
  • Using text file manipulation tools
  • Redirecting output to files and programs
  • Using grep for text matching
  • Finding a...