
Postuar mė parė nga
qoska
Solaris eshte nga te paktet versione te UNIX te mbetura (komerciale) qe ploteson shume nga standartet e UNIX(r) si Unix'98, POSIX e disa te tjera se fundi u shtua dhe Trusted Computing dhe po behet goxha interesante sidomos nese i percjell keto ndryshime tek varianti i tij open-source opensolaris i cili po shqyrtohet nga Google(r) per te zevendesuar serverat e tij te pafund, aktualisht Linux/BSD-OS.
solaris eshte nr.1 me pelqen por po ju jap .login dhe .cshrc shell sources, nya sme duhen me kam lene zanatin. 453 dite uptime. figura me poshte!
Kodi:
# .cshrc file for C shell for students
setenv LD_LIBRARY_PATH "/opt/SUNWspro/SC2.0.1:$OPENWINHOME/lib"
setenv MANPATH "/opt/SUNWspro/man:/usr/lang/man:/usr/man:/usr/local/man:usr/openwin/man"
setenv H_SPELL "/dev/null"
set filec
set cdpath=( ~ )
set lpath = ()
set ignoreeof
set notify
set path = ($lpath /usr/local/bin /opt/SUNWspro/bin /usr/ucb /bin /usr/bin )
set path = ($path /usr/openwin/bin/xview /usr/openwin/bin )
set path = ($path ${HOME}/bin /usr/ccs/bin .)
set path = ($path /opt/matlab5/bin)
set path = ($path /usr/sbin)
set path = ($path ~/bin)
set path = ($path ~/lib)
set path = ($path ~/share)
set path = ($path ~/etc)
set path = ($path ~/scripts)
set path = ($path /usr/local)
set path = ($path /usr/local/samba)
set path = ($path /usr/local/samba/bin)
set path = ($path /usr/sbin)
set path = ($path /sbin)
# kernel compiled tmp
set path = ($path ~/ctmp)
### tmp
set TMPDIR = (~/tmp)
set TMP = (~/tmp)
#dispkay prompt
alias setprompt 'set prompt="${cwd}% "'
setprompt
alias cd 'chdir \!* && setprompt'
setenv OPENWINHOME /usr/openwin
setenv VISUAL pico
setenv EDITOR pico
alias cls 'clear'
alias l ls -F
alias ls ls -F
alias ll 'ls -l'
alias cp 'cp -i'
alias mv 'mv -i'
alias dir 'ls -al'
alias rm 'rm -i'
alias mail Mail
alias man 'man -F '
alias df 'df -F ufs'
#make sure every file created gets 700 permission
umask 077
limit coredumpsize 0
setenv EXPERT 0
# avoid stupid tlak/ntalk messages
mesg n
setenv filec
set history=100 savehist=200
Kodi:
# .login file for students
# trick not to display motd every time to work with telnet
set files=(`ls -t /etc/motd ~/.motd_date_control_file`)
if ( $files[1] == /etc/motd ) then
cat /etc/motd
touch ~/.motd_date_control_file
endif
unset files
clear
echo " "
echo " "
echo -n " SunOS 5.9 - Machine was *started* on: "
who -b | awk '{print $4,$5,$6}'
echo -n " Machine has been *up* and *running* for: "
uptime | awk '{print $3,$4}'
echo " "
#XWindow trick for ssh and tenet
echo -n " X-display now: "
who am i | awk '{print $6}' | sed 's/(//g' | sed 's/)//g'
setenv DISPLAY `who am i | awk '{print $6}' | tr -d "()"`:0.0
echo " "
echo -n " -> You were here (ago) on: "
last YOURNAME |grep "(" |head -1 | awk '{print $4 ", " $5 " " $6 " on " $7 " [:+:]\n -> You were : " $10 " hrs/minutes logged in\n -> You Last Logged from: " $3 " host [:: ring a bell? ::]"'}
echo -n " -> Current Nr. Users logged in is: "
who | wc -l | sed 's/ //g'
echo " "
echo -n " -> date & time now is: "
date
echo " "
echo " zdravo! kako je sam?"
echo " "
Krijoni Kontakt