≡ Menu

command line interface

UNIX Korn Shell Scripting Tutorial / Guide

Korn shell (ksh), a command-line interface for Unix. The main advantage of ksh over the traditional Unix shell is in its use as a programming language. Since its conception, several features were gradually added, while maintaining strong backwards compatibility with the Bourne shell.

IBM has published Korn shell scripting - A beginner's guide:

Korn shell scripting can save you a lot of time and make your job so much easier. It can seem intimidating at first, but remember to always start out simple and build upon each and every script. Always follow the same steps: build your script header, define your variables, and error check your work. You just might find yourself trying to write a script for everything you do.

Korn shell scripting is something all UNIX users should learn how to use. Shell scripting provides you with the ability to automate many tasks and can save you a great deal of time. It may seem daunting at first, but with the right instruction you can become highly skilled in it. This article will teach you to write your own Korn shells scripts.

Mastering shell prompt can save tons of time. From the article:

The way you interface with a computer is changing constantly. Operating systems that once started as a command line-only interface have moved to a graphical front end. But moving away from what made the operating system great isn't always a step in the right direction. The IBM® AIX® operating system has kept to what's important: stability, functionality, robustness. And it has done it by keeping a strong command-line interface (CLI). If you never learned to use the CLI or need a refresher on its basics, read on.

After reading this article, you should now be able to use the Korn shell in ways you may not have known before. Mastering the command line can simplify your work and help you better understand how to make the shell and command line work for you rather than you working harder for it.

Intelligent Platform Management Interface (IPMI) is a hardware level interface specification that defines a common, abstracted, message-based interface to platform monitoring and control functions. Both IPMI and KVM over IP can be used in emergency situations.
[click to continue…]

XEN Server Status Monitoring Command Cheat Sheet

The xm command is the main command line interface for managing Xen guest domains. The program can be used to create, pause, and shutdown domains. It can also be used to list current domains, enable or pin VCPUs, and attach or detach virtual block devices.

Please note that before running any one of the following command you must run xend ( Xen control daemon aka service) and must be run as privileged user. Running xm command as non root will return an error.

I hope following XEN status monitoring cheat sheet will save your time.
[click to continue…]

So how do you find out how fast is your hard disk under Linux? Is it running at SATA I (150 MB/s) or SATA II (300 MB/s) speed without opening computer case or chassis?
[click to continue…]

I use Google Calendar exclusively. However to access this product you need to use a web browser. There is nice program called gcalcli (Google Calendar Command Line Interface) which allows to access Google Calendar from bash shell. Now I can see an agenda using a specified start/end time and date from a shell prompt over ssh session :D

gcalcli is a Python application that allows you to access you Google Calendar from a command line. It's easy to get your agenda, search for events, and quickly add new events. Additionally gcalcli can be used as a reminder service to execute any application you want.

Current Features

  1. List your calendars
  2. Show an agenda using a specified start/end time and date
  3. Search for calendar events
  4. "Quick add" new calendar events to your default calendar
  5. Run as a cron job and execute a command for reminders
  6. Work against specific calendars (default, owner, read-only)
  7. Color support
  8. unicode support

Download Google Calendar Command Line Interface

=> Visit official project page here

Generally, I need to switch my Gnome screen size to 800x600 to watch TV via TV-Tunner card as my card supports max 800x600 resolution. For rest of my work I prefer to use 1024x768 pixels. You can create a shortcuts on the desktop to resize screen quickly:
[click to continue…]