mxdomainmgr

1. Edit the /etc/opt/mx/config/mx.properties file and add: MX_DEBUG_TRACE=on 2. Verify that the mx daemons are not running: # ps -ef | grep mx [Should not be processes for mxdomainmgr, mxdtf, or mxagent.] 3. If the daemons are running, stop them: # mxstop 4. Run mxinitconfig: # /opt/mx/bin/mxinitconfig -a 5. Capture any output from the mxinitconfig […]

Delete weird files

Note the “-” says that there are no more options (flags) on the commandline. rm -i – —

create a huge file

Prealloc is the way to do it on HP-UX: prealloc test.100mb 102400000 creates a 100MB file.

Remove Rss Feed

From http://www.yoursite.net/feed to http://www.yoursite.net/feed/?cat=-18

Reset GSP

#stty +resetGSP < /dev/GSPdiag1 --> (for reseting the GSP) #stty +queryGSP < /dev/GSPdiag1 ----> (For checking GSP)

Tape drive status.

# mt -f /dev/rmt/0mn status Drive: QUANTUM SuperDLT1 Format: Status: [0] File: 0 Block: 0 When there is no tape loaded in the drive or at least it thinks there is no tape in the drive so until you get the Status line to display more than simply “[0]”

wtmp

The utmp file can be manipulated with the fwtmp command. 1.check the last modification time of the /etc/utmp file ls -l /etc/utmp -rw-r–r– 1 root root 1620 Jun 28 09:22 /etc/utmp 2.convert the binary /etc/utmp file to ascii : /usr/sbin/acct/fwtmp /tmp/utmp.ascii 3.edit the /tmp/utmp.ascii file to remove the old entries Note : the entries are […]

operators

‘-eq’ and ‘=’. They are slightly different: ‘-eq’ is a integer comparison but ‘=’ is a string comparison. Examples: [[ 0 -eq 0000 ]]; echo $? # shows 0 (true) [[ 0 = 0000 ]]; echo $? # shows 1 (false) don’t forget to surround each $var1 with double quotes to prevent null chars. if […]

banner

HOST=”<`hostname |cut -d”.” -f1`>” if [ “$LOGNAME” = “root” ]; then PROMT=”#” else PROMT=”>” fi PS1=’${HOST} ${PWD}${PROMT} ‘ PS2=’${HOST} ${PWD}> ‘ export PS1 PS2 trap 1 2 3 inetd.conf telnet       stream tcp nowait root /usr/lbin/telnetd   telnetd -b /etc/issue PROBLEM This document describes how to set up a message for when users telnet into the system.  […]