Portál AbcLinuxu, 1. listopadu 2025 16:14
Command: set +v Return Code: 0 Stdout: set +v Stderr: Command: hostname Return Code: 0 Stdout: hostname testaix1set -v
Command: set -v Return Code: 0 Stdout: set -v Stderr: Command: hostname Return Code: 0 Stdout: hostname testaix1Netusi nekdo, jak tento vypis prikazu vypnout? Diky moc.
Command: cat ~/.kshrc;cat ~/.profile;cat /etc/profile;cat /etc/environment Return Code: 0 Stdout: cat ~/.kshrc;cat ~/.profile;cat /etc/profile;cat /etc/envi??????????????????????????????????????????????????????????at /etc/profile;cat /etc/envir <?????????????????????????????onment cat: 0652-050 Cannot open //.kshrc. # @(#) $Revision: 74.2 $ HISTSIZE=800 HISTFILE=.sh_history export HISTSIZE HISTFILE alias ll="ls -la" alias shr="cd /systems/shr/server/oncdbmd1/bin" # Default (example of) super-user's .profile file # Do not put "." in PATH; it is a potential security breach. # Do not put "/usr/local/bin" in PATH; it is a potential security breach. # Example assumes /home/root exists. set +u
Command: cat ~/.kshrc;cat ~/.profile;cat /etc/profile;cat /etc/environment
Return Code: 0
Stdout:
cat ~/.kshrc;cat ~/.profile;cat /etc/profile;cat /etc/envi??????????????????????????????????????????????????????????at /etc/profile;cat /etc/envir <?????????????????????????????onment
cat: 0652-050 Cannot open //.kshrc.
# @(#) $Revision: 74.2 $
HISTSIZE=800
HISTFILE=.sh_history
export HISTSIZE HISTFILE
alias ll="ls -la"
alias shr="cd /systems/shr/server/oncdbmd1/bin"
# Default (example of) super-user's .profile file
# Do not put "." in PATH; it is a potential security breach.
# Do not put "/usr/local/bin" in PATH; it is a potential security breach.
# Example assumes /home/root exists.
set +u
# PATH=/usr/sbin:$PATH:/sbin:/home/root:/opt/perf/bin
PATH=/usr/sbin:$PATH:/sbin:/home/root:/opt/perf/bin:/usr/openv/netbackup/bin:/usr/openv/netbackup/bin/goodies:/usr/openv/volmgr:/usr/openv/volmgr/bin:/opt/dpo/bin
# Be sure that VUE does not invoke tty commands
if [ ! "$VUE" ]; then
# Set up the terminal:
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs
echo
echo "Value of TERM has been set to \"$TERM\". "
export TERM
EDITOR=vi
export EDITOR
fi # if !VUE
# Set up shell environment:
set -u # error if undefined variable.
trap "echo 'logout root'" 0 # what to do on exit.
# Set up shell variables:
PS1="$(whoami).$(hostname):\$PWD# "
MAIL=/var/mail/root
# don't export, so only login shell checks.
export HISTFILE=${HOME}/.sh_history
echo "WARNING: YOU ARE SUPERUSER !!\n"
export EDITOR=vi
PS1="$(whoami).$(hostname):\$PWD# "
HISTSIZE=800
HISTFILE=.sh_history
export HISTSIZE HISTFILE
alias df="df -k"
alias dir="clear;ls -al|pg"
alias shr="cd /systems/shr/server/$(hostname)"
PATH=$PATH:/usr/local/bin
#The following line is added by License Use Management installation
export PATH=$PATH:/var/ifor:/usr/opt/ifor/ls/conf
alias ib2bwas2="cd /websphere/sftw/wps/ib2b/was2"
alias db2bwas2="cd /websphere/sftw/wps/db2b/was2"
#The following line is added by License Use Management installation
export PATH=$PATH:/usr/opt/ifor/ls/os/aix/bin
alias tsmcli="cd /usr/tivoli/tsm/client/ba/bin64"
alias tsmlog="cd /isa/data/tsm/`hostname`"
alias tsmsst="cd /systems/shr/tsm"
#
# The following is required by ITD for root security logging
#
Dir="/var/adm/logs/rootlog"
if [[ ! -d $Dir ]];then
mkdir $Dir
fi
REAL_USER=`who am i | awk '{print $1}'`
WHOas="${REAL_USER}.as.${LOGNAME}"
HISTFILE="$Dir/.hist.${WHOas}"
if [ ! -f $HISTFILE ]; then
printf "\001\001\n\000\000" > $HISTFILE
touch ${HISTFILE}_smit.log ${HISTFILE}_smit.script
chmod 600 ${HISTFILE} ${HISTFILE}_smit.log ${HISTFILE}_smit.script
fi
export HISTFILE
echo "#\n# Begin $WHOas ($(tty)) on $(date +%m-%d-%Y@%T)" >> $HISTFILE
printf "\000\000" >> $HISTFILE
alias smitty='smitty -l "${HISTFILE}_smit.log" -s "${HISTFILE}_smit.script"'
alias smit='smit -l "${HISTFILE}_smit.log" -s "${HISTFILE}_smit.script"'
echo "Logging enabled"
#The following line is added by License Use Management installation
export PATH=$PATH:/opt/LicenseUseManagement/bin
echo "#################################################################################################"
FGRED=`echo "\033[34m"`
FGRED1=`echo "\033[31m"`
NORMAL=`echo "\033[m"`
echo "${FGRED} This LPAR "oncdbmd1" is moved From ONC to RNH ${NORMAL}"
echo "${FGRED} This LPAR "oncdbmd1" running on Frame "Server-8426-42A-SN0643A36" ${NORMAL}"
echo "${FGRED1} "Change Number:-CH22042312" #### "CHANGE DATE :- 10/01/18" !! ${NORMAL}"
echo "##################################################################################################"
# @(#)27 1.20 src/bos/etc/profile/profile, cmdsh, bos510 8/9/94 12:01:38
#
# COMPONENT_NAME: (CMDSH) Shell related commands
################################################################
# System wide profile. All variables set here may be overridden by
# a user's personal .profile file in their $HOME directory. However,
# all commands here will be executed at login regardless.
trap "" 1 2 3
readonly LOGNAME
# Automatic logout, include in export line if uncommented
# TMOUT=120
# The MAILMSG will be printed by the shell every MAILCHECK seconds
# (default 600) if there is mail in the MAIL system mailbox.
MAIL=/usr/spool/mail/$LOGNAME
MAILMSG="[YOU HAVE NEW MAIL]"
# If termdef command returns terminal type (i.e. a non NULL value),
# set TERM to the returned value, else set TERM to default lft.
TERM_DEFAULT=lft
TERM=`termdef`
TERM=${TERM:-$TERM_DEFAULT}
# If LC_MESSAGES is set to "C@lft" and TERM is not set to "lft",
# unset LC_MESSAGES.
if [ "$LC_MESSAGES" = "C@lft" -a "$TERM" != "lft" ]
then
unset LC_MESSAGES
fi
export LOGNAME MAIL MAILMSG TERM
# The following is required by ITD for secondary ID logging
if tty >/dev/null 2>&1; then
export EXTENDED_HISTORY=ON
realUser="`/usr/bin/who am i | awk '{ print $1 }'`"
if [ $realUser != "root" ]; then
toUser=`whoami`
if [ $toUser != "root" ]; then
historyDir="/var/adm/logs/history/$toUser"
HISTFILE=$historyDir/.hist.$realUser.as.$toUser
if [ ! -d $historyDir ]; then
mkdir -p $historyDir
chmod 700 $historyDir > /dev/null 2>&1
fi
if [ ! -f $HISTFILE ]; then
printf "\001\001\n\000\000" > $HISTFILE
touch ${HISTFILE}_smit.log ${HISTFILE}_smit.script
chmod 600 ${HISTFILE} ${HISTFILE}_smit.log ${HISTFILE}_smit.script > /dev/null 2>&1
fi
export HISTFILE
echo "#\n# Begin $WHOas ($(tty)) on $(date +%m-%d-%Y@%T)" >> $HISTFILE
printf "\000\000" >> $HISTFILE
alias smitty='smitty -l "${HISTFILE}_smit.log" -s "${HISTFILE}_smit.script"'
alias smit='smit -l "${HISTFILE}_smit.log" -s "${HISTFILE}_smit.script"'
fi
fi
fi
trap 1 2 3
# Call Secondary Logging
. /etc/profile.d/secondary_logging.sh
# @(#)18 1.22 src/bos/etc/environment/environment, cmdsh, bos510 10/30/00 02:55:55
#
# COMPONENT_NAME: (CMDSH) Shell related commands
#
################################################################
# System wide environment file. This file should only contain
# 1. comment lines which have a # in the first column,
# 2. blank lines, and
# 3. Lines in the form name=value.
#
# WARNING: This file is only for establishing environment variables.
# Execution of commands from this file or any lines other
# than specified above may cause failure of the initialization
# process.
#
# Searching the current directory last is usually a BIG time saver.
# If /usr/ucb is at the beginning of the PATH the BSD version of commands will
# be found.
#
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java131/jre/bin:/usr/java131/bin
TZ=EST5EDT
LANG=en_US
LOCPATH=/usr/lib/nls/loc
NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
LC__FASTMSG=true
# ODM routines use ODMDIR to determine which objects to operate on
# the default is /etc/objrepos - this is where the device objects
# reside, which are required for hardware configuration
ODMDIR=/etc/objrepos
DEFAULT_BROWSER=netscape
ITECONFIGSRV=/etc/IMNSearch
ITECONFIGCL=/etc/IMNSearch/clients
ITE_DOC_SEARCH_INSTANCE=search
GETTOD_ADJ_MONOTONIC=1
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.