LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-30-2009, 05:39 PM   #1
dynamiteboy
Member
 
Registered: Aug 2009
Posts: 42

Rep: Reputation: 17
problem viewing files with gedit


Using gedit in Ubuntu 9.04 to view files, and it only shows a small portion of the overall file. Is there a setting for this?

Specifically, looking at apache2.conf. I can't get gedit to scroll past line 281, and there is way more to this document that that. 281 doesn't even get me out of the global environment section.

Does gedit have something I'm missing, or do I need to find another text editor?

Thanks,

db
 
Old 08-30-2009, 07:47 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
I am afraid I don't use gedit and unable to say why this maybe occuring, it could be similar to notepad and have a limited file size, however in a terminal vi or nano should be able to browse the httpd configuration entire file.
 
Old 08-30-2009, 08:19 PM   #3
bmarx
Member
 
Registered: Dec 2004
Distribution: Slackware, Arch, FreeBSD
Posts: 202

Rep: Reputation: 34
you may also want to try launching gedit from the command line to see if there are any errors when it starts up and loads the file.

Are you able to load other text files and scroll past line 281?
Have you tried removing the offending line using a console editor and reopening in gedit?
 
Old 08-30-2009, 08:40 PM   #4
dynamiteboy
Member
 
Registered: Aug 2009
Posts: 42

Original Poster
Rep: Reputation: 17
Tried all that, no change. Starts fine from command line, so it appears to be functioning well.

I'm wondering if the config file in apache2 got radically changed? I've used apache 1.x, and the config file was a lot bigger than this. But if my gedit is working, then it would seem that the file is shorter than expected.

I'm trying to find something about it in the docs at apache.org, but nothing so far. Will update if I learn anything new.

Thanks, y'all!

db
 
Old 08-30-2009, 08:43 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Try

wc -l apache2.conf

to check filesize.
Also try vi (or vim) as an alternate editor.
 
Old 08-31-2009, 04:04 AM   #6
dynamiteboy
Member
 
Registered: Aug 2009
Posts: 42

Original Poster
Rep: Reputation: 17
Chrism01-

Perfect. I don't know these little tidbits, so I appreciate them very much. Turns out the config file has been greatly shortened since I last used Apache, and that was on a Windows machine. The config file now relies on a series of modular includes that I didn't know about.

Anyhow, my gedit is working just fine, it was the file, not the editor. Problem solved.

Thanks to all for the tips, they are all getting filed for future reference!

db
 
Old 08-31-2009, 06:48 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
You're welcome
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem saving with gEdit and then viewing with Notepad VicRic Linux - Newbie 6 07-24-2007 08:30 PM
Gedit problems openning files UmneyDurak Linux - Software 6 11-24-2005 07:45 PM
Viewing Windows files on Red Hat / Hotmail PSM Problem Caud Pong Linux - Networking 1 09-30-2004 12:19 PM
problem in viewing files in windows partition when booted on redhatlinux 9 gssnathan Red Hat 1 07-24-2004 07:25 AM
open hidden files gedit 2.6 buldir Linux - Software 5 06-20-2004 02:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration