UNIX-User's Cheater Table: Difference between revisions
Jump to navigation
Jump to search
(Comment) |
(+Link) |
||
(22 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
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'', | 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 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"| | |||
|- | |||
|valign="top"|<code>chmod</code> | |||
|valign="top"|<code>chgaut</code>,<br /><code>grtobjaut</code>,<br /><code>rvkobjaut</code> | |||
|valign="top"| | |||
|- | |||
|valign="top"|<code>chown</code>,<br /><code>chgrp</code> | |||
|valign="top"|<code>chgobjown</code> | |||
|valign="top"| | |valign="top"| | ||
|- | |- | ||
|valign="top"|<code>cp</code> | |valign="top"|<code>cp</code> | ||
|valign="top"|<code>crtdupobj</code> | |valign="top"|<code>crtdupobj</code> | ||
|valign="top"| | |||
|- | |||
|valign="top"|<code>dump</code>,<br /><code>tar c</code> | |||
|valign="top"|<code>sav(lib|obj| )</code> | |||
|valign="top"| | |valign="top"| | ||
|- | |- | ||
Line 26: | Line 38: | ||
|valign="top"|<code>mv</code> | |valign="top"|<code>mv</code> | ||
|valign="top"|<code>rnmobj</code><br /><code>movobj</code> | |valign="top"|<code>rnmobj</code><br /><code>movobj</code> | ||
|valign="top"| | |||
|- | |||
|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"| | |||
|- | |||
|valign="top"|<code>test -f</code> | |||
|valign="top"|<code>chkobj</code><br /><code>chkifsobj</code> | |||
|valign="top"| | |valign="top"| | ||
|- | |- | ||
|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"| | |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 42: | Line 62: | ||
|valign="top"| | |valign="top"| | ||
|- | |- | ||
|valign="top"|<code>ps aux</code><br /><code>top</code> | |valign="top"|<code>ps aux</code>,<br /><code>ps -edf</code>,<br /><code>top</code> | ||
|valign="top"|<code>wrkactjob</code> | |valign="top"|<code>wrkactjob</code> | ||
|valign="top"| | |valign="top"| | ||
Line 51: | Line 71: | ||
|valign="top"|<code>strsst</code> | |valign="top"|<code>strsst</code> | ||
|valign="top"|Access to precise disk space stats is available within ''system service tools'' only. | |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"| | |||
|- | |||
|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"| | |||
|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"|  | |||
|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"| | |||
|- | |||
|valign="top"|<code>patch</code> | |||
|valign="top"|<code>mrgsrc</code> | |||
|valign="top"| | |valign="top"| | ||
|- | |- | ||
Line 63: | Line 127: | ||
|- | |- | ||
|valign="top"|<code>mailx</code> | |valign="top"|<code>mailx</code> | ||
|valign="top"|<code>dspmsg</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). | |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"| | |||
|- | |||
|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. | 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
- ↑ See also Programming with Make on the AS/400, Part I, and Programming with Make on the AS/400, Part 2 on McPress Online.