Category Archives: Commands
KSH Script Basics | Special Shell Variables
Just deleted tons of stale, unsused user accounts. Here are some KSH shell basics and special shell variable. I need to Google them up myself to get reminded that ‘$?’ is the output variable for script execution. That is, it’s 0 for successful execution and 1 if there is any error.
Veritas Volume Manager VxVM Basics Commands Cheats
Veritas Volume Manager VxVM Basics Commands Cheats.. The authority site for this topic, the VXVM on VXFS, if you do a Google search for any tutorial or command cheat sheet is Cuddletech. I want to post… say, borrowing, the content of that page to this post for my own personal reference… Love your own page … Continue reading
Setting Search $PATH csh
Another quikie copy/paste kind of thingy… You may set your search path automatically each time you log in, by placing the appropriate “set path” command in your “.login” file. (To learn more about the .login file, type “help dotlogin”.) Here is a sample of a command line that you might put in your .login file … Continue reading
Top equivalent for AIX – Topas, Only Better
Top equivalent for AIX – Topas, Only Better… That’s what I searched when I got a ticket from one of the AIX boxes here complaining about CPU being 99% used up. Of course, you can use vmstat with interval, but for those sysadmin folks who are use to using Top, its still more comfortable using … Continue reading
Do Not Prompt Password for SUDO: NoPasswd
Do Not Prompt Password for SUDO: NoPasswd, here’s a quikie, quikie post… How do you setup a sudo for a user without prompting the user for his password? RTFM! Simply add NOPASSWD before the list of commands…again NOPASSWD goes before the list of commands, after your username and host list. The man page has this … Continue reading
pwd – Most Used UNIX Command
pwd is probably the most widely used UNIX (or Unix-like) command! ls (el-es) could also be the most used but we will be talking about pwd here, so let’s say that ‘pwd’ is the most widely used shall we? What is pwd? pwd, when executed at the shell (prompt) will print out the current working … Continue reading
Restoring File From UFSdump Backup
Here’s what we did today on one of our Solaris box that is worth mentioning on this cool super system administrator’s blog ‘o mine! (Don’t you find it cool that SysAds are so funny?!) Anyhoo, today we re-jumpstarted a laboratory box because the ‘owner’ of it wants it back. Since we pretty much messed it … Continue reading