Chapter 2: Basic Operations and Commands
This chapter focuses on the practical use of Linux through the command line.
You will learn how to interact with the system using a terminal, manage files and directories, view and process text files, and edit configuration files using vim.
The goal of this chapter is to build hands-on confidence when working in a Linux environment.
Learning Objectives
After completing this chapter, you will be able to:
- Understand how the terminal and shell work together
- Use common command-line shortcuts efficiently
- Manage files and directories from the command line
- Search, view, and process text files
- Edit files using the vim editor without confusion
Chapter Structure
2.1 Terminal and Shell Basics
- What a shell is and how it works
- Differences between terminal, console, and SSH
- Common keyboard shortcuts for efficient command-line use
2.2 File and Directory Operations
- Navigating the file system
- Creating, moving, copying, and deleting files and directories
- Searching for files and checking disk usage
2.3 Viewing and Processing Text Files
- Viewing file contents in different ways
- Searching text using command-line tools
- Using redirection and pipes to combine commands
2.4 vim Editor Basics
- Understanding vim modes
- Performing basic editing operations
- Navigating, deleting, copying, and undoing changes
- Simple search and replace operations
How to Study This Chapter
- Practice each concept directly in the terminal
- Focus on understanding workflows, not memorizing commands
- Expect to revisit these tools frequently in later chapters
- Mistakes are part of learning—especially when using vim
📌 Tip:
Mastering these basic operations will make all advanced Linux topics easier to understand and apply.