Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

Commands belonging to the POSIX shell

&pagelevel(3)&pagelevel

The POSIX shell comprises the basic shell (POSIX-BC) and the extended shell (POSIX-SH). It contains the POSIX commands found in the following table.

Entries in the Type column describe the command type:

bin
blt
scr

separate module
built-in in the shell
script

The column LFS describes whether the commands can process large POSIX files:

A
S

(large file aware): uses large files correctly
(large file safe): recognizes large files but rejects processing in a defined manner

The column L describes in which product library the command is delivered:

1
2
3
4
5

SINLIB.POSIX-BC.vvv.SHELL
SINLIB.POSIX-BC.vvv.ROOT
SINLIB.POSIX-BC.vvv.INET
SINLIB.POSIX.BC.vvv.OSSW
SINLIB.POSIX-SH.vvv

Name

Location

Type

L

Description

LFS

alias

/usr/bin

blt+scr

1

Define or display alias


ar

/usr/bin

bin

1

Administer libraries

S

asa

/usr/bin

bin

5

Convert control characters for positioning


at

/usr/bin

bin

5

Execute commands at a later date


awk

/usr/bin

bin

5

Programmable processing of text files

A

basename

/usr/bin

scr

1

Separate file name from path


batch

/usr/bin

scr

1

Execute commands at a later date


bc

/usr/bin

bin

5

Arithmetic language


bg

-

blt

1

Process jobs in background


bs2cmd

-

blt

1

Execute BS2000 command


bs2cp

/usr/bin

blt+bin

1

Copy BS2000 files

A

bs2do

/usr/bin

bin

1

Calling BS2000 procedures from POSIX


bs2file

/usr/bin

blt+bin

1

Define file attributes for BS2000 files


bs2lp

/usr/bin

bin

1

Print files


bs2pkey

/usr/bin

bin

1

Assign P keys


cal

/usr/bin

bin

5

Display calendar


cancel

/usr/bin

bin

5

Delete print jobs


cat

/usr/bin

blt+bin

1

Concatenate and output files

A

cd

/usr/bin

blt+scr

1

Change current directory

A

chgrp

/usr/bin

blt+bin

1

Change group number of file

A

chmod

/usr/bin

blt+bin

1

Change access rights

A

chown

/usr/bin

blt+bin

1

Change owner of file

A

cksum

/usr/bin

bin

5

Write checksums and file sizes

A

cmp

/usr/bin

bin

5

Compare files character by character

A

comm

/usr/bin

bin

5

Search for identical lines in two sorted files

A

command

/usr/bin

blt+scr

1

Execute simple command


compress

/usr/bin

bin

5

Compress files

A

cp

/sbin

blt+bin

1

Copy files

A

cp

/usr/bin

blt+bin

1

Copy files

A

cpio

/usr/bin

bin

1

Swap files and directories in and out

A

crontab

/usr/bin

bin

5

Execute commands at regular intervals


csplit

/usr/bin

bin

5

Split file according to specific criteria

S

cut

/usr/bin

bin

5

Cut bytes, characters or fields from the lines of a file

A

date

/usr/bin

blt+bin

1

Display time and date


dd

/sbin

bin

5

Copy and convert files

S

debug

/usr/bin

bin

2

Test POSIX programs


df

/sbin

bin

1

Display number of free and occupied disk blocks

A

diff

/usr/bin

bin

5

Compare files line by line

A

dirname

/usr/bin

scr

1

Separate path prefix from file name


du

/usr/bin

bin

1

Display occupied memory space

A

dumpfs

/sbin

bin

2

Display internal file system information

A

echo

/usr/bin

blt+bin

1

Output call arguments


ed

/sbin

bin

5

Line editor in interactive mode


edt

-

blt

1

Call BS2000 file editor EDT

S

edtu

-

blt

1

Call BS2000 file editor EDT

S

egrep

/usr/bin

bin

5

Find pattern

S

env

/usr/bin

bin

5

Change environment when executing commands


eval

-

blt

1

Process call arguments and execute them as commands


ex

/usr/bin

bin

5

Line editor


exec

-

blt

1

Overlay current shell


exit

-

blt

1

Terminate shell procedure


expand

/usr/bin

bin

5

Convert tab character to blanks

S

export

-

blt

1

Export shell variables


expr

/sbin

blt+bin

1

Evaluate expressions


expr

/usr/bin

blt+bin

1

Evaluate expressions


false

/usr/bin

alias+scr

1

Return end status not equal to 0


fc

/usr/bin

