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.

getfacl and setfacl – Unix Access Control (acl) Tool

Today’s topic is all about Access List… For Unix and Unix-like system, the usual command to set the file permission is the ‘chmod’ command. However there are instances that we need more flexibility in giving access and control for files and folders. Get it? Access and Control? In this situation, there is a file utility … Continue reading

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

SVM: Determine Free Space on Soft Partition

SVM: Determine Free Space on Soft Partition , we use the metastat -c command… [root@localhost] /work/users> metastat -c d103 d103 p 32GB d100 d100 m 68GB d101 d102 d101 s 68GB c1t2d0s0 d102 s 68GB c1t3d0s0 [root@localhost] /work/users> metastat -p d103 d103 -p d100 -o 32 -b 58720256 -o 127926432 -b 8388608 d100 -m d101 … 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

Replacing a Failed Disk in Solaris Mirror (SVM)

This one is about Solaris Volume Manager and all those meta commands you can think of.. (metadb, metadettach, metattach, metaclear etc)… Yesterday we had to replace a failed disk that belongs to a mirror. The disk is running in a Sparc Solaris 10 box. It’s a 72GB from Fujitsu c1t1d0           Soft Errors: 440 Hard Errors: … 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