UNIX-User's Cheater Table
Jump to navigation
Jump to search
This table lists commands available in the CL-Environment, the classical OS/400-Shell, so to say. These do not apply to QSH or PASE, that are UNIX-like environments within OS/400.
| UNIX Command | OS/400 Equivalent | Remarks |
|---|---|---|
| Files and File System | ||
cat
|
cpyf
|
Since OS/400 has no concept of stdin/stdout, these functions of cat don't apply here. |
cd
|
chgcurlib
|
|
chmod
|
chgaut,grtobjaut,rvkobjaut
|
|
chown,chgrp
|
chgobjown
|
|
cp
|
crtdupobj
|
|
dump,tar c
|
sav(lib|obj| )
|
|
ls
|
wrklibwrkobj
|
Shows a scrollable list of selected objects, helps in modifying access rights. |
mv
|
rnmobjmovobj
|
|
restore,tar [x|t]
|
rst(lib|obj| ),dspsavf,dsptap
|
|
test -f
|
chkobjchkifsobj
|
|
vi
|
strseu for source physical files,edtf for stream files,strdfu option(5) for database files.
|
See Filesystems and Files on the AS/400 for details. See IBM HTTP-Server for AS/400 Configuration for specialised command regarding web server config. |
| Memory and Processes | ||
free
|
wrkshrpool
|
This is for displaying the amount of built-in RAM. |
crontab -eat (scheduler)
|
wrkjobscdesbmjobwrkjobq qbatch
|
|
ps aux,ps -edf,top
|
wrkactjob
|
|
| Disk and I/O | ||
df
|
strsst
|
Access to precise disk space stats is available within system service tools only. |
fsck
|
rclstg
|
System needs to be in restricted mode. |
iostat -x
|
wrkdsksts
|
|
vmstat
|
dspsyssts
|
Choose view option 3 after pressing F19.
|
| Networking | ||
ping,aping
|
ping
|
Surprise, command has same name! The latter is for SNA APPN. |
netstat,wrkappnsts
|
netstat
|
Surprise, command has same name! The latter is for SNA APPN. |
| Development | ||
cc
|
crtcmod
|
Create Object File from C-Source. |
ld
|
crtpgm,crtsrvpgm
|
Create runnable Program from Object File(s), create Service Program ("Shared Library") from Object File(s). |
make
|
No real equivalent. Might be partly substituted with REXX code. There might be something related to a static makefile generator in the QUSRTOOLS library called TMKMAKE.[1] | |
configure
|
No equivalent to GNU autoconf. Possible workaround: Manually tailored, static, universal config.h for each OS-Release (Compiler Version) based on existing documentation and/or manual tests. | |
| Other Topics | ||
lpq
|
wrkoutq
|
Displays all configured printer queues and count of entries. |
mailx
|
dspmsg,snddst
|
Cron and at send mail if there was output. OS/400 sends messages and generates printer output (spooled file). Sending (SMTP) mail from the command line utilises a completely different facility. |
mt
|
dsptap, chktap
|
|
mysql,isql
|
strsql
|
Not limited to mysql that is more like a placeholder for any command line client accessing a database for entering SQL queries directly. |
The table will be expanded over time.
See also
Footnotes
- ↑ See Programming with Make on the AS/400, Part I and Programming with Make on the AS/400, Part 2 on McPress Online.