[Contents] [Prev. Chapter] [Next Section] [Next Chapter] [Index] [Help]

2    Overview of the DIGITAL UNIX User Environment

Using a DIGITAL UNIX operating system is similar to using an ULTRIX and UWS operating system. Like an ULTRIX and UWS system, a DIGITAL UNIX system offers both a windowing graphical user interface (GUI) for workstations and a terminal interface.

Also like ULTRIX and UWS, the DIGITAL UNIX workstation interface is DECwindows, based on the industry standard OSF/Motif. As a result, there are no significant differences between the workstation interfaces of both systems. ULTRIX and UWS does offer, in addition, an XUI version of the DECwindows interface, based on a DIGITAL proprietary graphical user interface.

In addition to the windowing interface, you can use the DIGITAL UNIX system from a terminal or from a workstation window that emulates a terminal. With few exceptions, the commands and tools you use on an ULTRIX system are on the DIGITAL UNIX system. DIGITAL UNIX command and file names are case sensitive, just as they are on the ULTRIX system. You can use pipes, command input and output redirection, and background jobs in the same way that you use these features on an ULTRIX system.

This chapter gives an overview of the DIGITAL UNIX user environment, including differences in the workstation environment, differences in the DIGITAL UNIX directory structure, and differences in supported tools and shells, and differences in the security environment.

Note

For details about using a DIGITAL UNIX system, see the DECwindows User's Guide and the Command and Shell User's Guide.


[Contents] [Prev. Chapter] [Next Section] [Next Chapter] [Index] [Help]

2.1    Differences in the DIGITAL UNIX DECwindows Interface

The DIGITAL UNIX DECwindows interface is based on OSF/Motif Version 1.2.3. By contrast, ULTRIX and UWS gives you a choice of two DECwindows interfaces: OSF/Motif and XUI. The OSF/Motif interface is almost identical to the DIGITAL UNIX system interface, because the ULTRIX and UWS implementation is based on OSF/Motif Version 1.2.2. The ULTRIX and UWS XUI interface is based on the DIGITAL developed graphical user interface.


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.2    Differences in the DIGITAL UNIX Directory Structure

The directory structure on your DIGITAL UNIX system is different from the directory structure on an ULTRIX system. Figure 2-1 shows most of the directories in the root ( / ) file system.

Figure 2-1:  DIGITAL UNIX Directory Structure for General Users

As the figure shows, the directory structure on DIGITAL UNIX is identical to the ULTRIX directory structure in many ways. (This figure does not show the complete directory structure; for example, the /opt, /dev, and /mnt directories, which are typically not used by general users, are omitted. See also Section 4.8.1.) The following list describes important differences:

  1. Some commands that are in /bin on an ULTRIX system are in the /usr/bin or /usr/sbin directory on a DIGITAL UNIX system. This change should not affect you because your PATH environment variable causes the DIGITAL UNIX system to search the appropriate directories for commands. As a start, you can use the same definition for the PATH environment variable as you used on the ULTRIX system. However, you should remove /bin from your path definition and add /usr/bin and /usr/sbin.

    If you need to determine the location of a particular command that is not in your path, you can use the whereis command, which looks for commands in a set of standard locations. If a given command file is in more than one directory, whereis reports all locations of the command.

  2. The DIGITAL UNIX directory structure contains the /home directory. On DIGITAL UNIX systems, this directory is intended to be used to contain the home directories for users. For example, the home directory for a user named Ross might be /home/ross. See your system administrator for the actual location of your home directory.

  3. The DIGITAL UNIX directory structure contains the /sbin and /usr/sbin directories. The /sbin directory contains commands that system administrators use when the system is in single-user mode; /usr/sbin contains commands administrators use in multiuser mode.

  4. The DIGITAL UNIX directory structure does not contain the /usr/etc or /usr/ucb directories. Most commands that reside in these directories on an ULTRIX system are, on the DIGITAL UNIX system, in the /usr/bin directory. This change should not affect you, but you should remove /usr/ucb and /usr/etc from your path definition and add /usr/bin.

