1b6cee71dSXin LI 2b6cee71dSXin LI#------------------------------------------------------------------------------ 3*898496eeSXin LI# $File: commands,v 1.73 2022/11/06 18:39:23 christos Exp $ 4b6cee71dSXin LI# commands: file(1) magic for various shells and interpreters 5b6cee71dSXin LI# 6b6cee71dSXin LI#0 string/w : shell archive or script for antique kernel text 743a5ec4eSXin LI0 string/fwt #!\ /bin/sh POSIX shell script text executable 8b6cee71dSXin LI!:mime text/x-shellscript 943a5ec4eSXin LI0 string/fwb #!\ /bin/sh POSIX shell script executable (binary data) 10b6cee71dSXin LI!:mime text/x-shellscript 11*898496eeSXin LI>10 string #\040This\040script\040was\040generated\040using\040Makeself \b, self-executable archive 12*898496eeSXin LI>>53 string x \b, Makeself %s 13b6cee71dSXin LI 1443a5ec4eSXin LI0 string/fwt #!\ /bin/csh C shell script text executable 15b6cee71dSXin LI!:mime text/x-shellscript 16b6cee71dSXin LI 17b6cee71dSXin LI# korn shell magic, sent by George Wu, gwu@clyde.att.com 1843a5ec4eSXin LI0 string/fwt #!\ /bin/ksh Korn shell script text executable 19b6cee71dSXin LI!:mime text/x-shellscript 2043a5ec4eSXin LI0 string/fwb #!\ /bin/ksh Korn shell script executable (binary data) 21b6cee71dSXin LI!:mime text/x-shellscript 22b6cee71dSXin LI 2343a5ec4eSXin LI0 string/fwt #!\ /bin/tcsh Tenex C shell script text executable 24b6cee71dSXin LI!:mime text/x-shellscript 2543a5ec4eSXin LI0 string/fwt #!\ /usr/bin/tcsh Tenex C shell script text executable 26b6cee71dSXin LI!:mime text/x-shellscript 2743a5ec4eSXin LI0 string/fwt #!\ /usr/local/tcsh Tenex C shell script text executable 28b6cee71dSXin LI!:mime text/x-shellscript 2943a5ec4eSXin LI0 string/fwt #!\ /usr/local/bin/tcsh Tenex C shell script text executable 30b6cee71dSXin LI!:mime text/x-shellscript 31b6cee71dSXin LI 32b6cee71dSXin LI# 33b6cee71dSXin LI# zsh/ash/ae/nawk/gawk magic from cameron@cs.unsw.oz.au (Cameron Simpson) 3443a5ec4eSXin LI0 string/fwt #!\ /bin/zsh Paul Falstad's zsh script text executable 35b6cee71dSXin LI!:mime text/x-shellscript 3643a5ec4eSXin LI0 string/fwt #!\ /usr/bin/zsh Paul Falstad's zsh script text executable 37b6cee71dSXin LI!:mime text/x-shellscript 3843a5ec4eSXin LI0 string/fwt #!\ /usr/local/bin/zsh Paul Falstad's zsh script text executable 39b6cee71dSXin LI!:mime text/x-shellscript 40a4d6d3b8SXin LI0 string/fwt #!\ /usr/bin/env\ zsh Paul Falstad's zsh script text executable 41d38c30c0SXin LI!:mime text/x-shellscript 42d38c30c0SXin LI 4343a5ec4eSXin LI0 string/fwt #!\ /bin/ash Neil Brown's ash script text executable 44b6cee71dSXin LI!:mime text/x-shellscript 4543a5ec4eSXin LI0 string/fwt #!\ /usr/bin/ash Neil Brown's ash script text executable 46b6cee71dSXin LI!:mime text/x-shellscript 4743a5ec4eSXin LI0 string/fwt #!\ /usr/local/bin/ash Neil Brown's ash script text executable 4843a5ec4eSXin LI!:mime text/x-shellscript 4943a5ec4eSXin LI0 string/fwt #!\ /usr/local/bin/ae Neil Brown's ae script text executable 5043a5ec4eSXin LI!:mime text/x-shellscript 5143a5ec4eSXin LI0 string/fwt #!\ /bin/nawk new awk script text executable 52b6cee71dSXin LI!:mime text/x-nawk 5343a5ec4eSXin LI0 string/fwt #!\ /usr/bin/nawk new awk script text executable 54b6cee71dSXin LI!:mime text/x-nawk 5543a5ec4eSXin LI0 string/fwt #!\ /usr/local/bin/nawk new awk script text executable 56b6cee71dSXin LI!:mime text/x-nawk 5743a5ec4eSXin LI0 string/fwt #!\ /bin/gawk GNU awk script text executable 58b6cee71dSXin LI!:mime text/x-gawk 59b6cee71dSXin LI0 string/wt #!\ /usr/bin/gawk GNU awk script text executable 60b6cee71dSXin LI!:mime text/x-gawk 6143a5ec4eSXin LI0 string/fwt #!\ /usr/local/bin/gawk GNU awk script text executable 62b6cee71dSXin LI!:mime text/x-gawk 63b6cee71dSXin LI# 6443a5ec4eSXin LI0 string/fwt #!\ /bin/awk awk script text executable 65b6cee71dSXin LI!:mime text/x-awk 6643a5ec4eSXin LI0 string/fwt #!\ /usr/bin/awk awk script text executable 67b6cee71dSXin LI!:mime text/x-awk 6840427ccaSGordon Tetlow0 regex/4096 =^[\040\t\f\r\n]{0,100}BEGIN[\040\t\f\r\n]{0,100}[{] awk or perl script text 69b6cee71dSXin LI 70b6cee71dSXin LI# AT&T Bell Labs' Plan 9 shell 7143a5ec4eSXin LI0 string/fwt #!\ /bin/rc Plan 9 rc shell script text executable 72b6cee71dSXin LI 73b6cee71dSXin LI# bash shell magic, from Peter Tobias (tobias@server.et-inf.fho-emden.de) 7443a5ec4eSXin LI0 string/fwt #!\ /bin/bash Bourne-Again shell script text executable 75b6cee71dSXin LI!:mime text/x-shellscript 7643a5ec4eSXin LI0 string/fwb #!\ /bin/bash Bourne-Again shell script executable (binary data) 77b6cee71dSXin LI!:mime text/x-shellscript 7843a5ec4eSXin LI0 string/fwt #!\ /usr/bin/bash Bourne-Again shell script text executable 79b6cee71dSXin LI!:mime text/x-shellscript 8043a5ec4eSXin LI0 string/fwb #!\ /usr/bin/bash Bourne-Again shell script executable (binary data) 81b6cee71dSXin LI!:mime text/x-shellscript 8243a5ec4eSXin LI0 string/fwt #!\ /usr/local/bash Bourne-Again shell script text executable 83b6cee71dSXin LI!:mime text/x-shellscript 8443a5ec4eSXin LI0 string/fwb #!\ /usr/local/bash Bourne-Again shell script executable (binary data) 85b6cee71dSXin LI!:mime text/x-shellscript 8643a5ec4eSXin LI0 string/fwt #!\ /usr/local/bin/bash Bourne-Again shell script text executable 87b6cee71dSXin LI!:mime text/x-shellscript 8843a5ec4eSXin LI0 string/fwb #!\ /usr/local/bin/bash Bourne-Again shell script executable (binary data) 89b6cee71dSXin LI!:mime text/x-shellscript 9043a5ec4eSXin LI0 string/fwt #!\ /usr/bin/env\ bash Bourne-Again shell script text executable 915f0216bdSXin LI!:mime text/x-shellscript 92b6cee71dSXin LI 932726a701SXin LI# Fish shell magic 942726a701SXin LI# From: Benjamin Lowry <ben@ben.gmbh> 9543a5ec4eSXin LI0 string/fwt #!\ /usr/local/bin/fish fish shell script text executable 962726a701SXin LI!:mime text/x-shellscript 9743a5ec4eSXin LI0 string/fwt #!\ /usr/bin/fish fish shell script text executable 982726a701SXin LI!:mime text/x-shellscript 9943a5ec4eSXin LI0 string/fwt #!\ /usr/bin/env\ fish fish shell script text executable 1002726a701SXin LI!:mime text/x-shellscript 1012726a701SXin LI 10243a5ec4eSXin LI0 search/1/fwt #!\ /usr/bin/tclsh Tcl/Tk script text executable 1032726a701SXin LI!:mime text/x-tcl 1042726a701SXin LI 10543a5ec4eSXin LI0 search/1/fwt #!\ /usr/bin/texlua LuaTex script text executable 1062726a701SXin LI!:mime text/x-luatex 1072726a701SXin LI 10843a5ec4eSXin LI0 search/1/fwt #!\ /usr/bin/luatex LuaTex script text executable 1092726a701SXin LI!:mime text/x-luatex 1102726a701SXin LI 11143a5ec4eSXin LI0 search/1/fwt #!\ /usr/bin/stap Systemtap script text executable 1122726a701SXin LI!:mime text/x-systemtap 1132726a701SXin LI 11443a5ec4eSXin LI# From: Kylie McClain <kylie@somas.is> 11543a5ec4eSXin LI# Type: execline scripts 11643a5ec4eSXin LI# URL: https://skarnet.org/software/execline/ 11743a5ec4eSXin LI0 string/fwt #!\ /command/execlineb execline script text executable 11843a5ec4eSXin LI!:mime text/x-execline 11943a5ec4eSXin LI0 string/fwt #!\ /bin/execlineb execline script text executable 12043a5ec4eSXin LI!:mime text/x-execline 12143a5ec4eSXin LI0 string/fwt #!\ /usr/bin/execlineb execline script text executable 12243a5ec4eSXin LI!:mime text/x-execline 12343a5ec4eSXin LI0 string/fwt #!\ /usr/bin/env\ execlineb execline script text executable 12443a5ec4eSXin LI!:mime text/x-execline 1252726a701SXin LI 12643a5ec4eSXin LI0 string #! 12743a5ec4eSXin LI>0 regex \^#!.*/bin/execlineb([[:space:]].*)*$ execline script text executable 12843a5ec4eSXin LI!:mime text/x-execline 1292726a701SXin LI 130b6cee71dSXin LI# PHP scripts 131b6cee71dSXin LI# Ulf Harnhammar <ulfh@update.uu.se> 132b6cee71dSXin LI0 search/1/c =<?php PHP script text 13340427ccaSGordon Tetlow!:strength + 30 134b6cee71dSXin LI!:mime text/x-php 135b6cee71dSXin LI0 search/1 =<?\n PHP script text 136b6cee71dSXin LI!:mime text/x-php 137b6cee71dSXin LI0 search/1 =<?\r PHP script text 138b6cee71dSXin LI!:mime text/x-php 139b6cee71dSXin LI0 search/1/w #!\ /usr/local/bin/php PHP script text executable 140b6cee71dSXin LI!:strength + 10 141b6cee71dSXin LI!:mime text/x-php 142b6cee71dSXin LI0 search/1/w #!\ /usr/bin/php PHP script text executable 143b6cee71dSXin LI!:strength + 10 144b6cee71dSXin LI!:mime text/x-php 14548c779cdSXin LI# Smarty compiled template, https://www.smarty.net/ 146b6cee71dSXin LI# Elan Ruusamae <glen@delfi.ee> 1473e41d09dSXin LI0 string =<?php 1483e41d09dSXin LI>5 regex [\ \n] 1493e41d09dSXin LI>>6 string /*\ Smarty\ version Smarty compiled template 15020f8619dSXin LI>>>24 regex [0-9.]+ \b, version %s 151b6cee71dSXin LI!:mime text/x-php 152b6cee71dSXin LI 153b6cee71dSXin LI0 string Zend\x00 PHP script Zend Optimizer data 154b6cee71dSXin LI 155a4d6d3b8SXin LI# From: Anatol Belski <ab@php.net> 156a4d6d3b8SXin LI0 string OPCACHE 157a4d6d3b8SXin LI>7 ubyte 0 PHP opcache filecache data 158a4d6d3b8SXin LI 159a4d6d3b8SXin LI0 search/64 --TEST-- 160a4d6d3b8SXin LI>16 search/64 --FILE-- 161a4d6d3b8SXin LI>24 search/8192 --EXPECT PHP core test 162a4d6d3b8SXin LI!:ext phpt 163a4d6d3b8SXin LI 164a4d6d3b8SXin LI# https://www.php.net/manual/en/phar.fileformat.signature.php 165a4d6d3b8SXin LI-4 string GBMB PHP phar archive 166a4d6d3b8SXin LI>-8 ubyte 0x1 with MD5 signature 167a4d6d3b8SXin LI!:ext phar 168a4d6d3b8SXin LI>-8 ubyte 0x2 with SHA1 signature 169a4d6d3b8SXin LI!:ext phar 170a4d6d3b8SXin LI>-8 ubyte 0x3 with SHA256 signature 171a4d6d3b8SXin LI!:ext phar 172a4d6d3b8SXin LI>-8 ubyte 0x4 with SHA512 signature 173a4d6d3b8SXin LI!:ext phar 174a4d6d3b8SXin LI>-8 ubyte 0x10 with OpenSSL signature 175a4d6d3b8SXin LI!:ext phar 176a4d6d3b8SXin LI>-8 ubyte 0x11 with OpenSSL SHA256 signature 177a4d6d3b8SXin LI!:ext phar 178a4d6d3b8SXin LI>-8 ubyte 0x12 with OpenSSL SHA512 signature 179a4d6d3b8SXin LI!:ext phar 180a4d6d3b8SXin LI 181b6cee71dSXin LI0 string/t $! DCL command file 182b6cee71dSXin LI 183b6cee71dSXin LI# Type: Pdmenu 18448c779cdSXin LI# URL: https://packages.debian.org/pdmenu 185b6cee71dSXin LI# From: Edward Betts <edward@debian.org> 186b6cee71dSXin LI0 string #!/usr/bin/pdmenu Pdmenu configuration file text 187a5d223e6SXin LI 188a5d223e6SXin LI# From Danny Weldon 189a5d223e6SXin LI0 string \x0b\x13\x08\x00 190a5d223e6SXin LI>0x04 uleshort <4 ksh byte-code version %d 191*898496eeSXin LI 192*898496eeSXin LI# From: arno <arenevier@fdn.fr> 193*898496eeSXin LI# mozilla xpconnect typelib 194*898496eeSXin LI# see https://www.mozilla.org/scriptable/typelib_file.html 195*898496eeSXin LI0 string XPCOM\nTypeLib\r\n\032 XPConnect Typelib 196*898496eeSXin LI>0x10 byte x version %d 197*898496eeSXin LI>>0x11 byte x \b.%d 198*898496eeSXin LI 199*898496eeSXin LI0 string/fwt #!\ /usr/bin/env\ runghc GHC script executable 200*898496eeSXin LI0 string/fwt #!\ /usr/bin/env\ runhaskell Haskell script executable 201*898496eeSXin LI0 string/fwt #!\ /usr/bin/env\ julia Julia script executable 202