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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-05-2004, 12:49 AM
|
#1
|
LQ Newbie
Registered: Mar 2004
Posts: 17
Rep:
|
finding gateway address on eth0
alert...
I tried using the command "more /etc/sysconfig/network" to find the gateway address that is assigned to my nic, but that doesn't seem to work consistently across systems. Some have it configured, some don't... Anyway, i really need to figure out the gateway address bound to my NIC, and I'm really tired of searching online, so I thought I would sign up here and just ask.
I'm a Linux n00b, and a formerly devoted Microsoft fan that is trying to give something new a shot (again). I've tried various distros off and on the last few years, and I just came to the conclusion that Linux hates me. I can set up and secure an Active Directory domain with no problem, but I have trouble even changing the screen resolution in Linux...
|
|
|
03-05-2004, 01:15 AM
|
#2
|
LQ Newbie
Registered: Mar 2004
Location: Ontario Canada
Distribution: Fedora Core 3
Posts: 15
Rep:
|
TraceRoute should do the trick ... SystemTools > Traceroute
|
|
|
03-05-2004, 01:24 AM
|
#3
|
Member
Registered: Jan 2004
Location: Sunny UK
Distribution: Slackware 9.1
Posts: 53
Rep:
|
cant you find the gateway in sbin/ifconfig ?
not t my box at the mo, so not 100%
|
|
|
03-05-2004, 01:27 AM
|
#4
|
LQ Newbie
Registered: Mar 2004
Posts: 17
Original Poster
Rep:
|
Quote:
Originally posted by FatalSystmError
TraceRoute should do the trick ... SystemTools > Traceroute
|
Thanks for the reply, but it's not quite what I'm looking for... I actually need a user that is logging onto a machine via telnet to find the gateway address via the command line. It's part of a lab assignment that I'm having to prove out myself before I can assign it to the students. Any ideas?
|
|
|
03-05-2004, 01:28 AM
|
#5
|
LQ Newbie
Registered: Mar 2004
Posts: 17
Original Poster
Rep:
|
Quote:
Originally posted by lozz1978
cant you find the gateway in sbin/ifconfig ?
not t my box at the mo, so not 100%
|
I tried an "ifconfig eth0" command, but I didn't see anything listed there. That was my first instinct, being used to "ipconfig /all" on 2K/XP...
|
|
|
03-05-2004, 01:32 AM
|
#6
|
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796
Rep:
|
try "/sbin/route"
|
|
|
03-05-2004, 01:47 AM
|
#7
|
Senior Member
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038
Rep:
|
to change resolution simply type
xf86config
if your using xfree86 for the GUI (most popualr choice in linux)
screen resolution change is no fun, actualy for me i have to tell it what resolution to use if i want to start up the GUI
and if what your not looking for is not in "route", then i fear you may never find it
|
|
|
03-05-2004, 02:05 AM
|
#8
|
LQ Newbie
Registered: Mar 2004
Posts: 17
Original Poster
Rep:
|
Quote:
Originally posted by SciYro
to change resolution simply type
xf86config
if your using xfree86 for the GUI (most popualr choice in linux)
screen resolution change is no fun, actualy for me i have to tell it what resolution to use if i want to start up the GUI
and if what your not looking for is not in "route", then i fear you may never find it
|
Awesome! You guys rock. That did just what I needed! I'll try tackling screen resolution at a later date. I managed to get it set to what I needed to during setup, so I'm happy for now.
Thanks for the warm welcome! You may see me here often... If I can be converted to a Linux user, there is hope for anyone.
|
|
|
03-05-2004, 02:07 AM
|
#9
|
LQ Newbie
Registered: Mar 2004
Posts: 17
Original Poster
Rep:
|
Another quick question without starting a new thread... Why isn't /sbin in the path variable by default? It seems like you want easy access to all of those utilities just anytime without having to type in a path... I know that you can add it, but there are so many thing that I don't understand why they are done the way they are...
edit: and why are some things in /usr/sbin instead? I mean, what makes route go in /sbin while traceroute goes in /usr/sbin?
Last edited by MHouse; 03-05-2004 at 02:11 AM.
|
|
|
03-05-2004, 06:35 AM
|
#10
|
Senior Member
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038
Rep:
|
ok / is only on 1 partion (the root partion), and linux only mounts the root partion, meaning that programs on other partions wont work, so by default the / partion has everything a working distro needs to boot and mount and handle simple system tasks that may be required at boot time, however sence some people like to spilt program up, the /usr directory comes in handy, its basicly a copy of the / partion , only its in a difrent directory to organize needed, from not so needed, /usr/local is the same, this one is use for most user installed program to help keep the system clean
/sbin is like / bin only by default its supoed to be restricted so only super users can use the program in /sbin
if /sbin aint in your path then is say add it, not like you can use it anyways (unless your a super user), reasons why it might not be in the path by default : the distro is trying to be idiot resistant
|
|
|
All times are GMT -5. The time now is 04:18 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|