blog.jj5.net (2003 to 2005)

Linux networking command line tools

Sat May 22 07:24:00 UTC+1000 2004

Categories:

A few notes on networking command line tools (thx Shaun!)

John.

> - Ca you list some command line utilities (not how to use them, I'll
> figure that out) that I care about, like I care about net.exe,
> ipconfig.exe, nbtstat.exe and arp.exe on windows..

ifconfig
nmblookup -S fileserver
arp

> >net.exec I can't help you with since I'm not sure which functionality
> >of it you're looking for.
>
> Specifically, I was thinking of 'net config workstation'. I.e. just
> who I'm logged in as (which is pretty much redundant) and the computer
> name (and DNS suffix).

hostname
hostname -d

The hostname is set during system boot, to change it permanently there is probably a GUI somewhere otherwise you can change it manually in /etc/sysconfig/network

> ifconfig and arp just spit "bash: arp: command not found" errors at
> me. It's either a path, permissions, or installation problem.

I think you're missing /sbin and /usr/sbin in your path, presuming you're using bash (if you're not then you probably should be) the something like:

export PATH=$PATH:/sbin:/usr/sbin

should do the trick. /sbin and /usr/sbin typically contain system administration programs, they're not normally a part of every user's path.

>  I did select
> 'Everything' when I did the installation.. I don't know the standard
> paths for say a 'c:\winnt\system32' equiv in linux. I'm not sure how
> to view my environment variables either (i.e. echo %path%)..

Just:

echo $PATH


Copyright © 2003-2005 John Elliot