User Tools

Site Tools


Unix Shells and Tools


One of the boxes I've used is a SunOS 5.10 system with 8 Quad-core CPUs and 128GB of RAM. SunOS 5.10 is the base OS for Solaris 10 and Google as always yields some good information.

Some general UNIX information for monitoring your processes is 20 Linux System Monitoring Tools. Most of the tools mentioned worked on Solaris 10 (the article is for Linux) and with some slight adjustment and review of the man pages (try “man man” on the command line if you don't know what a man page is) can provide some helpful insight.


The default shell on Linux systems. It is installed and available on almost every system I've used and was installable on the remainder. Modern with tab completion and other features; with a little bit of prep it is very user friendly. Many resources exist on the internet to help with this popular shell.


  • Home Page – The homepage for bash, it is a part of the GNU system
  • Advanced Scripting – The advanced bash scripting guide, assumes no knowledge of shell scripting and works you towards an advanced level.
  • Intro to Alias – A short introduction to using aliases and configuring them in .bashrc.


For an overview of the default shell on Atlas 3 see: For shell programming the korn shell is one of the most used and flexible.

* This section needs to be expanded considerably.


A shell with C like commands and syntax. Was popular in the 70's. The lack of true C versitility and functionality leave this shell lacking for anything of any order of complexity. If you use it you are on your own, good luck! See if you still wish to use this shell.


An extremely versatile but difficult to learn text editor. Vi is available on almost every UNIX system in existence. Vi improved (vim) is a more modern and updated version of vi with syntax highlighting, etc. A big thank you to Bram Moolenaar, author of Vim.


  • spf13-vim – A Vim distribution that includes a lot of plugins and other tools and settings. My recommendation is use it and love it.
  • Vim Cookbook – a page with some very useful vi/vim shortcuts and commands
  • Vim eBook (PDF) – A decent pdf copy of a free/open source vim book
  • A Byte of Vim – a fairly comprehensive book on vi/vim. Got it from Swaroop, a good site/blog with other interesting information.
  • gVim Save Settings – self explainatory
  • vimrc Example – a decent one with comments
  • Vi Cheatsheet – not the best but a good start
  • Copy/Paste w/ Vi – a short intro to copying (yanking) and pasting within Vi

Regular Expressions

These are a Unix staple and if you do any programming in almost any language you will touch them at some point. They are heavily used in Perl and Shell programming. Python and Java both have libraries for using them.


  • Basic Info – the wikipedia page giving the history and some basic usage
  • – provides a tutorial and examples as well as recommends books, etc.
  • Mini-guide – a short and maybe useful tutorial on regular expressions


1. To run commands from command line that have spaces use print 0, i.e.:

find ~ -type f -print0 2>/dev/null | xargs -0 grep -l Tkinter >| /tmp/tk

2. dos2unix. Occasionally on Solaris moving files either from Windows to Unix or from one folder to another causes the programs to stop running from the command line. An error such as “: bad interpreter: No such file or directory” is common. This usally means there is a problem with the end of line terminators in the file. The first thing to do is run dos2unix. This will often fix the problem. However, if dos2unix doesn't resolve the issue try:

perl -p -i -e 's/^M//' <file name here>

The ^M is achieved by typing Ctrl-V Ctrl-M. It is a tip from and has worked when dos2unix did not.

lang/unix/start.txt · Last modified: 2015/07/28 15:49 by lowcloudnine