Professional Documents
Culture Documents
Techtip: Aix Habits To Embrace and Others To Use With Caution
Techtip: Aix Habits To Embrace and Others To Use With Caution
HOME PUBLICATIONS NEWS BUYER'S GUIDE EVENTS FORUMS VIDEOS POPULAR ARCHIVE BOOKSTORE
Remember me Forgot
FOLLOW US
login? | Register
Analysis App Software Career Case Studies Database Internet Networking Op Systems Product Reviews Programming Security System Admin TechTips
0 Comments
We all get into routine habits in our jobs. But does that mean we're doing things the best
way? Support MC Press - Visit Our Sponsors
Over many years of administrating AIX systems, I developed some good and some not-so-good
habits. I have managed to get rid of my bad habits. In this article, I will share with you from my own
experience what habits I now avoid and what habits I embrace, or to put it another way, good habits
to have.
The Good
Smit
When learning AIX, I encourage you to use smit to perform your admin tasks. Why? Because smit
will generate logs of the commands executed. This is good for two reasons:
It enables you review and thus learn the syntax of the command(s) being executed is. Even
if you're a seasoned AIX admin, it's good to review and keep up to date on command
usage.
It provides an audit log of commands executed via smit so you can review what commands
were carried out in the past that may have had an adverse effect on a running AIX system.
Forums Sponsor
Man Pages
Read those man pages if you aren't familiar with a command you're about to execute. AIX
provides excellent man page content with plenty of examples. This is another good source of
learning AIX.
POPULAR FORUMS
bootlist -m normal -o
rm -R *
1 de 3 14/09/2016 11:38
TechTip: AIX Habits to Embrace and Others to Use with Caution | Prog... http://www.mcpressonline.com/programming/techtip-aix-habits-to-emb...
chmod <owner> -R *
Hmmm. The asterisk (*) will expand when executed in the shell, and the results will not be what you
expect, as it will start from the top of the file system tree you are working on. So always quote an
asterisk ('*').
crontab -e
Notice the next key along on the keyboard is the r, which in the crontab work means to remove the
current crontab file. Oops.
When editing, be sure to hit the e (edit) key to go into edit mode or the crontab entries. If you hit
the r (remove) key on the keyboard, it will remove all your crontab entries. Ouch! In fact, why not do
a backup first? All you need to do is redirect a listing on crontab to a file, like so:
When inserting a one-time event into crontab (such as an overnight reboot or the stopping of a
service), be sure to remove it or comment it out after the event at the earliest opportunity. If you
don't, it will come back to haunt you by executing the command again when the date schedule has
been satisfied, like a year later!
Be Good
Those are some of the good and not-so-good habits I picked up over the years. The bad habits have taught me to check, check, and check again before committing
those commands.
David Tansley has over 10 years experience as a pSeries AIX administrator. When not working, he enjoys playing badminton and
watching Formula 1. But his favorite social activity is touring on his GSA motorbike with his wife and fellow riders.
David Tansley Read More >>
2 de 3 14/09/2016 11:38
TechTip: AIX Habits to Embrace and Others to Use with Caution | Prog... http://www.mcpressonline.com/programming/techtip-aix-habits-to-emb...
MC PRESS ONLINE
RPG Academy: Write Better Code Naming Variables Open Source on IBM i Gets Hot Hot Hot | Analysis of
Guidelines, Part 1 | RPG News Events
Thanks, Rafael! I'm also a BIG fan of prefixes (for What did I miss? Community, please add
Everything!) Just a different preference: Underscores are a minor additional points, links, conversations.
pain to type, take up valuable horizontal space (ie,
Budget Dollars Can Be Skin Deep | Commentary Practical RPG: Managing Copy Files | RPG
"Until the user experience has been modernized, Joe, excellent article and overall a good
then they'll always think that the technology is second-rate." - explanation.Just for a different perspective, I use a slightly
Well said, and absolutely true! different technique with my copy members. At the top of
back to top
User Rating: /0
Poor Best
Related Articles:
MC-STORE.COM
Home | Publications | News | Events | Buyer's Guide | Forums | Videos | Popular | Archive | Bookstore
Copyright 2016 MC Press Online, LLC | Privacy Policy | Search | RSS | FAQ | Contact Us | Write For Us | Advertise | Site Map
3 de 3 14/09/2016 11:38