10-05-2006
We have 180+ UNIX boxes, >140 of them are Linux. We have a few Solaris 2.9 boxes.
What you should teach (aside from admin tools which differ a lot) is POSIX stuff as much as possible - POSIX C, scripting, etc. Wherever your platform deviates significantly from the norm you need to let students know what the norm (POSIX or XSI) is. And, the common shells on production boxes are Bourne, Bourne-again (bash), csh, ksh, then tcsh. (Steven's Advanced Unix Programming 2ed p 3).
However, consider teaching either Bourne or bash, not csh or tenex csh because those are so, um, "tricky", that platforms like FreeBSD and Darwin that have tcsh as their default shell, use Bourne for system scripts. Solaris comes default with all of the shells.
5 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
okay, so i'm using windows right now because i produce electronic music and all my software is written for windows.
i want to get rid of microsoft's os, so i'm wondering if there is an easy way to run these windows programs on a unix system. maybe a windows emulator for x-windows or something... (1 Reply)
Discussion started by: nydel
1 Replies
2. UNIX for Dummies Questions & Answers
What's the dominant Unix in production environment?
Solaris or Linux?
HP-UX and AIX have never been "dominant", while HP-UX is widely used in financial circles... Is Linux reallly where it's all going for major production environments running Oracle/SAP/whatever or will Solaris remain... (1 Reply)
Discussion started by: etc
1 Replies
3. BSD
Hi All,
There are few OpenBSD 4.8 servers without compiler installed at my working place. However, sometimes there are some patches released for patching the kernel.
My question is: Can I setup a non production OpenBSD 4.8 server as a test machine with compiler installed and use it to... (1 Reply)
Discussion started by: lcxpics
1 Replies
4. Shell Programming and Scripting
I have lots of package version +suffix full name, but I just want to get the package name, which means delete the common parts
eg:
dtc-1.3.0+gitAUTOINC+033089f29099bdfd5c2d6986cdb9fd07b16cfde0-r4.1.x86_64.rpm ... (5 Replies)
Discussion started by: yanglei_fage
5 Replies
5. HP-UX
Dear All,
Please help to find out the patch and firmware versions in HP-UX systems. as uname -r is showing os version and
uname -a
HP-UX xxxxxx B.11.23 U 9000/800 2781427196 unlimited-user license.
Kindly help to find out the existing Kernel and firmware versions.
Also I need to... (3 Replies)
Discussion started by: anuragr
3 Replies
LEARN ABOUT SUNOS
endusershell
getusershell(3C) Standard C Library Functions getusershell(3C)
NAME
getusershell, setusershell, endusershell - get legal user shells
SYNOPSIS
#include <unistd.h>
char *getusershell(void);
void setusershell(void);
void endusershell(void);
DESCRIPTION
The getusershell() function returns a pointer to a legal user shell as defined by the system manager in the file /etc/shells. If
/etc/shells does not exist, the following locations of the standard system shells are used in its place:
/bin/bash /bin/csh
/bin/jsh /bin/ksh
/bin/pfcsh /bin/pfksh
/bin/pfsh /bin/sh
/bin/tcsh /bin/zsh
/sbin/jsh /sbin/pfsh
/sbin/sh /usr/bin/bash
/usr/bin/csh /usr/bin/jsh
/usr/bin/ksh /usr/bin/pfcsh
/usr/bin/pfksh /usr/bin/pfsh
/usr/bin/sh /usr/bin/tcsh
/usr/bin/zsh /usr/xpg4/bin/sh
The getusershell() function opens the file /etc/shells, if it exists, and returns the next entry in the list of shells.
The setusershell() function rewinds the file or the list.
The endusershell() function closes the file, frees any memory used by getusershell() and setusershell(), and rewinds the file /etc/shells.
RETURN VALUES
The getusershell() function returns a null pointer on EOF.
BUGS
All information is contained in memory that may be freed with a call to endusershell(), so it must be copied if it is to be saved.
SunOS 5.10 30 Aug 2004 getusershell(3C)