Category Archives: Commands
Used Another ‘For… DO’ Loop
The last post, was used to chmod a list of home directory. I used another application for that ‘for..do’ loop again… it’s climbing my favorite script command list.. second only to ‘while…do’.. for X in `ls -last | grep 2006 | awk ‘{print $9}’` do rm -rf $x done bye bye 2006 directories!
About the /proc and -xdev parameter for ‘find’
/proc is a pseudo-filesystem used to access process information from the kernel. It doesn’t use any storage space and uses little memory. On Linux, you can sometimes make modifications to the running kernel by modifying “files” in /proc. If / is full, run a command similar to the following to sort all files in the … Continue reading
All About Virtual Interface in Solaris
Solaris (and other OS) allows the use of Virtual IP. Virtual interface or logical interface allows an Operating system with only one (1) network device to have multiple numbers of IP address. The Problem Got a page today, just now that one of our managed server went down. It’s a ping/connectivity page. Logged in to … Continue reading
UNIX Tip: Backspace Key Does Not Work?!?
Here’s a common problem that our users complains about: The Problem When they telnet or ssh or connect to a remote host, the backspace key doesn’t seem to work. When pressed, all it shows are caret characters but it does not erase. The Solution Here’s one way of solving it… Type in: stty erase Then … Continue reading
Less is More
In a Linux system (and in Solaris 5.8, 5.9, 10, Solaris in general apparently), there are two (identical? opposite?) commands that are very easy enough to remember. How is that? Well, first the command names speak for itself or do exactly what it is called. What are those commands? Well, they are: more and and … Continue reading
View Network Traffic From Solaris Command Line
A request from a colleague was to check if there are traffic coming from a specific host to the local host. Both are running Solaris Unix, one is an Ultra5 (pretty old) and a Sparc Ultra 250, still old. specific interface There are many commands used by many UNIX admins to monitor network traffic going … Continue reading
Demystifying VMSTAT
Vmstat, or virtual memory statistics, is one of the useful UNIX command an administrator can (always) use to check the performance of a server. This is specially useful to determine how a particular UNIX box is doing during it’s peak usage time. It shows information about various system resources and their related performance problems. An … Continue reading