blt+scr

1

Access to history file


fg

-

blt

1

Bring jobs into foreground


fgrep

/usr/bin

bin

5

Find strings

S

file

/usr/bin

bin

5

Define file type

A

find

/usr/bin

bin

5

Search directories

A

fold

/usr/bin

bin

5

Split up long lines

S

fsck

/sbin

bin

2

Check consistency of file system and correct interactively with user

A

fsexpand

/sbin

bin

2

Expand existing file systems

A

ftyp

/usr/bin

blt+bin

1

Define types of file processing (BS2000)


funzip

/usr/local/bin

bin

4

Filter for extracting from a ZIP archive in a pipe

A

fuser

/usr/sbin

bin

2

Display file users

A

gencat

/usr/bin

bin

5

Generate binary coded message catalog


genso

/usr/bin

bin

2

Generate shared object


getconf

/usr/bin

bin

5

Call up configuration values

A

getopts

/usr/bin

blt+scr

1

Search procedure arguments for options


grep

/sbin

bin

1

Get pattern

A

hash

/usr/bin

alias+scr

1

Process shell hash table


hd

/usr/bin

bin

2

Hex dump

A

head

/usr/bin

bin

5

Output start of a file

A

iconv

/usr/bin

bin

1

Convert code

A

id

/usr/bin

blt+bin

1

Output user identification


inetd

/usr/sbin

bin

2

Daemon for internet services


info

/sbin

bin

2

Online diagnostic tool


ipcrm

/usr/bin

bin

2

Remove setup for interprocess communications


ipcs

/usr/bin

bin

2

Output state of interprocess communications setup


jobs

-

blt

1

Output job information


join

/usr/bin

bin

5

Merge two files according to matching fields

A

kill

/usr/bin

blt+scr

1

Send signals to processes


last

/usr/bin

bin

2

Display last logged in users


let

-

blt

1

Integer arithmetic


lex

/usr/bin

bin

5

Create scanner


ln

/sbin

blt+bin

1

Enter reference to file

A

locale

/usr/bin

bin

5

Call up information on the locale


localedef

/usr/bin

bin

5

Define locale


logger

/usr/bin

bin

5

Log messages


logname

/usr/bin

bin

5

Query login name


logrotate

/usr/sbin

scr

2

Change logging files of the syslog daemon

S

lp

/usr/bin

bin

5

Print out files


lpstat

/usr/bin

bin

5

Output information on print jobs


ls

/usr/bin

blt+bin

1

Output information on directories and files

A

mailx

/usr/bin

bin

5

Interactively process messages


make

/usr/bin

bin

5

Manage groups of files


man

/usr/bin

scr

5

Use online documentation


mesg

/usr/bin

bin

5

Forbid or permit receipt of messages


mkdir

/usr/bin

blt+bin

1

Create directory


mkfifo

/usr/bin

bin

5

Create FIFO


mkfs

/sbin

bin

2

Create file system


mknod

/sbin

bin

2

Create device file


more

/usr/bin

bin

5

Control screen output

A

mount

/sbin

bin

2

Mount file systems and remote resources


mountall

/sbin

scr

2

Mount two or more file systems


mv

/sbin

blt+bin

1

Move or rename files

A

newgrp

/usr/bin

blt+bin

1

Modify group membership


nice

/usr/bin

bin

5

Change priority of commands


nl

/usr/bin

bin

5

Number text lines

S

nm

/usr/bin

bin

5

Output an object file symbol table


nohup

/usr/bin

bin

5

Execute command and ignore signals


od

/usr/bin

bin

5

Output file contents in octal format

S

paste

/usr/bin

bin

5

Merge lines

S

patch

/usr/bin

bin

5

Use difference report


pathchk

/usr/bin

bin

5

Check path names


pax

/usr/bin

bin

1

Process portable archives

A

pdbl

/usr/bin

bin

2

Administer private POSIX loader


ping

/usr/bin

bin

2

Send echo requests to network hosts


pkginfo

/usr/bin

bin

2

Display information about software packages


posdbl

/usr/sbin

bin

2

Administer POSIX loader


pr

/usr/bin

bin

5

Format files and output to standard output


print

-

blt

1

Output mechanism similar to echo


printf

/usr/bin

blt+bin

5

Formatted output


ps

/sbin

bin

1

Query process data


pwd

/usr/bin

blt+bin

1

Output path name of current working directory


rcp

/usr/bin

bin

3

Copy files from or to a remote computer

A

read

/usr/bin

