- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to view a large file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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.