как сократить имя хоста?

0 views
Skip to first unread message

czech

unread,
Jan 27, 2009, 12:26:00 AM1/27/09
to Linux OS
что нужно и где прописать чтобы не набирать постоянно
host...@serv.net.ru, указывая только hostname?

SpxnezzaR

unread,
Jan 31, 2009, 5:59:27 PM1/31/09
to Linu...@googlegroups.com
Эммм.... а контекст набора какой?

27 января 2009 г. 8:26 пользователь czech <boni...@rambler.ru> написал:

Night Nord

unread,
Jan 31, 2009, 6:14:47 PM1/31/09
to Linu...@googlegroups.com

ммм _hostname_@ не user? или может hostname.serv.net.ru?

если второе - domain или search в resolv.conf. Курите man resolv.conf


27 января 2009 г. 8:26 пользователь czech <boni...@rambler.ru> написал:
что нужно и где прописать чтобы не набирать постоянно
host...@serv.net.ru, указывая только hostname?

SpxnezzaR

unread,
Jan 31, 2009, 7:29:07 PM1/31/09
to Linu...@googlegroups.com
NN: я тоже не понял что он имелл ввиду, со вторым соглашусь, если имелось ввиду первое, то видимо это промт в баше, который задается в .bashrc переменной PS

1 февраля 2009 г. 2:14 пользователь Night Nord <nigh...@gmail.com> написал:

Night Nord

unread,
Feb 1, 2009, 6:17:22 AM2/1/09
to Linu...@googlegroups.com

PS1 вроде...

Да, ман баша говорит, что PS1

PS1 The value of this parameter is expanded (see PROMPTING below) and used as the primary prompt string. The default value is ``\s-\v\$ ''.

PS2 The value of this parameter is expanded as with PS1 and used as the secondary prompt string. The default is ``> ''.

PS3 The value of this parameter is used as the prompt for the select command (see SHELL GRAMMAR above).

PS4 The value of this parameter is expanded as with PS1 and the value is printed before each command bash displays during an execution trace. The first character of PS4 is repli‐ cated multiple times, as necessary, to indicate multiple levels of indirection. The default is ``+ ''. 


1 февраля 2009 г. 3:29 пользователь SpxnezzaR <spxn...@gmail.com> написал:



--
Night Nord

ZloyRus

unread,
Aug 24, 2011, 12:43:23 PM8/24/11
to Linu...@googlegroups.com
/etc/hosts
к примеру
1.2.3.4  test test.doman.com

ммм...не оно?

Максим Дресвянкин

unread,
Aug 24, 2011, 1:16:10 PM8/24/11
to linu...@googlegroups.com
оно

24 августа 2011 г. 19:43 пользователь ZloyRus <ma...@intobservatory.ru> написал:
к примеру

Reply all
Reply to author
Forward
0 new messages