| DCL | Unix | Notes |
|---|---|---|
DIRECTORY | ls | |
DIRECTORY/SIZE/DATE/OWNER/PROTECTION | ls -l | Sizes are in 512-byte blocks. |
DIRECTORY/FULL LOGIN.COM | stat .profile | Also shows record format and other RMS attributes Unix has no concept of. |
DIRECTORY [...]*.LOG | find . -name '*.log' | [...] means "this directory and everything below it". |
DIRECTORY/SINCE=TODAY | find . -maxdepth 1 -newermt today | -newermt is GNU and BSD find; both Linux and macOS have it. |
DIRECTORY/SIZE=ALLOCATION/GRAND_TOTAL [...] | du -sh . | Total space used by this tree, in blocks. |
SHOW DEVICES D | df -h | Lists disks with free blocks. |
| DCL | Unix | Notes |
|---|---|---|
TYPE NOTES.TXT | cat notes.txt | |
TYPE/PAGE NOTES.TXT | less notes.txt | |
TYPE/HEAD=10 NOTES.TXT | head -n 10 notes.txt | /HEAD and /TAIL need OpenVMS V8.4 or later. |
TYPE/TAIL=10 NOTES.TXT | tail -n 10 notes.txt | |
CREATE NOTES.TXT | cat > notes.txt | Type the text, then end with Ctrl-Z (Ctrl-D on Unix). |
COPY A.TXT B.TXT | cp a.txt b.txt | |
BACKUP [.SRC...]*.*;* [.DEST...] | cp -R src dest | BACKUP is the usual way to copy a whole tree with its versions and attributes. |
RENAME A.TXT B.TXT | mv a.txt b.txt | |
DELETE NOTES.TXT;* | rm notes.txt | A version is required: ;* deletes all of them, ;3 just one. |
DELETE/CONFIRM *.TMP;* | rm -i *.tmp | |
PURGE | (none) | Deletes old versions, keeping the newest. Unix files have no versions to purge. |
APPEND A.TXT B.TXT | cat a.txt >> b.txt | |
SET FILE/ENTER=ALIAS.TXT NOTES.TXT | ln notes.txt alias.txt | A second directory entry for the same file, like a hard link. There are no symlinks; logical names fill that role. |
DIFFERENCES A.TXT B.TXT | diff a.txt b.txt | With one argument it compares the two newest versions of the file. |
SORT IN.TXT OUT.TXT | sort in.txt > out.txt | |
DUMP FILE.BIN | hexdump -C file.bin | |
CHECKSUM/ALGORITHM=MD5 FILE.BIN | md5sum file.bin | The result goes into the symbol CHECKSUM$CHECKSUM; show it with SHOW SYMBOL CHECKSUM$CHECKSUM. On macOS it's md5. |
EDIT/TPU NOTES.TXT | nano notes.txt | EVE, the TPU editor, is the closest thing to nano or vi. Ctrl-Z saves and exits. |
| DCL | Unix | Notes |
|---|---|---|
SEARCH NOTES.TXT "error" | grep -i error notes.txt | SEARCH ignores case by default; add /EXACT for a case-sensitive match. |
SEARCH/EXACT NOTES.TXT "Error" | grep Error notes.txt | |
SEARCH/MATCH=NOR NOTES.TXT "debug" | grep -v debug notes.txt | |
SEARCH [...]*.COM "SSH$" | grep -r 'SSH\$' . | Search a whole tree. |
SEARCH/WINDOW=(3,3) LOG.TXT "fail" | grep -C 3 fail log.txt | Three lines of context before and after each match. |
| DCL | Unix | Notes |
|---|---|---|
CREATE/DIRECTORY [.NOTES] | mkdir notes | |
CREATE/DIRECTORY [.A.B.C] | mkdir -p a/b/c | Intermediate directories are created automatically. |
SET SECURITY/PROTECTION=(O:RWED) NOTES.DIR;1 | (none) | Directories aren't deletable by default; this makes one deletable. |
DELETE NOTES.DIR;1 | rmdir notes | Must be empty. There's no classic one-step rm -r: delete the files, then the directories from the bottom up. |
VMS protection has four classes (System, Owner, Group, World) and four rights (Read, Write, Execute, Delete), plus optional ACLs.
| DCL | Unix | Notes |
|---|---|---|
SHOW SECURITY NOTES.TXT | ls -l notes.txt | |
SET SECURITY/PROTECTION=(W:RE) NOTES.TXT | chmod o+rx notes.txt | |
SET SECURITY/PROTECTION=(G,W) NOTES.TXT | chmod go-rwx notes.txt | A class with no rights listed loses all of them. |
SET SECURITY/OWNER=[200,201] NOTES.TXT | chown user:group notes.txt | Owners are UICs: [group,member]. |
SET SECURITY/ACL=(IDENTIFIER=JDOE,ACCESS=READ) NOTES.TXT | setfacl -m u:jdoe:r notes.txt | On macOS: chmod +a "jdoe allow read" notes.txt. |
SET PROTECTION=(S:RWED,O:RWED,G,W)/DEFAULT | umask 077 | Default protection for new files. |
| DCL | Unix | Notes |
|---|---|---|
SHOW SYSTEM | ps -e | |
SHOW PROCESS | ps -p $$ | Your own process. /ALL adds quotas, privileges and devices. |
MONITOR PROCESSES/TOPCPU | top | Ctrl-Z to quit. |
STOP/IDENTIFICATION=2040011C | kill -9 1234 | STOP is immediate; there's no polite SIGTERM equivalent. |
SET PROCESS/PRIORITY=2 | renice 10 -p $$ | Higher numbers mean higher priority on VMS, the opposite of nice values. |
RUN PROG.EXE | ./prog | |
MCR AUTHORIZE | /usr/sbin/prog | MCR runs a program from SYS$SYSTEM and can pass it arguments, much like running a tool from /usr/sbin. |
SPAWN | sh | A subprocess shell. LOGOUT returns to the parent. |
SPAWN/NOWAIT @LONGJOB.COM | ./longjob.sh & | |
SUBMIT JOB.COM | nohup ./job.sh & | Runs in a batch queue and writes a log file to your home directory. |
SUBMIT/AFTER="TOMORROW+02:00" JOB.COM | echo ./job.sh | at 02:00 tomorrow | No cron: recurring jobs resubmit themselves at the end of each run. |
SHOW ENTRY | atq | |
DELETE/ENTRY=123 | atrm 123 | |
WAIT 00:00:05 | sleep 5 | |
Ctrl-Y | Ctrl-C | Interrupt the running program. |
Ctrl-T | Ctrl-T | Shows what the process is doing. Works on macOS and BSD (SIGINFO), not on Linux. |
DCL symbols act like shell variables, and logical names act like environment variables and symlinks combined.
| DCL | Unix | Notes |
|---|---|---|
NAME = "value" | NAME=value | Local to the current command procedure. |
NAME == "value" | export NAME=value | Global: visible everywhere in your process. |
SHOW SYMBOL NAME | echo $NAME | |
WRITE SYS$OUTPUT "Hello, ''NAME'" | echo "Hello, $NAME" | Inside quotes, ''NAME' substitutes the symbol. |
LL :== DIRECTORY/SIZE/DATE | alias ll='ls -l' | |
DEFINE WORK SYS$LOGIN:[NOTES] | export WORK=~/notes | Unlike a variable, a logical works anywhere a path goes: DIR WORK:. |
SHOW LOGICAL | env | |
DEASSIGN WORK | unset WORK | |
@SCRIPT.COM A B | sh script.sh a b | Arguments arrive as P1 to P8. |
IF F$SEARCH("NOTES.TXT") .NES. "" THEN TYPE NOTES.TXT | [ -e notes.txt ] && cat notes.txt | |
SHOW SYMBOL $STATUS | echo $? | Odd values mean success, even values mean failure. |
ON ERROR THEN EXIT | set -e | |
SET VERIFY | set -x | |
INQUIRE ANSWER "Continue" | read -p "Continue? " ANSWER | |
PIPE SHOW SYSTEM | SEARCH SYS$PIPE SSH | ps -e | grep ssh | Pipes need the PIPE prefix; SYS$PIPE is the standard input. |
PIPE SHOW SYSTEM > PROCS.TXT | ps -e > procs.txt | Many commands also accept /OUTPUT=file. |
RECALL/ALL | history | |
HELP SEARCH | man grep | |
SYS$LOGIN:LOGIN.COM | ~/.profile | Runs at each login. |
SYS$MANAGER:SYLOGIN.COM | /etc/profile | Runs at every user's login. |
SYS$MANAGER:SYSTARTUP_VMS.COM | /etc/rc.local | Site-specific startup at boot. The modern Linux counterpart is a systemd unit. |
| DCL | Unix | Notes |
|---|---|---|
SHOW USERS | who | |
WRITE SYS$OUTPUT F$GETJPI("","USERNAME") | whoami | |
SHOW PROCESS/PRIVILEGES | id | |
SET PASSWORD | passwd | |
SET PROCESS/PRIVILEGES=SYSPRV | sudo -s | Turns on a privilege your account is already authorized to hold. No password prompt. |
MCR AUTHORIZE ADD JDOE/... | useradd jdoe | See the Users section of the cheat sheet for the full ADD command. |
MCR AUTHORIZE MODIFY JDOE/FLAGS=DISUSER | usermod -L jdoe | |
MCR AUTHORIZE REMOVE JDOE | userdel jdoe | |
SHOW QUOTA | quota | |
LOGOUT | exit |
| DCL | Unix | Notes |
|---|---|---|
SHOW TIME | date | |
SHOW SYSTEM/NOPROCESS | uptime | The header line includes the uptime. |
WRITE SYS$OUTPUT F$GETSYI("VERSION") | uname -r | |
WRITE SYS$OUTPUT F$GETSYI("NODENAME") | hostname | |
SHOW MEMORY | free -h | On macOS: vm_stat. |
SHOW CPU | lscpu | On macOS: sysctl -n machdep.cpu.brand_string. |
SHOW DEVICES/FULL DKA0: | lsblk | On macOS: diskutil info disk0. |
TYPE SYS$MANAGER:OPERATOR.LOG | journalctl | System messages. On macOS: log show. |
SHOW ERROR | dmesg | Device error counts rather than a kernel log. |
PRODUCT SHOW PRODUCT | dpkg -l | Installed software. Elsewhere: rpm -qa, brew list. |
PRODUCT INSTALL OPENSSH | apt install openssh-server | PCSI kits are installed from files in the current directory, not a remote repository. |
PRODUCT REMOVE OPENSSH | apt remove openssh-server | |
MOUNT DKA100: DATA | mount /dev/sdb1 /mnt/data | |
DISMOUNT DKA100: | umount /mnt/data | |
INITIALIZE DKA100: DATA | mkfs /dev/sdb1 | Erases the disk. |
ANALYZE/DISK_STRUCTURE DKA0: | fsck /dev/sda1 | |
BACKUP [...]*.*;* SAVE.BCK/SAVE_SET | tar cf save.tar . | |
BACKUP/LIST SAVE.BCK/SAVE_SET | tar tf save.tar | |
BACKUP SAVE.BCK/SAVE_SET [.RESTORE...] | tar xf save.tar -C restore | Restores into a RESTORE subdirectory. |
REPLY/ALL "Going down in 5 minutes" | wall "Going down in 5 minutes" | |
@SYS$SYSTEM:SHUTDOWN | sudo shutdown -h now | Interactive: it asks whether to reboot, so it also covers shutdown -r. |
| DCL | Unix | Notes |
|---|---|---|
TCPIP SHOW INTERFACE | ip addr | On macOS: ifconfig. |
TCPIP SHOW ROUTE | ip route | On macOS: netstat -rn. |
TCPIP PING example.com | ping example.com | |
TCPIP TRACEROUTE example.com | traceroute example.com | |
TCPIP SHOW HOST example.com | host example.com | |
TCPIP SHOW DEVICE_SOCKET | ss -tan | Open sockets. On macOS: netstat -an. |
TCPIP SHOW SERVICE | systemctl list-units --type=service | Network services and whether they're enabled. |
TCPIP ENABLE SERVICE SSHD22 | systemctl start sshd | |
TCPIP SET HOST FILESERVER/ADDRESS=192.0.2.10 | echo "192.0.2.10 fileserver" >> /etc/hosts | Add a static host name. |
SSH user@host | ssh user@host | If SSH isn't recognised, run @SSH$ROOT:[BIN]SSH$DEFINE_COMMANDS.COM ALL first. |
FTP host | ftp host | |
TELNET host | telnet host |
A Boxing Octopus Creative Project. Copyright 2026 All rights reserved.