UNIX-User's Cheater Table

From Try-AS/400
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 wrklib
wrkobj
Shows a scrollable list of selected objects, helps in modifying access rights.
mv rnmobj
movobj
 
restore,
tar [x|t]
rst(lib|obj| ),
dspsavf,
dsptap
 
test -f chkobj
chkifsobj
 
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 -e
at (scheduler)
wrkjobscde
sbmjob
wrkjobq 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.
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 Create runnable Program from Object File.
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.
configure No equivalent to GNU autoconf. Possible workaround: Manually tailored, static, universal config.in 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  
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