- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- General
- >
- Re: how to view a large file
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-13-2008 05:35 PM
10-13-2008 05:35 PM
I am using HP 11.11, I have problem vi a large file (300 over mb),
error : tmp file too large.
please guide me how to open such a large file
thanks
regards
ng
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-13-2008 05:53 PM
10-13-2008 05:53 PM
Re: how to view a large file
By default when you vi any file it uses the /var/tmp as a temporary storage (that is if vi or system crashes you can recover the file). Usually if you dont have enough space in /var filesystem then vi'ing a file can fill /var.
You can temporarly export TMPDIR to any filesystem which has atleast free space greater than 300MB and then vi the file.
export TMPDIR=
vi file
Cheers
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-13-2008 05:59 PM
10-13-2008 05:59 PM
Re: how to view a large file
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=898173
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-13-2008 06:17 PM
10-13-2008 06:17 PM
Re: how to view a large file
> filesystem [...]
I'd guess that you'd need to specify a
directory where you have write permission,
not simply any file system with some free
space. Disk quotas might also matter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-13-2008 06:29 PM
10-13-2008 06:29 PM
Re: how to view a large file
Mridul's link shows how to split it up. Then you can edit the parts.
If you just want to look, you could use more(1). If you need to change lots of lines, you may want to use sed(1).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-13-2008 08:57 PM
10-13-2008 08:57 PM
SolutionYou can do one thing break the file into small parts to read. first you have to konw the total no of lines to get this.
wc -l filename
then you can take first 5000 line into a file give this command
sed -n -e '1,5000p' filename>newfilename
this will extract first 5000 line into newfilename
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-14-2008 11:35 PM
10-14-2008 11:35 PM
Re: how to view a large file
by vi you can use the option -t (if I well rememeber) to eredefine the temp directory used.
HTH,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
10-14-2008 11:57 PM
10-14-2008 11:57 PM
Re: how to view a large file
Nothing like that on the man page, just TMPDIR.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP