Archive for the ‘Operating Systems’ Category
Monday, October 7th, 2013
$CDPATH=:..:~:~/projects
Set CDPATH to ease navigation
CDPATH tells the cd command to look in this colon-separated list of directories for your destination. My preferred order are
1) the current directory, specified by the empty string between the = and the first colon,
Continue Reading…
Tags: CDPATH, ease, env, navigation, profile
Posted in AIX, Linux, Solaris, VIO | No Comments »
Tuesday, July 30th, 2013
Hello every body,
i have below a nice script to tell year the year is Leap or NOT.just copy the following line into a new file name it leap.ksh
# Shell program to read any year and find whether leap year or not
# -----------------------------------------------
# Copyright (c) 2005 nixCraft project
# This script is licensed under GNU GPL version 2.0 or above
# -------------------------------------------------------------------------
# This script is part of nixCraft shell script collection (NSSC)
# Visit http://bash.cyberciti.biz/ for more information.
# -------------------------------------------------------------------------
# store year
yy=0
isleap="false"
#echo -n "Enter year (yyyy) : "
#read yy
yy=$1
# find out if it is a leap year or not
if [ $((yy % 4)) -ne 0 ] ; then
: # not a leap year : means do nothing and use old value of isleap
elif [ $((yy % 400)) -eq 0 ] ; then
# yes, it's a leap year
isleap="true"
elif [ $((yy % 100)) -eq 0 ] ; then
: # not a leap year do nothing and use old value of isleap
else
# it is a leap year
isleap="true"
fi
if [ "$isleap" == "true" ];
then
echo "YES"
else
echo "NOT"
fi
Continue Reading…
Tags: leap, script, shell
Posted in Shell Script | No Comments »
Tuesday, July 30th, 2013
of course each time you login to the server you see the following welcome Message :
*******************************************************************************
* *
* *
* Welcome to AIX Version 6.1! *
* *
* *
* Please see the README file in /usr/lpp/bos for information pertinent to *
* this release of the AIX Operating System. *
* *
* *
*******************************************************************************
Continue Reading…
Tags: AIX, message, motd, welcome
Posted in AIX | No Comments »
Tuesday, July 30th, 2013
if you use FTP protocol on your server which is not secure channel (Recommend to use SFTP Protocol because it’s encrypted channel), so for security reasons my be you need to restrict this protocol for only users who used it.
Continue Reading…
Tags: AIX, allow, deny, ftp, ftpaccess.ctl, ftpusers, grouponly, login, read, restict, useronly, write
Posted in AIX | No Comments »
Sunday, July 28th, 2013
if you are a Shell Scripting Developer and all the time deveolpe Shell Scripts, if course you need to make your System Ring after finished the script or when it needs data from the user.
try this code on AIX
Continue Reading…
Tags: AIX, bell, linux, ring, script, shell
Posted in AIX, Linux, Shell Script | No Comments »
Wednesday, July 24th, 2013
Nice way to separate between your terminals by it’s name not IP Address.
the default way, when you open SSH Terminal using Putty (or any other Communication program like kitty) The IP Address of the server
will be shown on the top of the terminal like the following Image:
Continue Reading…
Tags: kitty, name, putty, Terminal
Posted in Shell Script | No Comments »
Wednesday, July 17th, 2013
if you use VIO Server and need to share CD or TAP UNIT or Disks from VIO to LPAR, and after finishing from Mapping Configuration and try to run “cfgmgr on the LPAR,
you may see the following Error : Continue Reading…
Tags: 0514-621, AIX, CD, cfgmgr, devices, disk, TAP, v-scsi, vdevice, VIO
Posted in AIX | No Comments »
Thursday, July 11th, 2013
some time you get many errors on Error Report that told you there is a core dump file and you don’t know where is the problem??
and if you try to read this file you will see a binary codes appear to you and it’s useless information like this : Continue Reading…
Tags: ;querypv, core, dump
Posted in AIX | No Comments »
Thursday, July 11th, 2013
– If you tries to restore mksysb with mirrored and unmirrored LV’s they might the following error:
0516-404 allocp: This system cannot fulfill the allocation request.
There are not enough free partitions or not enough physical volumes
to keep strictness and satisfy allocation requests. The command
should be retried with different allocation characteristics.
0516-822 mklv: Unable to create logical volume.
BOS Install: Could not create the hd5 logical volume.
ID# OPTION
1 Continue
2 Perform System Maintenance and Then Continue
Enter ID number:
Continue Reading…
Tags: 0516, 0516-404, 0516-822, 404, 822, alocp, lpar, mklv, mksysb, restore, VIO
Posted in AIX | No Comments »