View previous topic :: View next topic |
Author |
Message |
wokick Tux's lil' helper

Joined: 27 Sep 2004 Posts: 97
|
Posted: Thu Dec 22, 2005 1:09 am Post subject: /etc/hosts equilvalence |
|
|
Is there any file functioning like /etc/hosts file, but you can put it under your home directory.
I have serveral machines without domainname, and I hate to type the IP addresses everytime when I need to access them. Unfortunately, I have no priviledge to edit /etc/hosts file.
Thank you! |
|
Back to top |
|
 |
pjp Administrator


Joined: 16 Apr 2002 Posts: 20589
|
Posted: Thu Dec 22, 2005 3:48 am Post subject: |
|
|
I'm not aware of any such file, but you could probably get by with a few scripts or shell variables. For example, in ~/.bashrc, you could add some variables like this: Code: | BOX1=192.168.1.37
BOX2=192.168.1.38 | Then, you could use commands like this: Code: | ping $BOX1
ping $BOX2 |
Depending on the command, a script or alias may be more useful. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|