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.
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   There is a crude port of make in the QUSRTOOLS library called TMKMAKE. See QUSRTOOLS/QATTINFO.TMKINFO for details.[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.
diff cmppfm  
patch mrgsrc  
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