blt+scr

1

Read arguments of standard input and assign shell variables


readonly

-

blt

1

Protect shell variables


renice

/usr/bin

bin

5

Change priority of current processes


rm

/sbin

blt+bin

1

Delete files


rmdir

/sbin

blt+bin

1

Delete directories

A

rmpart

/sbin

bin

2

Remove partition


rsh

/usr/bin

bin

3

Execute commands on remote computer


sed

/usr/bin

bin

5

Editor in procedure mode


set

-

blt

1

Set options or parameters, output variables


sh

/sbin

bin

1

POSIX shell command interpreter and programming language

A

shift

-

blt

1

Move values of positional parameters to the left


sleep

/usr/bin

blt+bin

1

Temporarily halt processes


show_pubset_export

/sbin

scr

2

show file systems affected by EXPORT-PUBSET


sort

/usr/bin

bin

1

Sort and/or merge files

S

split

/usr/bin

bin

5

Distribute file across several files

A

start_bs2fsd

/sbin

scr

2

start copy daemons


strings

/usr/bin

bin

5

Find printable strings in object or binary files

A

stty

/usr/bin

bin

2

Output or modify attributes of a data display station


su

/sbin

bin

2

Substitute user ID


sum

/usr/bin

bin

5

Calculate checksum of a file

A

sync

/sbin

bin

2

Write back system cache


tabs

/usr/bin

bin

5

Set tabulator stops


tail

/usr/bin

bin

5

Output the last part of a file

A

talk

/usr/bin

bin

5

Talk with another user


tar

/usr/bin

bin

1

Archive files

A

tee

/usr/bin

bin

5

Join pipes together and copy input


test

/usr/bin

blt-scr

1

Check conditions


time

/usr/bin

bin

1

Measure command runtime


times

-

blt

1

Output total runtime of processes started up to now


touch

/usr/bin

blt+bin

1

Update modification and access times

A

tput

/usr/bin

bin

5

Initialize terminal or query terminfo database


tr

/usr/bin

bin

1

Replace or delete character

A

trap

-

blt

1

Modify signal handling


true

/usr/bin

alias+scr

1

Return end status 0


tsort

/usr/bin

bin

5

Sort topologically


tty

/usr/bin

bin

5

Output path name of current terminal


type

/usr/bin

alias+scr

1

Query command type


typeset

-

blt

1

Set attributes for shell variable


ulimit

/usr/bin

blt+scr

1

Limit file size for writing or query current limit

A

umask

/usr/bin

blt-scr

1

Output or modify default allocation of access rights


umount

/sbin

bin

2

Unmount file systems and remote resources


umountall

/sbin

scr

2

Unmount two or more file systems


unalias

/usr/bin

blt-scr

1

Delete variables from alias tables


uname

/sbin

bin

1

Output basic data on the current operating system


uncompress

/usr/bin

bin

5

Uncompress compressed files

A

unexpand

/usr/bin

bin

5

Convert blanks to tab characters

S

uniq

/usr/bin

bin

1

Search for repeated lines


unzip

/usr/local/bin

bin

4

List, test and extract compressed files in a ZIP archive

A

unzipsfx

/usr/local/bin

bin

4

Self-extracting stub for prepending to ZIP archives

A

uudecode

/usr/bin

bin

5

Decode file after mailx transfer


uuencode

/usr/bin

bin

5

Encode file for mailx transfer


usp

/usr/bin

bin

2

Dynamisc setting of POSIX control parameters


vi

/usr/bin

bin

5

Screen editor


wait

/usr/bin

blt+scr

1

Wait for termination of background processes


wc

/usr/bin

bin

5

Count words, characters and lines

A

whence

-

blt

1

Command localization


who

/sbin

bin

5

Show active user IDs


write

/usr/bin

bin

5

Send message to a user


xargs

/usr/bin

bin

5

Create argument list(s) and execute command


yacc

/usr/bin

bin

5

Create parser


zcat

/usr/bin

bin

5

Output compressed files

A

zip

/usr/local/bin

bin

4

Package and compress (archive) files

A

zipcloak

/usr/local/bin

bin

4

Encrypt entries in a zipfile

A

zipgrep

/usr/local/bin

bin

4

Search files in a ZIP archive for lines matching a pattern

A

zipinfo

/usr/local/bin

bin

4

List detailed information about a ZIP archive

A

zipnote

/usr/local/bin

bin

4

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

A

zipsplit

/usr/local/bin

bin

4

Split a zipfile into smaller zipfiles

A