DispersedNet
SiteMap
Unix Concepts
Shell Programming
Shell Scripting
Unix Questions
vi editing
«Prev
Unix Concepts
File Management
List Files Command
Copy Directories Command
Removing Directories Quickly
Unix About Links
Creating File Link
Find Command Search
File Management Conclusion
Unix Customization
Creating Aliases Unix
list current Aliases
Displaying Previous Commands
Repeating Previous Commands
Modifying Previous Command
Changing System Prompt
Storing shell Settings
Customize-environment
Grep Regular Expression
Define Regex
Using Quotes with Regex
Matching Pattern Occurrences
Matching Pattern Position
Turnoff Character Meaning
Regex Conclusion
Pattern Matching - Quiz
editing with vi
vi Review
Text in vi
Creating Text
Creating Command Shortcuts
Configure Editing Environment
Storing Custom Settings
Esditing Multiple Files
Pasting Text Files
vi Editing Conclusion
Managing Disk Space
Searching for text using ?, /, n, and N
First open the phonelist file. The cursor appears in the upper left corner, at the start of line 1.
When you press/ to start a forward search, your cursor goes to the status line.
Press Enter and the cursor moves to the text 28, which is the first instance that the regular expression 2 matches.
To search again, press n, a command that does not appear on the screen.
Press? to a start a backward search. Notice the cursor again goes to the status line.
Press Enter and the backward search begins from the last cursor position, 23 and goes up to 16, the nearest match.