Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Release Notes for HP-UX 11.0: HP 9000 Computers > Chapter 8 Commands and Libraries

Changed User Commands in Section 1

» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

This section summarizes changes to commands in Section 1 of the HP-UX Reference manual (and the online manpages).

admin(1)

Users can now maintain binary files, such as executable files, in SCCS.

The following options have been added to admin(1):

-b

Must be used if the argument name of the -i option represents a binary file requiring special encoding. Otherwise, a binary file will not be handled properly by SCCS commands.

-f x

The new x flag to the existing -f option causes get(1) to create files with execute permissions.

at(1)

The following option has been added to at(1):

-d job-id

Displays the contents of the specified job.

cmp(1)

A new skip feature causes cmp(1) to skip initial bytes in the files.

The new format is:

cmp [-l] [-s] file1 file2 [skip1 [skip2]]

crontab(1)

The options -l, -r, and -e accept an optional parameter, username, to specify a particular user. Only a user with appropriate privilege can specify username.

csplit(1)

An additional argument {*} has been added to repeat the previous operand as many times as necessary to finish input.

date(1)

The following changes have been made:

  1. date [ -a [-]sss [.fff]]

    Slowly adjust the time by sss.fff seconds. The system's clock will be sped up or slowed down until it has drifted by the number of seconds specified.

  2. date [-u] [mmddhhmm[[cc]yy]]

    Where cc is the century minus one (i.e., 19 or 20)

  3. %R : Same as %H:%M

    %Ec : Alternate appropriate date and time representation.

    %EY : Full alternate year representation.

  4. Formatting directives %E, %F, %o, and %z may be deleted in future.

dd(1)

Three new options have been added to the dd command: files, iseek, and oseek. The iseek and oseek options have been added as aliases for the skip and seek options, respectively.

Summary of Change

files=n

Copy and concatenate n input files; should only be used when the input file is a magnetic tape device.

iseek=n

Skip n input blocks before copying.

oseek=n

Seek n blocks from beginning of output file before copying.

diff3(1)

The new -E option produces a script for the editor ed(1) that will incorporate into file1 all changes between file2 and file3, but treat overlapping changes differently. The overlapping lines from both files will be inserted by the edit script, bracketed by <<<<<< and >>>>>> lines.

The new -X option will produce a script that will incorporate only changes flagged ====, and treat these changes in the manner of the -E option.

ex(1)

The new -C option is similar to -x, except that the input file is assumed to have been encrypted.

file(1)

The new -h option instructs the file(1) command not to follow links in the case of files with symbolic links.

find(1)

The following features are added:

The -local option matches files which physically reside on a local file system. Its use can improve performance, because searching is restricted only to files residing on the local file system, ignoring any remotely mounted file systems.

\+ termination of the -exec cmd option (instead of \;) aggregates a set of pathnames and executes cmd on the set. This can vastly improve processing speed.

If the user wishes to change the \; to \+, then the find(1) command output sequence might be different. This is because find \+ passes an aggregated set of pathnames to the command being executed, and the output depends on the way the command handles the aggregated set.

For example, consider the following sequence:

$ mkdir -p tmp/tmp/tmp 
$ touch tmp/foo tmp/tmp/foo1 tmp/tmp/tmp/foo2
$ find tmp -name foo\* -exec ll {} \;
-rw-r--r-- 1 arvind users 0 Jan 24 12:01 tmp/tmp/tmp/foo2
-rw-r--r-- 1 arvind users 0 Jan 24 12:01 tmp/tmp/foo1
-rw-r--r-- 1 arvind users 0 Jan 24 12:01 tmp/foo

However, if we use \+, the output will be:

$ find tmp -name foo\* -exec ll {} \+ 
-rw-r--r-- 1 arvind users 0 Jan 24 12:01 tmp/foo
-rw-r--r-- 1 arvind users 0 Jan 24 12:01 tmp/tmp/foo1
-rw-r--r-- 1 arvind users 0 Jan 24 12:01 tmp/tmp/tmp/foo2

