LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-23-2011, 04:56 PM   #1
chen.yo
LQ Newbie
 
Registered: Apr 2011
Location: israel
Distribution: CentOS release 5.4
Posts: 13

Rep: Reputation: 0
man page for redhat networking settings ?


hi,
i have 2 questions.

1.
im new to linux and im working on several distros,
sometimes i dont remember the syntax of the ethernet settings
(i.e those directives in /etc/sysconfig/network-scripts/ifcfg-eth0,or /etc/network/interfaces )
in redhat its IPADDR,NETMASK etc..
in ubunto its:
iface eth0 inet static
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.254

so,where exactly is the man page for this information,
i tried (in centos) to type man -k "IPADDR"
to find some reference but i come up with nothing.

2.
sometimes im logged as user "user1" and then i do "su user2" and then again "su user3",
i would like to know how far the nesting is and who was first..
i.e is there any command to give me this output: "user1->user2->user3"?
 
Old 04-23-2011, 06:29 PM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Hello chen.yo, welcome to LQ,

the most common commands which are valid on every Linux-distribution are
Code:
ifconfig
which shows and changes the networksettings, read the manpage for ifconfig.
Code:
iwconfig
shows the state of your wireless-adapters.

The command "man -k" and "apropos" (which is the same) are a very good starting point when you are searching for system-specific information. Note that the program you are using when you read a manpage is "less". Look at the manpage for less. less has the same keybindings as the vi editor which makes it very convenient to navigate in a manpage. "j" is one line down, "k" is one line up, "1G" is the first line of the manpage, "G" is the last line of the manpage. Searching is done via "/", example
Code:
/ip-adress
will search for the next occurance of the word "ip-adress", with "n" you search downwards.

Note further that near the bottom of every manpage (remember the "G" command) there is a section "see also" which leads you to related manpages.

For your second question I don't know, I've at least never seen such a thing.

Markus
 
1 members found this post helpful.
Old 04-23-2011, 06:32 PM   #3
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
@ Reply

Hi chen.yo,

Man pages are for commands. Man page gives you information about the correct syntax of a command and what are the available switches. For example:

man ifconfig
will tell you about the usage of ifconfig command, how to use it and what are the switches available

similarly,

man route will tell you about the usage of route command, how to use it and what are the switches available.

Here what you are trying to do is you are trying to find the info on IPADDR which is variable which contains ip address and that is the reason you are not getting any output.
 
1 members found this post helpful.
Old 05-01-2011, 06:01 AM   #4
chen.yo
LQ Newbie
 
Registered: Apr 2011
Location: israel
Distribution: CentOS release 5.4
Posts: 13

Original Poster
Rep: Reputation: 0
10x,
i actually thought that the information is somewhere on the man page.
just to be clear, i know what is ifconfig and so..
my question was, what if i want to edit the "/etc/network/interface" to change the network mask,
but then i dont sure if i should type network="255.255.255.0" or "netmask=255.." , so is there any reference about it.

this is for a situation where u dont have internet connection, and u dont remember quite well the settings in the /etc/network/interface.

thanku all very much
 
Old 05-01-2011, 11:39 AM   #5
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
@ Reply

Hi chen,

Have a look at the following links:

http://en.wikipedia.org/wiki/IP_address

http://www.ralphb.net/IPSubnet/

I hope you will find them useful.
 
1 members found this post helpful.
  


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
About Man Page Actionscript3 Linux - Newbie 5 10-27-2010 04:26 AM
How do I get out of a man page? christianunix Linux - Newbie 4 10-17-2007 09:37 PM
man alsamixer not showing the man page nosaku Slackware 1 12-20-2004 09:52 AM
Is there a man page on how to use man page? jdruin Linux - Software 2 10-30-2004 10:29 AM
getting out of a man page! naijaguy Linux - Newbie 2 08-13-2004 10:28 PM


All times are GMT -5. The time now is 06:11 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration