DISCLAIMER : Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility.If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.
Modifying /etc/inittab entries without using vi
These are the steps for modifying /etc/inittab without using Vi editor in AIX.
Before editing take a copy the inittab file to a file named inittab.old
cp –p
/etc/inittab /etc/inittab.old
#mkitab
---------->Adds records to the /etc/inittab file.
# mkitab
"xcmd:2:respawn:find / -type f > /dev/null 2>&1"
#lsitab
------------>Lists records in the /etc/inittab file
lsitab xcmd
#chitab Changes
records in the /etc/inittab file.
# chitab
"xcmd:2:once:find / -type f > /dev/null 2>&1"
#rmitab ---> Removes
records from the /etc/inittab file.
# rmitab xcmd
# lsitab xcmd
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.