Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Summary of command XPG4 conformity

&pagelevel(3)&pagelevel

Commands which conform fully to the XPG4 standards

asa, at, awk, basename, batch, bc, cal, cancel, cmp, comm, compress, cp, csplit, cut, dd, dirname, du, env, expand, expr, fold, getconf, head, join, locale, localedef, logger, logname, mesg, mkdir, mkfifo, mv, nice, nm, nohup, paste, patch, pathchk, pax, pr, printf, renice, rm, rmdir, sed, sleep, split, sum, tabs, talk, tee, time, tput, tr, tsort, tty, touch, uncompress, unexpand, uniq, uudecode, uuencode, wc, who, write, xargs, zcat

Commands which differ from the XPG4 standard

Most of the differences result from additional options.

POSIX
command

Additional
option(s)

Other differences

ar

-S, -V


cat

-s


chgrp

-h


chmod


When <perm> is specified then the entry of l (lock) and t (t bit) as
well as u, g and o is supported in addition to the XPG4 standard.

chown

-h


cksum

-C


crontab

-l|-r|-e [user]


date

-a

The system clock can only be adjusted by seconds or fractions of
seconds

df

-F, -n, -b, -c, -e,
-g, -l, -v, -V, -o


diff

-a, -h, -i, -l. -n, -s, -t,
-w, -D, -S


ed

-W


egrep

-b, -h


ex

-r, -L


fc

-s


fgrep

-b, -h


file

-c, -f, -h, -m


find

-follow, -fstype
-local, -mount

+/-<num>(instead of <num> alone) is permitted for the options
-links, -size, -atime, -ctime, -mtime and
-size.
A symbolic reference is also permitted for -type <char>.

gencat

-l, -m


grep

-b, -h, -r


iconv


Additional conversion between ISO646 and EDF03
(from ASCII 7-bit to EBCDIC).

id

-a[<user>]


lex

-V, -Q(y/n)


ln

-n

Additional syntax compared to XPG4 standard:
ln -s <name><reference>
ln -s <name>...<directory>

lp


The -m and -w options of the XPG4 standard are not supported.

lpstat


The -v option of the XPG4 standard is not supported.
For the -u option you can only specify your own login name.

ls

-L, -b


mailx

-F, -i, -n
-V

In send mode
In read mode

make

-b, -d


man

-k, -x


more

-d, -f, +<char>,
+<line_number>,
+/-<pattern>

The -t option of the XPG4 standard is not supported.

nice


Has no effect on BS2000 task priorities

nl

-f type


od

-f, -D, -F, -O, -S, -X


ps

-c, -j, -s, -T


renice


Has no effect on BS2000 task priorities

sh


Built-in XPG4 functions in the shell:
., :, [<expr>], alias, bg, break, case, cd, command, continue, do,
echo, else, eval, exec, exit, export, false, fc, fg, for, getopts, hash,
if, jobs, kill, newgrp, pwd, read, readonly, return, set, shift, test,
times, trap, true, type, ulimit, umask, unalias, unset, until, wait,
while
Other built-in functions in the shell:
edt, let, print, typeset, whence

sort

-M, -T <tempdir>


strings

-o


tail

-r


tput

-S


uname

-p


uuname


Only the local system name is displayed.

vi

-r, -L


yacc

-V, -Q(y/n)
y driver-file


Commands which are not (or no longer) defined in the XPG4 standard

POSIX
command

Function

bs2cmd

execute BS2000 command

bs2cp

copy BS2000 files

bs2do

call BS2000 procedures from the POSX shell

bs2file

set BS2000 file attributes

bs2lp

send files to a printer

bs2pkey

set P keys

cpio

copy in and out

debug

debug POSIX programs

dumpfs

dump file system

edt, edtu

process file with EDT (BS2000)

fsck

check consistency of a file system and make corrections interactively

fsexpand

expand existing file systems

ftyp

define processing mode for BS2000 files

funzip

Filter for extracting from a ZIP archive in a pipe

fuser

display file users

hd

hex dump

info

online diagnostic tool

ipcrm

remove inter-process communication facilities

ipcs

inter-process communication status

last

display last logged in users

logrotate

change logging files of the syslog daemon

mkfs

make a filesystem

mknod

make an inode

mkpart

hard disk maintenance utility

mount

mount a file system

mountall

mount file systems

pdbl

set up and manage user-specific program cache

ping

send echo requests to network hosts

pkginfo

display information on software packages in POSIX

posdbl

manage POSIX loader

rcp

remote file copy

rmpart

remove partition

rsh

remote shell

show_pubset_export

show file systems affected by EXPORT-PUBSET

start_bs2fsd

start copy daemons

su

substitute user ID

sudo

Execute a command as another user

sync

flush system buffers

tar

file archiver

umount

unmount a file system

umountall

unmount file systems

unzip

list, test and extract compressed files in a ZIP archive

unzipsfx

Self-extracting stub for prepending to ZIP archives

visudo

Edit the sudoers file

zip

Package and compress (archive) files

zipcloak

Encrypt entries in a zipfile

zipgrep

Search files in a ZIP archive for lines matching a pattern

zipinfo

List detailed information about a ZIP archive

zipnote

Write the comments in zipfile to stdout, edit comments and rename files in
zipfile

zipsplit

Split a zipfile into smaller zipfiles