UNIX-User's Cheater Table: Difference between revisions

From Try-AS/400
Jump to navigation Jump to search
(+Link)
(Rework and extend)
Line 14: Line 14:
|valign="top"|<code>cd</code>
|valign="top"|<code>cd</code>
|valign="top"|<code>chgcurlib</code>
|valign="top"|<code>chgcurlib</code>
|valign="top"|&nbsp;
|-
|valign="top"|<code>chmod</code>
|valign="top"|<code>chgaut</code>,<br /><code>grtobjaut</code>,<br /><code>rvkobjaut</code>
|valign="top"|&nbsp;
|-
|valign="top"|<code>chown</code>,<br /><code>chgrp</code>
|valign="top"|<code>chgobjown</code>
|valign="top"|&nbsp;
|valign="top"|&nbsp;
|-
|-
Line 30: Line 38:
|valign="top"|<code>vi</code>
|valign="top"|<code>vi</code>
|valign="top"|<code>strseu</code> for source physical files,<br /><code>edtf</code> for stream files,<br /><code>strdfu option(5)</code> for database files.
|valign="top"|<code>strseu</code> for source physical files,<br /><code>edtf</code> for stream files,<br /><code>strdfu option(5)</code> for database files.
|valign="top"|See [[Filesystems and Files on the AS/400]] for details.
|valign="top"|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.
|-
|-
|colspan="3"|'''Memory and Processes'''
|colspan="3"|'''Memory and Processes'''
Line 56: Line 64:
|valign="top"|&nbsp;
|valign="top"|&nbsp;
|-
|-
|colspan="3"|'''Other Topics'''
|valign="top"|<code>vmstat</code>
|valign="top"|<code>dspsyssts</code>
|valign="top"|Choose view option ''3'' after pressing <code>F19</code>.
|-
|colspan="3"|'''Networking'''
|-
|valign="top"|<code>ping</code>,<br /><code>aping</code>
|valign="top"|<code>ping</code>
|valign="top"|Surprise, command has same name!<br />The latter is for SNA APPN.
|-
|-
|valign="top"|<code>lpq</code>
|valign="top"|<code>netstat</code>,<br /><code>wrkappnsts</code>
|valign="top"|<code>wrkoutq</code>
|valign="top"|<code>netstat</code>
|valign="top"|Displays all configured printer queues and count of entries.
|valign="top"|Surprise, command has same name!<br />The latter is for SNA APPN.
|-
|-
|valign="top"|<code>mailx</code>
|colspan="3"|'''Development'''
|valign="top"|<code>dspmsg</code>
|valign="top"|Cron and at send mail if there was output. OS/400 sends ''messages'' and generates printer output (spooled file).
|-
|-
|valign="top"|<code>cc</code>
|valign="top"|<code>cc</code>
Line 74: Line 88:
|valign="top"|Create runnable Program from Object File.
|valign="top"|Create runnable Program from Object File.
|-
|-
|valign="top"|<code>ping</code>
|valign="top"|<code>make</code>
|valign="top"|<code>ping</code>
|valign="top"|&nbsp;
|valign="top"|Surprise, command has same name!
|valign="top"|No real equivalent. Might be partly substituted with REXX code.<br />There might be something related to a static makefile generator in the QUSRTOOLS library.
|-
|valign="top"|<code>configure</code>
|valign="top"|&thinsp;
|valign="top"|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.
|-
|colspan="3"|'''Other Topics'''
|-
|valign="top"|<code>lpq</code>
|valign="top"|<code>wrkoutq</code>
|valign="top"|Displays all configured printer queues and count of entries.
|-
|-
|valign="top"|<code>netstat</code>
|valign="top"|<code>mailx</code>
|valign="top"|<code>netstat</code>
|valign="top"|<code>dspmsg</code>,<br /><code>snddst</code>
|valign="top"|Surprise, command has same name!
|valign="top"|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.
|}
|}



Revision as of 19:57, 7 March 2020

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, which 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  
ls wrklib
wrkobj
Shows a scrollable list of selected objects, helps in modifying access rights.
mv rnmobj
movobj
 
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
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.

The table will be expanded over time.

See also