login:
, ,
, . ,
CTRL+U, DEL, CTRL-D ( ),
Return, .
.
sunsite:~/$ _
, exit
Ctrl-D .
.
, env.
env #
LOGNAME=moshkow #
HOME=/home/moshkow #
SHELL=/bin/ksh #
MAIL=/usr/mail/moshkow # ,
#
PS1=host1:$PWD/$ #
PATH=:/usr/local/bin:/bin:/usr/bin:/usr/X11/bin:/usr/informix/bin:
# ,
TERM=vt100 # ,
#
,
:
Imya_Pereemennoj=znachenie export Imya_Pereemennoj
abc=Kalosha export abc
echo
:
echo $abc
/etc/profile
".profile" (
) -
.
env
##### .profile ##################################
#
PATH=:$HOME/bin:$PATH:/usr/sbin:/usr/local/bin:/usr/informix/bin
# ksh
EDITOR=emacs
export PATH EDITOR
LC_CTYPE=iso_8859_1 export LC_CTYPE # - ""
#
# =BackSpace =Ctrl-U
# =Ctrl-C "_"=Ctrl-|
stty erase "^h" echoe kill "^u" quit "^|" intr "^c"
stty cs8 -parenb -istrip
# 8- , noparity, 8-
#
case "$0" in #
*ksh) # Korn Shell
#
alias __A=`echo "\020"` # ^P = 020
alias __B=`echo "\016"` # ^N
alias __C=`echo "\006"` # ^F
alias __D=`echo "\002"` # ^B
# pwd
PS1=$LOGNAME@`uname -n`:'$PWD/$ ' export PS1
;;
*bash) # bash' host:pwd
PS1='\h:\w/\$ ' export PS1
ulimit -Sc 0 # core
;;
*sh) # posix-shell HP-UX
PATH=$PATH:/usr/sbin
PS1=$LOGNAME@`uname -n`:'$PWD/$ '
HISTFILE=$HOME/.sh_history
ENV=$HOME/.kshrc
export PATH ENV HISTFILE PS1
# .kshrc set -o emacs
;;
esac
# : _'_
# - _`_ - , .
Korn-Shell
/bin/ksh, EDITOR=emacs,
Ctrl-:
^P / ^N PREVIOUS / NEXT
^F / ^B FORWARD / BACK
^A / ^E /
^D / ^K /
^Y
^R
ESC ESC
ESC =
bash,
TAB
, ,
root ,
shutdown ( )
cd /
shutdown -yh 0 # HPUX
shutdown -h now # Tru64, FreeBSD, Linux
shutdown -y -g0 -i0 # Solaris, SVR4
.
reboot # Linux
shutdown -y -r 0 # HPUX
shutdown -y -g0 -i6 # Solaris, SVR4
sysadm.
Unix ( , BSD, SunOS,
Linux, HP-UX) shutdown .
:
shutdown -y -h now #
shutdown -y -r 60 # 60
Last-modified: Sun, 07 Aug 2005 11:35:35 GMT