
Blogs
Blogs
Matching:
ksh
X

Display: |
AIXでも出来る!、コマンドの入力補完 Community Blog
bashのコマンド入力補完機能(TABキー)が便利で羨ましく思っていましたが、 知りませんでした、「 AIX (ksh) でも出来る! 」のですね。 viモード(set -o vi)の場合、 ① 補完 : Esc \ ② 候補 : Esc
from Blog: Objrepos
|
|
testping Community Blog
testping I have been using this a lot today while putting various updates onto HMCs and waiting for them to do the reboot and update. It is useful, so I thought that I'd post it. Every 10 seconds, it pings the target. If the host is...
|
|
Cutting and Pasting in the Unix and Linux shells Community Blog
Cutting and Pasting in the Unix and Linux shells Cutting There are lots of ways to "cut" fields out of a file For example to find the numeric GIDs in use Here is the top of /etc/group system:!:0:root,pconsole,esaadmin staff:!:1:ipsec,esa...
Modified on by gazuk
|
|
Special Parameters in the shell. Community Blog
Special Parameters in the shell. There are a number of parameters which the common shells ( ksh , bash etc) treat in a special way. This is not an exhaustive look at them, but may help out in many cases .... When a shell script (or, indeed a shell) is...
Modified on by gazuk
|
|
Scripting File System Creations on AIX
This post is about a script I wrote for building filesystems on AIX. It automates the process of creating logical volumes, filesystems, mounting them, setting user/group owners, and setting permissions. It can be used to create large numbers of...
Modified on by brian_s
|
|
HMC one liner script to generate HTML report of Systems / LPAR's
Here is a quick one liner script you can copy/paste in to your HMC SSH terminal that will generate a HTML report showing all of the managed systems and LPAR's attached to the HMC and their current state. You could easily change/extend the script to...
Modified on by brian_s
|
|
Improving the AIX Shell History
The Shell History file has saved my bacon many, many times. So many times I have used it to figure out what happened with a server after some kind of problem, or to find a command I had run before that I couldn't remember. The Shell...
|
|
One Liner Script to Show Last Time a Users Password was Changed on AIX
AIX stores the last time a user changed their password as a "epoch" time stamp, or in other words as the number of seconds since 1970. For example, if you want to see when the last time root changed their password you can type: # lsuser...
Modified on by brian_s
|
|
Improved script to trace back AIX hdisks to SVC Volumes
Last month an article I wrote on Tracing IBM AIX hdisks back to IBM System Storage SAN Volume Controller (SVC) volumes was published on IBM developerWorks. The article included a script designed...
|
|
New Article: Boost Your Productivity with Single-Line AIX Shell Scripts
Check out my latest article on Power IT Pro, "Boost Your Productivity with Single-Line AIX Shell Scripts": http://poweritpro.com/aix/boost-your-productivity-single-line-aix-shell-scripts
|
|
Handy bash functions : history grep Community Blog
Another handy function my .bashrc has defined is the following: usually when searching for an old hostname or command on my history log, I have to hit the history | grep <hostname/search pattern> line. The natural solution for this was to create a bash...
from Blog: Systems administrator stuff
|
|
List negation Community Blog
I'm pretty sure there's a lot of ways to negate a search/listing. So any suggestion is appreciated. I was looking inside a folder for any filename/directory which didn't include the string foo . My approach was to pipe the ls output to grep . $ ls...
from Blog: Systems administrator stuff
Modified on by Emerson Posadas
|
|
Detecting and Fixing Underlying Mount Point Permission Errors on AIX
Every Filesystem in AIX has two sets of permissions: The permissions on the mount point directory, and the permissions on the mounted filesystem. Here is an example: # ls -ald /app5 drwxr-xr-x 2 bin &n...
Modified on by brian_s
|
|
Update: Visualize the Physical Layout of an AIX Volume Group
This is an update to my previous post on Visualizing the Physical Layout of an AIX Volume Group (see the previous post for full details). Sebastian posted a comment suggesting an option to...
Modified on by brian_s
|
|
Visualize the Physical Layout of an AIX Volume Group
9/23/13 Update - See this updated verison of the script as well. Here is a script I've written to visualize the physical layout of an AIX volume group. The script visually shows the location of every...
Modified on by brian_s
|
|
How to determine why your AIX oslevel is downlevel (and a script to help!)
To determine the oslevel on AIX, you can run the "oslevel -s" command. However, what "oslevel -s" reports doesn't always show the entire picture. The OS level reported will be the lowest level of any installed...
Modified on by brian_s
|
|
Linux/UNIX Shell Scripting: Why does "echo" remove spaces and newlines sometimes?
One common problem I have personally made and seen others make while shell scripting is trying to set a variable to be the contents of a file or the output of a multiline command, and then trying to echo the variable to process it further with grep, awk, a...
Modified on by brian_s
|
|
How to verify you have a recent Mksysb Backup for every NIM client
The last thing you want to happen is to realize you don't have a mksysb backup of a server when you really need it, or realize the only mksysb backup you have is very out of date. This post will show you one method to verify you have recent...
Modified on by brian_s
|
|
Finding command names on AIX using the Korn Shell
By far my favorite shell is the Bash shell. It has all kinds of awesome features including tab filename completion and tab command completion. Unfortunately Bash is not included with AIX by default, so a lot of the time we have to make the best of...
Modified on by brian_s
|
|
Shell scripting in depth: Understanding return codes, the test command, and the if statement
This posting is all about return codes, the test command, and the if statement. I also did a video that covers this information as well: https://www.youtube.com/watch?v=Gm29LAOI6rk Return Codes : Every command you run in...
Modified on by brian_s
|
|
Shell scripting in depth: Understanding return codes, the test command, and the if statement
This posting is all about return codes, the test command, and the if statement. Here is a video covering this material as well: Return Codes : Every command you run in a Linux/UNIX environment has a "return code" when the command completes. ...
|
|
Space Savers on the command line
AnthonyEnglish
Tags:
pipe
slash
shell
grep
shortcut
korn
trailing_slash
unix
pg
aix
spacebar
basename
space
command
script
ksh
more
dirname
geek_party_trick
12,900 Views
SIMPLE SHORTCUTS System administrators are always looking for shortcuts, especially for those tasks and commands which we do all the time. Simple shortcuts really can save time when you're in a hurry. One of these is so obvious that people often overlook it:...
from Blog: AIX Down Under
|