Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 295
  • Last Modified:

long file in vi

How do you view a long file in vi and search a string..
Sometimes vi says that File too long...
0
vrelhan
Asked:
vrelhan
  • 4
  • 3
1 Solution
 
ahoffmannCommented:
view file
0
 
vrelhanAuthor Commented:
what is the concept of vi-buffer file where it stores the information.
0
 
vrelhanAuthor Commented:
what is the concept of vi-buffer file where it stores the information.
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
ahoffmannCommented:
vi's buffer (if you mean that) is used to roll back changes, for example with the u command.
view does not use a buffer 'cause it's readonly ;-)
0
 
vrelhanAuthor Commented:
what is the concept of vi-buffer file where it stores the information.
0
 
vrelhanAuthor Commented:
view filename will solve the problem, but if I want to do it with vi only then, is it possible ? Is there any variable or parameter whose value can be increased and vi will allow us to see the long file even.
0
 
ahoffmannCommented:
vi -R file

# how about RTFM - read the fine man-page ;-)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now