Note the change in the sequence of filenames being printed by find(1). This change in the output sequence of the filenames is because the ll command behaves differently when invoked with multiple pathnames and single pathnames.

finger(1)

The following information has been added to the default output format of finger:

  1. Last time the user read the mail,

  2. Last time the user received the mail.

grep(1)

The new -h option suppresses printing of filenames when searching multiple files.

ipcs(1)

The -C and -N options were updated to support multiple dump files within a dump directory:

-C core

core can now be a core file or a directory created by savecrash or savecore

-N namelist

Use file namelist or the namelist within core in place of /stand/vmunix

last(1), lastb(1)

The -f file option uses file as the name of the accounting file instead of /var/adm/wtmp or /var/adm/btmp.

This provides the user with the flexibility to specify a different accounting file instead of the normal /var/adm/wtmp or /var/adm/btmp.

ls(1)

The new lc command version is basically the same as using ls -C in that its output is columnar even when redirected.

make(1)

Here are the new options and suffixes:

Parallel make

If make is invoked with the -P option, it tries to build more than one target at a time, in parallel.

The parallel make feature if used, will update multiple targets in parallel, resulting in an overall performance improvement. Parallel make can be disabled for specific targets using the .MUTEX directive. This is useful when two or more targets modify a common output file.

.MUTEX

Serialize the updating of specified targets.

-u option

Unconditionally make the target, ignoring all timestamps.

-w option

Suppress warning messages. Fatal messages will not be affected.

New suffixes

The built-in rules for .L, .L~, .Y, and .Y~ are similar to .l, .l~, .y, and .y~ respectively, except that the C++ compiler is invoked for the new suffixes to create the object file.

man(1)

There are new options -M and -T and new sections local, new, old, and public.

-M path

Changes the search path for manual pages. path is colon-separated list of directories that contains manual page directory subtrees.

-T macro-package

Uses the macro-package specified to display the manpage rather than the standard -man macros defined in /usr/share/lib/tmac/tmac.an.

The user can specify any of the new section names, local, new, old, or public, to get a manpage stored in the directories corresponding to the section.

For example,

man public <cmd>

mesg(1)

There are new ways of invoking existing options:

  1. Using -n is the same as invoking the existing n option.

  2. Using -y is the same as invoking existing y option.

more(1)

Added sequences that can be entered when more pauses:

  1. A dot (.) repeats the previous command.

  2. CTRL \ (^\) halts a partial display of text.

mt(1)

The new -f option is now the preferred way to specify the name of the tape device. The mt command has also been changed to accept both rew and rewind as the command argument for rewinding the tape.

NOTE: The -t option is still supported; however, the intent is that -t will become obsolete in a future release. It is recommended that any scripts that use-t be changed to use the -f option.

pg(1)

Here are the new features:

-r option

Disallows escape to the shell at the pg prompt.

if

At the pg prompt, pages forward i screens.

iz

At the pg prompt, sets the default number of lines per screenful to i.

ps(1)

The format of ps -l is different on 64-bit capable machines. The two fields addr and wchan will have a larger field size to accommodate a 64- bit number. Scripts that parse the output of ps -l may have to be modified to account for these larger field sizes.

uname(1)

Beginning at 10.30, the uname(1) command may display an incorrect model on future machines. uname(1) is restricted to eight characters for the model. However some future machines will have more than eight characters for the model. If the model string is longer than eight characters, uname(1) will truncate the model string to eight characters. It is therefore recommended that the model(1) or getconf(1) commands be used to obtain the model string. Refer to “Unified Binary Implementation for HP-UX 11.0” in Chapter 2 for more details.

vi(1)

A new -C option is available, similar to-x except that the input file is assumed to have been encrypted.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1998 Hewlett-Packard Development Company, L.P.