Fedora 9


 
Thread Tools Search this Thread
Operating Systems Linux Fedora 9
# 1  
Old 10-17-2008
Fedora 9

Hi all,

I just installed fedora 9 in my PC.

when i go to the terminal and i typed in "ifconfig" to get ip address, it said "command no found"

I do need to type in "/sbin/ifconfig"

Why do i need to type in /sbin?

Another thing, what command do i use to do reverse lookup and checking active port?

I tried nmap but no good
# 2  
Old 10-17-2008
You need to supply full path, as long as you're not superuser, and you have permissions to execute - sbin is not in your $PATH environment. If you log in as root and type 'ifconfig' you'll get the response. Nmap is extremely good tool, but it is a bazooka and I think you're trying to kill a fly with it Smilie Use "netstat" to get generic ports information, but if this is not what you need, please specify your request.
For reverse lookup you can either use 'nslookup' or 'host'. Or even 'dig'.
# 3  
Old 10-17-2008
Hi sysgate,

Thank you..

netstat or host or dig are good enough

heheeh

when i log in as root, i still can't use ifconfig command (have to use with sbin)

How do we check startup services? I'm looking for the config file
I assume is under cd /etc

Thank you Sysgate
# 4  
Old 10-20-2008
Did you log in as root, or did you use sudo or su? What's in /root/.bashrc or /root/.bash_profile? Modify .bashrc to change your PATH.
# 5  
Old 10-20-2008
i use su command..

# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi


/root/.bash_profile

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME
# 6  
Old 10-22-2008
the "su" command doesn't change your HOME directory and use /root's profile. To do that you must run:
Code:
su -

Notice the dash there. Then, you get a full, root login. If after that it still doesn't work, modify root's .bashrc to add :
Code:
PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH

# 7  
Old 10-22-2008
it works now..

thank you
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Linux

Fedora 14

Anyone know where I can obtain a reliable download of Fedora 14? Every one I have attempted to download charges a fee and a credit card. I have the fee but no credit card. Plus I don't want a prepaid card for just a one-time purchase. :wall: This is how I feel. LOL Any advice? Thank... (4 Replies)
Discussion started by: aeo0868
4 Replies

2. Red Hat

fedora grub help, moving to tri boot (XP, ubuntu, fedora soemething)

I will shortly be adding a fedora flavor to my devel box. I currently have XP (installed first on an ssd), ubuntu 10.04 (installed second on the first partition of a platter drive), and I want to add either Cent or SL on the second partition of the platter drive. I will probably also want to... (0 Replies)
Discussion started by: LMHmedchem
0 Replies

3. Linux

Dual Boot Win XP And Fedora with Fedora Installed First

Hi everyone, I hope this question goes here. Anyways, I have a unique situation where my friend's comp has Fedora installed and wants to add Win XP as a dual boot without formatting the drive. Is it possible to create a partition on the current hard drive and then install win xp? I couldn't find... (4 Replies)
Discussion started by: eltinator
4 Replies

4. Ubuntu

Fedora 7

Hi all, Have installed Fedora 7 at home on an oldish Acer 3500. No sound and currently using what I think is a 15inch monitor (not entirely sure). Anyways, was curious to know what others "do" on their home setups. I've been more used to logging into work's HP-UX machines for the most part in... (3 Replies)
Discussion started by: Cameron
3 Replies

5. Linux

Software in fedora

Hi, What software is needed in fedora that can run .exe files? allso, where can i download these? thanks. (1 Reply)
Discussion started by: franz
1 Replies

6. Linux

new in fedora

how i can format a usb flash memory from fedora i can see the as /dev/sda1 from terminal pls help me (2 Replies)
Discussion started by: sadiquep
2 Replies

7. UNIX for Dummies Questions & Answers

Fedora to be or not to be?

Hiya folks, I been browsing through the forums on information regarding Fedora. I know this is the version I want but what is holding me back now is whether my computer could run it easily? I'am asking this because alot of the forum posts and replies I have read, most of them ask for the... (2 Replies)
Discussion started by: Mr_Pinky
2 Replies

8. Linux

FEDORA HELP(please)

I RECENTLY LOADED FEDORA LINUX ALL 4CD/S(FULL INSTALL). but i am getting no sound,no proper help documentation.what should i do. Please help. (7 Replies)
Discussion started by: ameya_shaligram
7 Replies
Login or Register to Ask a Question