LinuxQuestions.org
Register a domain and help support LQ
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, 06: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, 08:47 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
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, 09: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, 09: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, 09:43 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Try

wc -l apache2.conf

to check filesize.
Also try vi (or vim) as an alternate editor.
 
Old 08-31-2009, 05: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, 07:48 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
You're welcome
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:30 PM
Gedit problems openning files UmneyDurak Linux - Software 6 11-24-2005 08:45 PM
Viewing Windows files on Red Hat / Hotmail PSM Problem Caud Pong Linux - Networking 1 09-30-2004 01:19 PM
problem in viewing files in windows partition when booted on redhatlinux 9 gssnathan Red Hat 1 07-24-2004 08:25 AM
open hidden files gedit 2.6 buldir Linux - Software 5 06-20-2004 03:46 AM


All times are GMT -5. The time now is 06:54 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration