UNIX-User's Cheater Table: Difference between revisions

From Try-AS/400
Jump to navigation Jump to search
(Added entry)
(+Link)
 
(32 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{FIXME|Complete}}
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.


{|class="wikitable"
{|class="wikitable"
Line 6: Line 6:
!Remarks
!Remarks
|-
|-
|colspan="3" align="center"|'''Files and File System'''
|colspan="3"|'''Files and File System'''
|-
|valign="top"|<code>cat</code>
|valign="top"|<code>cpyf</code>
|valign="top"|Since OS/400 has no concept of stdin/stdout, these functions of cat don't apply here.
|-
|-
|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"|<code>cp</code>
|valign="top"|<code>crtdupobj</code>
|valign="top"|&nbsp;
|-
|valign="top"|<code>dump</code>,<br /><code>tar c</code>
|valign="top"|<code>sav(lib|obj| )</code>
|valign="top"|&nbsp;
|valign="top"|&nbsp;
|-
|-
Line 15: Line 35:
|valign="top"|<code>wrklib</code><br /><code>wrkobj</code>
|valign="top"|<code>wrklib</code><br /><code>wrkobj</code>
|valign="top"|Shows a scrollable list of selected objects, helps in modifying access rights.
|valign="top"|Shows a scrollable list of selected objects, helps in modifying access rights.
|-
|valign="top"|<code>mv</code>
|valign="top"|<code>rnmobj</code><br /><code>movobj</code>
|valign="top"|&nbsp;
|-
|valign="top"|<code>restore</code>,<br /><code>tar [x|t]</code>
|valign="top"|<code>rst(lib|obj| )</code>,<br /><code>dspsavf</code>,<br /><code>dsptap</code>
|valign="top"|&nbsp;
|-
|valign="top"|<code>test -f</code>
|valign="top"|<code>chkobj</code><br /><code>chkifsobj</code>
|valign="top"|&nbsp;
|-
|-
|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.
|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. See [[IBM HTTP-Server for AS/400 Configuration]] for specialised command regarding web server config.
|-
|colspan="3"|'''Memory and Processes'''
|-
|valign="top"|<code>free</code>
|valign="top"|<code>wrkshrpool</code>
|valign="top"|This is for displaying the amount of built-in RAM.
|-
|valign="top"|<code>crontab -e</code><br /><code>at</code> (scheduler)
|valign="top"|<code>wrkjobscde</code><br /><code>sbmjob</code><br /><code>wrkjobq qbatch</code>
|valign="top"|&nbsp;
|valign="top"|&nbsp;
|-
|-
|colspan="3" align="center"|'''Memory and Processes'''
|valign="top"|<code>ps aux</code>,<br /><code>ps -edf</code>,<br /><code>top</code>
|-
|valign="top"|<code>ps aux</code>
|valign="top"|<code>wrkactjob</code>
|valign="top"|<code>wrkactjob</code>
|valign="top"|&nbsp;
|valign="top"|&nbsp;
|-
|-
|colspan="3" align="center"|'''Disk and I/O'''
|colspan="3"|'''Disk and I/O'''
|-
|valign="top"|<code>df</code>
|valign="top"|<code>strsst</code>
|valign="top"|Access to precise disk space stats is available within ''system service tools'' only.
|-
|valign="top"|<code>fsck</code>
|valign="top"|<code>rclstg</code>
|valign="top"|System needs to be in restricted mode.
|-
|-
|valign="top"|<code>iostat -x</code>
|valign="top"|<code>iostat -x</code>
|valign="top"|<code>wrkdsksts</code>
|valign="top"|<code>wrkdsksts</code>
|valign="top"|&nbsp;
|valign="top"|&nbsp;
|-
|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>netstat</code>,<br /><code>wrkappnsts</code>
|valign="top"|<code>netstat</code>
|valign="top"|Surprise, command has same name!<br />The latter is for SNA APPN.
|-
|colspan="3"|'''Development'''
|-
|valign="top"|<code>cc</code>
|valign="top"|<code>crtcmod</code>
|valign="top"|Create Object File from C-Source.
|-
|valign="top"|<code>ld</code>
|valign="top"|<code>crtpgm</code>,<br><code>crtsrvpgm</code>
|valign="top"|Create runnable Program from Object File(s),<br>create Service Program ("Shared Library") from Object File(s).
|-
|valign="top"|<code>make</code>
|valign="top"|&nbsp;
|valign="top"|There is a crude port of ''make'' in the QUSRTOOLS library called [[Setting up TMKMAKE|TMKMAKE]]. See ''QUSRTOOLS/QATTINFO.TMKINFO'' for details.<ref>See also [https://www.mcpressonline.com/programming-other/general/programming-with-make-on-the-as400-part-i Programming with Make on the AS/400, Part I], and [https://www.mcpressonline.com/programming-other/general/programming-with-make-on-the-as400-part-2 Programming with Make on the AS/400, Part 2] on McPress Online.</ref>
|-
|valign="top"|<code>configure</code>
|valign="top"|&thinsp;
|valign="top"|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.
|-
|valign="top"|<code>diff</code>
|valign="top"|<code>cmppfm</code>
|valign="top"|&nbsp;
|-
|valign="top"|<code>patch</code>
|valign="top"|<code>mrgsrc</code>
|valign="top"|&nbsp;
|-
|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>mailx</code>
|valign="top"|<code>dspmsg</code>,<br /><code>snddst</code>
|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.
|-
|valign="top"|<code>mt</code>
|valign="top"|<code>dsptap</code>, <code>chktap</code>
|valign="top"|&nbsp;
|-
|valign="top"|<code>mysql</code>,<br /><code>isql</code>
|valign="top"|<code>strsql</code>
|valign="top"|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 ==
* [[Basic Commands]]
== Footnotes ==
<references/>


[[Category: Basic Knowledge‏]]
[[Category: Basic Knowledge‏]]

Latest revision as of 12:22, 12 February 2023

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