Other than these differences, you should notice no difference between the directory structures on the ULTRIX and DIGITAL UNIX systems during daily use.


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.3    Differences in User Applications and Commands

The following list describes the user applications that are packaged on the DIGITAL UNIX system:


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.4    Differences in Shells

The DIGITAL UNIX system supports three shells: the C shell (csh), the Korn shell (ksh), and the Bourne shell (sh). This section gives a brief overview of each shell's features and syntax, highlighting differences between it and the equivalent ULTRIX shell.


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.4.1    Differences in the C Shell

The C shell is an interactive command interpreter and a command programming language that uses a syntax similar to the C programming language. The shell carries out commands either from a shell script or interactively from a terminal keyboard.

In most respects, the DIGITAL UNIX C shell is the same as the ULTRIX C shell. In the DIGITAL UNIX C shell, you must set an environment variable to enable file name completion on a DIGITAL UNIX system and an environment variable to enable command-line editing. (For information about enabling file name completion, see Section 3.1.1. For information about enabling command-line editing, see Section 3.1.)

The DIGITAL UNIX C shell does not support the hashstat built-in command for debugging the shell. The hashstat command displays statistics that indicate how effective the internal hash table has been at locating commands.

Other than these differences, the DIGITAL UNIX C shell is the same as the ULTRIX C shell. For information about porting C shell scripts, see Section 3.2.3.

For more information about the DIGITAL UNIX C shell, see csh(1).


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.4.2    Differences in the Korn Shell

The Korn shell is an interactive command interpreter and a command programming language. The shell carries out commands either interactively or from a shell script. The Korn shell contains many of the features of the Bourne shell, as well as some C shell features.

The DIGITAL UNIX Korn shell is the same as the ULTRIX Korn shell. If you use the ULTRIX Korn shell interactively, you should notice no difference when you use the DIGITAL UNIX Korn shell interactively. Shell scripts written for the ULTRIX Korn shell should run without modification using the DIGITAL UNIX Korn shell.

For more information about the DIGITAL UNIX Korn shell, see ksh(1).


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.4.3    Differences in the Bourne Shell

The Bourne shell is an interactive command interpreter and a command programming language. The shell carries out commands either interactively or from a shell script. The Bourne shell is the default system shell on a DIGITAL UNIX system.

The ULTRIX system has two versions of the Bourne shell, sh and sh5. The Bourne shell on the DIGITAL UNIX system is most similar to sh5.

If you use the sh shell on an ULTRIX system, you might notice the following differences when you use sh on a DIGITAL UNIX system:

These differences might affect the portability of your sh shell scripts. For information about porting sh shell scripts, see Section 3.2.

The DIGITAL UNIX Bourne shell (sh) is almost identical to the ULTRIX sh5 shell; however, its name is different, and there are a few other minor differences. The difference in name does not affect how you use the Bourne shell interactively; however, it might affect the portability of your sh5 shell scripts. Other differences are very minor but can cause subtle failures of ported scripts. For information about porting sh5 shell scripts, see Section 3.2.


[Contents] [Prev. Chapter] [Prev. Section] [Next Chapter] [Index] [Help]

2.5    Differences in Security Features

Like the ULTRIX operating system, the DIGITAL UNIX system includes features that allow you to control access to your account, files, and workstation. For information on using the DIGITAL UNIX security features, see the Security manual.

The DIGITAL UNIX system omits the following security features that are found on ULTRIX systems: trusted path, audit, and enhanced identification and authentication features (including the shadow password file). For example, the DIGITAL UNIX system does not support the equivalent of the ULTRIX authenticate_user programming interface. Additionally, a DIGITAL UNIX system's system administrator cannot define a Secure Attention Key that you press before you log in to the system.


[Contents] [Prev. Chapter] [Prev. Section] [Next Chapter] [Index] [Help]