typescript-virtual-container 1.5.2 → 1.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (364) hide show
  1. package/README.md +43 -23
  2. package/dist/.tsbuildinfo +1 -0
  3. package/dist/SSHMimic/executor.js +23 -5
  4. package/dist/commands/basename.d.ts +13 -0
  5. package/dist/commands/basename.js +45 -0
  6. package/dist/commands/file.d.ts +8 -0
  7. package/dist/commands/file.js +57 -0
  8. package/dist/commands/fun.d.ts +32 -0
  9. package/dist/commands/fun.js +172 -0
  10. package/dist/commands/ifconfig.d.ts +7 -0
  11. package/dist/commands/ifconfig.js +52 -0
  12. package/dist/commands/last.d.ts +13 -0
  13. package/dist/commands/last.js +68 -0
  14. package/dist/commands/manuals-bundle.js +598 -6
  15. package/dist/commands/registry.js +24 -2
  16. package/dist/commands/runtime.js +159 -106
  17. package/dist/commands/sh.js +5 -0
  18. package/dist/commands/tput.d.ts +13 -0
  19. package/dist/commands/tput.js +76 -0
  20. package/dist/commands/w.d.ts +7 -0
  21. package/dist/commands/w.js +38 -0
  22. package/dist/utils/expand.d.ts +12 -0
  23. package/dist/utils/expand.js +84 -0
  24. package/package.json +9 -3
  25. package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -50
  26. package/.github/ISSUE_TEMPLATE/feature_request.yml +0 -31
  27. package/.github/dependabot.yml +0 -27
  28. package/.github/pull_request_template.md +0 -21
  29. package/.github/workflows/create-pull-request.yml +0 -85
  30. package/.github/workflows/publish.yml +0 -25
  31. package/.github/workflows/test-battery.yml +0 -102
  32. package/.vscode/settings.json +0 -20
  33. package/CODE_OF_CONDUCT.md +0 -39
  34. package/CONTRIBUTING.md +0 -59
  35. package/HONEYPOT.md +0 -358
  36. package/SECURITY.md +0 -33
  37. package/benchmark-results.txt +0 -40
  38. package/benchmark-virtualshell.ts +0 -88
  39. package/biome.json +0 -37
  40. package/build.js +0 -22
  41. package/builds/fortune-nyx-v1.5.1-directbash-k6.1.0.mjs +0 -1768
  42. package/builds/fortune-nyx-v1.5.1-ssh-nosftp.js +0 -1768
  43. package/builds/fortune-nyx-v1.5.1-ssh.cjs +0 -1769
  44. package/builds/fortune-nyx-v1.5.1-web.min.js +0 -17022
  45. package/bun.lock +0 -244
  46. package/docs/.nojekyll +0 -1
  47. package/docs/app.js +0 -1755
  48. package/docs/assets/hierarchy.js +0 -1
  49. package/docs/assets/highlight.css +0 -162
  50. package/docs/assets/icons.js +0 -18
  51. package/docs/assets/icons.svg +0 -1
  52. package/docs/assets/main.js +0 -60
  53. package/docs/assets/navigation.js +0 -1
  54. package/docs/assets/search.js +0 -1
  55. package/docs/assets/style.css +0 -1633
  56. package/docs/classes/HoneyPot.html +0 -31
  57. package/docs/classes/IdleManager.html +0 -162
  58. package/docs/classes/SshClient.html +0 -66
  59. package/docs/classes/VirtualFileSystem.html +0 -279
  60. package/docs/classes/VirtualPackageManager.html +0 -63
  61. package/docs/classes/VirtualSftpServer.html +0 -169
  62. package/docs/classes/VirtualShell.html +0 -285
  63. package/docs/classes/VirtualSshServer.html +0 -182
  64. package/docs/classes/VirtualUserManager.html +0 -276
  65. package/docs/demo.html +0 -82
  66. package/docs/functions/assertDiff.html +0 -6
  67. package/docs/functions/diffSnapshots.html +0 -7
  68. package/docs/functions/formatDiff.html +0 -6
  69. package/docs/functions/getArg.html +0 -13
  70. package/docs/functions/getFlag.html +0 -15
  71. package/docs/functions/ifFlag.html +0 -11
  72. package/docs/hierarchy.html +0 -1
  73. package/docs/index.html +0 -1869
  74. package/docs/interfaces/AuditLogEntry.html +0 -6
  75. package/docs/interfaces/CommandContext.html +0 -22
  76. package/docs/interfaces/CommandResult.html +0 -26
  77. package/docs/interfaces/ExecStream.html +0 -11
  78. package/docs/interfaces/HoneyPotStats.html +0 -16
  79. package/docs/interfaces/IdleManagerOptions.html +0 -7
  80. package/docs/interfaces/InstalledPackage.html +0 -20
  81. package/docs/interfaces/NanoEditorSession.html +0 -8
  82. package/docs/interfaces/PackageDefinition.html +0 -30
  83. package/docs/interfaces/PackageFile.html +0 -8
  84. package/docs/interfaces/PasswordChallenge.html +0 -16
  85. package/docs/interfaces/RemoveOptions.html +0 -4
  86. package/docs/interfaces/ShellEnv.html +0 -6
  87. package/docs/interfaces/ShellModule.html +0 -14
  88. package/docs/interfaces/ShellProperties.html +0 -14
  89. package/docs/interfaces/ShellStream.html +0 -11
  90. package/docs/interfaces/SudoChallenge.html +0 -24
  91. package/docs/interfaces/VfsBaseNode.html +0 -12
  92. package/docs/interfaces/VfsDiff.html +0 -10
  93. package/docs/interfaces/VfsDiffEntry.html +0 -6
  94. package/docs/interfaces/VfsDiffModified.html +0 -10
  95. package/docs/interfaces/VfsDirectoryNode.html +0 -15
  96. package/docs/interfaces/VfsFileNode.html +0 -17
  97. package/docs/interfaces/VfsOptions.html +0 -26
  98. package/docs/interfaces/VfsSnapshot.html +0 -3
  99. package/docs/interfaces/VfsSnapshotBaseNode.html +0 -8
  100. package/docs/interfaces/VfsSnapshotDirectoryNode.html +0 -10
  101. package/docs/interfaces/VfsSnapshotFileNode.html +0 -12
  102. package/docs/interfaces/VirtualActiveSession.html +0 -12
  103. package/docs/interfaces/VirtualSftpServerOptions.html +0 -7
  104. package/docs/interfaces/VirtualShellVfsLike.html +0 -15
  105. package/docs/interfaces/VirtualShellVfsOptions.html +0 -3
  106. package/docs/interfaces/WriteFileOptions.html +0 -6
  107. package/docs/media/LICENSE +0 -21
  108. package/docs/modules.html +0 -1
  109. package/docs/types/ArgParseOptions.html +0 -4
  110. package/docs/types/CommandMode.html +0 -2
  111. package/docs/types/CommandOutcome.html +0 -2
  112. package/docs/types/IdleState.html +0 -1
  113. package/docs/types/VfsNodeStats.html +0 -2
  114. package/docs/types/VfsNodeType.html +0 -2
  115. package/docs/types/VfsPersistenceMode.html +0 -5
  116. package/docs/types/VfsSnapshotNode.html +0 -2
  117. package/examples/README.md +0 -288
  118. package/examples/app.js +0 -1755
  119. package/examples/app.ts +0 -299
  120. package/examples/build.js +0 -27
  121. package/examples/demo.html +0 -33
  122. package/examples/honeypot-audit.ts +0 -180
  123. package/examples/honeypot-export.ts +0 -253
  124. package/examples/honeypot-quickstart.ts +0 -110
  125. package/examples/index.html +0 -82
  126. package/examples/server.js +0 -55
  127. package/polyfills/buffer.js +0 -117
  128. package/polyfills/node_child_process/index.js +0 -2
  129. package/polyfills/node_crypto/index.js +0 -167
  130. package/polyfills/node_events/index.js +0 -9
  131. package/polyfills/node_fs/index.js +0 -202
  132. package/polyfills/node_fs/promises.js +0 -4
  133. package/polyfills/node_os/index.js +0 -9
  134. package/polyfills/node_path/index.js +0 -28
  135. package/polyfills/node_vm/index.js +0 -7
  136. package/polyfills/node_zlib/index.js +0 -3
  137. package/polyfills/process.js +0 -14
  138. package/polyfills/ssh2/index.js +0 -75
  139. package/scripts/build-all.mjs +0 -226
  140. package/scripts/build-names.mjs +0 -43
  141. package/scripts/generate-manuals-bundle.mjs +0 -49
  142. package/scripts/postinstall.js +0 -42
  143. package/scripts/publish-package.sh +0 -70
  144. package/src/Honeypot/index.ts +0 -457
  145. package/src/SSHClient/index.ts +0 -270
  146. package/src/SSHMimic/exec.ts +0 -49
  147. package/src/SSHMimic/executor.ts +0 -251
  148. package/src/SSHMimic/hostKey.ts +0 -21
  149. package/src/SSHMimic/index.ts +0 -337
  150. package/src/SSHMimic/loginBanner.ts +0 -36
  151. package/src/SSHMimic/loginFormat.ts +0 -10
  152. package/src/SSHMimic/prompt.ts +0 -14
  153. package/src/SSHMimic/sftp.ts +0 -883
  154. package/src/VirtualFileSystem/binaryPack.ts +0 -258
  155. package/src/VirtualFileSystem/index.ts +0 -1193
  156. package/src/VirtualFileSystem/internalTypes.ts +0 -43
  157. package/src/VirtualFileSystem/journal.ts +0 -171
  158. package/src/VirtualFileSystem/path.ts +0 -74
  159. package/src/VirtualPackageManager/index.ts +0 -1006
  160. package/src/VirtualShell/idleManager.ts +0 -137
  161. package/src/VirtualShell/index.ts +0 -475
  162. package/src/VirtualShell/shell.ts +0 -700
  163. package/src/VirtualShell/shellParser.ts +0 -285
  164. package/src/VirtualUserManager/index.ts +0 -758
  165. package/src/bun.d.ts +0 -1
  166. package/src/commands/adduser.ts +0 -103
  167. package/src/commands/alias.ts +0 -69
  168. package/src/commands/apt.ts +0 -233
  169. package/src/commands/awk.ts +0 -168
  170. package/src/commands/base64.ts +0 -29
  171. package/src/commands/cat.ts +0 -52
  172. package/src/commands/cd.ts +0 -25
  173. package/src/commands/chmod.ts +0 -85
  174. package/src/commands/clear.ts +0 -15
  175. package/src/commands/command-helpers.ts +0 -286
  176. package/src/commands/cp.ts +0 -83
  177. package/src/commands/curl.ts +0 -147
  178. package/src/commands/cut.ts +0 -36
  179. package/src/commands/date.ts +0 -30
  180. package/src/commands/declare.ts +0 -49
  181. package/src/commands/deluser.ts +0 -98
  182. package/src/commands/df.ts +0 -23
  183. package/src/commands/diff.ts +0 -43
  184. package/src/commands/dpkg.ts +0 -180
  185. package/src/commands/du.ts +0 -56
  186. package/src/commands/echo.ts +0 -58
  187. package/src/commands/env.ts +0 -23
  188. package/src/commands/exit.ts +0 -18
  189. package/src/commands/export.ts +0 -34
  190. package/src/commands/find.ts +0 -68
  191. package/src/commands/free.ts +0 -47
  192. package/src/commands/grep.ts +0 -116
  193. package/src/commands/groups.ts +0 -19
  194. package/src/commands/gzip.ts +0 -88
  195. package/src/commands/head.ts +0 -52
  196. package/src/commands/help.ts +0 -152
  197. package/src/commands/helpers.ts +0 -234
  198. package/src/commands/history.ts +0 -34
  199. package/src/commands/hostname.ts +0 -14
  200. package/src/commands/htop.ts +0 -20
  201. package/src/commands/id.ts +0 -19
  202. package/src/commands/index.ts +0 -9
  203. package/src/commands/kill.ts +0 -19
  204. package/src/commands/ln.ts +0 -71
  205. package/src/commands/ls.ts +0 -243
  206. package/src/commands/lsb-release.ts +0 -63
  207. package/src/commands/man.ts +0 -31
  208. package/src/commands/manuals/adduser.txt +0 -11
  209. package/src/commands/manuals/apt-cache.txt +0 -12
  210. package/src/commands/manuals/apt.txt +0 -20
  211. package/src/commands/manuals/awk.txt +0 -13
  212. package/src/commands/manuals/cat.txt +0 -14
  213. package/src/commands/manuals/cd.txt +0 -16
  214. package/src/commands/manuals/chmod.txt +0 -16
  215. package/src/commands/manuals/clear.txt +0 -10
  216. package/src/commands/manuals/cp.txt +0 -10
  217. package/src/commands/manuals/curl.txt +0 -20
  218. package/src/commands/manuals/date.txt +0 -14
  219. package/src/commands/manuals/declare.txt +0 -12
  220. package/src/commands/manuals/deluser.txt +0 -10
  221. package/src/commands/manuals/df.txt +0 -10
  222. package/src/commands/manuals/dpkg-query.txt +0 -11
  223. package/src/commands/manuals/dpkg.txt +0 -14
  224. package/src/commands/manuals/du.txt +0 -11
  225. package/src/commands/manuals/echo.txt +0 -11
  226. package/src/commands/manuals/false.txt +0 -10
  227. package/src/commands/manuals/find.txt +0 -11
  228. package/src/commands/manuals/free.txt +0 -12
  229. package/src/commands/manuals/grep.txt +0 -13
  230. package/src/commands/manuals/groups.txt +0 -10
  231. package/src/commands/manuals/gzip.txt +0 -11
  232. package/src/commands/manuals/head.txt +0 -10
  233. package/src/commands/manuals/help.txt +0 -11
  234. package/src/commands/manuals/history.txt +0 -11
  235. package/src/commands/manuals/hostname.txt +0 -10
  236. package/src/commands/manuals/id.txt +0 -10
  237. package/src/commands/manuals/kill.txt +0 -13
  238. package/src/commands/manuals/ls.txt +0 -20
  239. package/src/commands/manuals/lsb_release.txt +0 -14
  240. package/src/commands/manuals/mkdir.txt +0 -10
  241. package/src/commands/manuals/mv.txt +0 -10
  242. package/src/commands/manuals/nano.txt +0 -11
  243. package/src/commands/manuals/neofetch.txt +0 -10
  244. package/src/commands/manuals/node.txt +0 -13
  245. package/src/commands/manuals/npm.txt +0 -13
  246. package/src/commands/manuals/npx.txt +0 -13
  247. package/src/commands/manuals/passwd.txt +0 -11
  248. package/src/commands/manuals/ping.txt +0 -10
  249. package/src/commands/manuals/printf.txt +0 -11
  250. package/src/commands/manuals/ps.txt +0 -10
  251. package/src/commands/manuals/pwd.txt +0 -10
  252. package/src/commands/manuals/python3.txt +0 -13
  253. package/src/commands/manuals/readlink.txt +0 -10
  254. package/src/commands/manuals/return.txt +0 -10
  255. package/src/commands/manuals/rm.txt +0 -10
  256. package/src/commands/manuals/sed.txt +0 -11
  257. package/src/commands/manuals/set.txt +0 -11
  258. package/src/commands/manuals/shift.txt +0 -10
  259. package/src/commands/manuals/sleep.txt +0 -10
  260. package/src/commands/manuals/sort.txt +0 -12
  261. package/src/commands/manuals/source.txt +0 -11
  262. package/src/commands/manuals/ssh.txt +0 -11
  263. package/src/commands/manuals/stat.txt +0 -10
  264. package/src/commands/manuals/su.txt +0 -13
  265. package/src/commands/manuals/sudo.txt +0 -11
  266. package/src/commands/manuals/tail.txt +0 -10
  267. package/src/commands/manuals/tar.txt +0 -19
  268. package/src/commands/manuals/tee.txt +0 -10
  269. package/src/commands/manuals/test.txt +0 -11
  270. package/src/commands/manuals/touch.txt +0 -11
  271. package/src/commands/manuals/tr.txt +0 -10
  272. package/src/commands/manuals/trap.txt +0 -10
  273. package/src/commands/manuals/true.txt +0 -10
  274. package/src/commands/manuals/type.txt +0 -10
  275. package/src/commands/manuals/uname.txt +0 -12
  276. package/src/commands/manuals/uniq.txt +0 -12
  277. package/src/commands/manuals/unset.txt +0 -10
  278. package/src/commands/manuals/uptime.txt +0 -11
  279. package/src/commands/manuals/wc.txt +0 -12
  280. package/src/commands/manuals/wget.txt +0 -12
  281. package/src/commands/manuals/which.txt +0 -10
  282. package/src/commands/manuals/whoami.txt +0 -10
  283. package/src/commands/manuals/xargs.txt +0 -10
  284. package/src/commands/manuals-bundle.ts +0 -898
  285. package/src/commands/mkdir.ts +0 -31
  286. package/src/commands/mv.ts +0 -50
  287. package/src/commands/nano.ts +0 -38
  288. package/src/commands/neofetch.ts +0 -53
  289. package/src/commands/node.ts +0 -341
  290. package/src/commands/npm.ts +0 -132
  291. package/src/commands/passwd.ts +0 -50
  292. package/src/commands/ping.ts +0 -32
  293. package/src/commands/printf.ts +0 -129
  294. package/src/commands/ps.ts +0 -58
  295. package/src/commands/pwd.ts +0 -9
  296. package/src/commands/python.ts +0 -2229
  297. package/src/commands/read.ts +0 -46
  298. package/src/commands/registry.ts +0 -249
  299. package/src/commands/rm.ts +0 -42
  300. package/src/commands/runtime.ts +0 -378
  301. package/src/commands/sed.ts +0 -68
  302. package/src/commands/seq.ts +0 -43
  303. package/src/commands/set.ts +0 -29
  304. package/src/commands/sh.ts +0 -467
  305. package/src/commands/shift.ts +0 -63
  306. package/src/commands/sleep.ts +0 -20
  307. package/src/commands/sort.ts +0 -46
  308. package/src/commands/source.ts +0 -52
  309. package/src/commands/stat.ts +0 -61
  310. package/src/commands/su.ts +0 -72
  311. package/src/commands/sudo.ts +0 -76
  312. package/src/commands/tail.ts +0 -53
  313. package/src/commands/tar.ts +0 -102
  314. package/src/commands/tee.ts +0 -36
  315. package/src/commands/test.ts +0 -137
  316. package/src/commands/touch.ts +0 -28
  317. package/src/commands/tr.ts +0 -70
  318. package/src/commands/tree.ts +0 -20
  319. package/src/commands/true.ts +0 -27
  320. package/src/commands/type.ts +0 -48
  321. package/src/commands/uname.ts +0 -29
  322. package/src/commands/uniq.ts +0 -39
  323. package/src/commands/unset.ts +0 -17
  324. package/src/commands/uptime.ts +0 -54
  325. package/src/commands/wc.ts +0 -55
  326. package/src/commands/wget.ts +0 -148
  327. package/src/commands/which.ts +0 -37
  328. package/src/commands/who.ts +0 -25
  329. package/src/commands/whoami.ts +0 -14
  330. package/src/commands/xargs.ts +0 -31
  331. package/src/index.ts +0 -67
  332. package/src/modules/linuxRootfs.ts +0 -1961
  333. package/src/modules/neofetch.ts +0 -358
  334. package/src/modules/shellInteractive.ts +0 -57
  335. package/src/modules/shellRuntime.ts +0 -76
  336. package/src/self-standalone.ts +0 -542
  337. package/src/standalone-wo-sftp.ts +0 -38
  338. package/src/standalone.ts +0 -72
  339. package/src/types/commands.ts +0 -146
  340. package/src/types/pipeline.ts +0 -52
  341. package/src/types/streams.ts +0 -32
  342. package/src/types/tar-stream.d.ts +0 -38
  343. package/src/types/vfs.ts +0 -98
  344. package/src/utils/expand.ts +0 -491
  345. package/src/utils/perfLogger.ts +0 -72
  346. package/src/utils/tokenize.ts +0 -98
  347. package/src/utils/vfsDiff.ts +0 -275
  348. package/tests/command-helpers.test.ts +0 -116
  349. package/tests/commands-admin-net.test.ts +0 -441
  350. package/tests/commands-advanced.test.ts +0 -456
  351. package/tests/commands-core.test.ts +0 -562
  352. package/tests/commands-missing.test.ts +0 -570
  353. package/tests/commands-specific-units.test.ts +0 -327
  354. package/tests/commands-text-sys.test.ts +0 -445
  355. package/tests/expand.test.ts +0 -170
  356. package/tests/helpers.test.ts +0 -97
  357. package/tests/new-features.test.ts +0 -1036
  358. package/tests/parser-executor.test.ts +0 -37
  359. package/tests/sftp.test.ts +0 -323
  360. package/tests/ssh-exec.test.ts +0 -45
  361. package/tests/test-helper.ts +0 -79
  362. package/tests/users.test.ts +0 -86
  363. package/tsconfig.json +0 -49
  364. package/typedoc.json +0 -47
@@ -19,6 +19,22 @@ SYNOPSIS
19
19
  DESCRIPTION
20
20
  Create a new user account with a home directory.
21
21
  In this environment, prompts for a password interactively.`,
22
+ "alias": `ALIAS(1) User Commands ALIAS(1)
23
+
24
+ NAME
25
+ alias - define or display aliases
26
+
27
+ SYNOPSIS
28
+ alias [name[=value] ...]
29
+
30
+ DESCRIPTION
31
+ Without arguments, alias prints the list of defined aliases.
32
+ With name=value, defines a new alias.
33
+
34
+ EXAMPLES
35
+ alias ll='ls -la'
36
+ alias grep='grep --color=auto'
37
+ alias # list all aliases`,
22
38
  "apt-cache": `APT-CACHE(8) APT APT-CACHE(8)
23
39
 
24
40
  NAME
@@ -64,6 +80,38 @@ DESCRIPTION
64
80
 
65
81
  OPTIONS
66
82
  -F fs use fs as input field separator`,
83
+ "base64": `BASE64(1) User Commands BASE64(1)
84
+
85
+ NAME
86
+ base64 - encode/decode data in base64
87
+
88
+ SYNOPSIS
89
+ base64 [OPTION]... [FILE]
90
+
91
+ OPTIONS
92
+ -d, --decode decode data
93
+ -w, --wrap=COLS wrap encoded lines after COLS characters (default 76, 0=no wrap)
94
+
95
+ EXAMPLES
96
+ echo 'hello' | base64
97
+ echo 'aGVsbG8=' | base64 -d`,
98
+ "basename": `BASENAME(1) User Commands BASENAME(1)
99
+
100
+ NAME
101
+ basename - strip directory and suffix from filenames
102
+
103
+ SYNOPSIS
104
+ basename NAME [SUFFIX]
105
+ basename OPTION... NAME...
106
+
107
+ OPTIONS
108
+ -a support multiple arguments and treat each as a NAME
109
+ -s SUFFIX remove a trailing SUFFIX
110
+
111
+ EXAMPLES
112
+ basename /usr/bin/vim # vim
113
+ basename /etc/hosts .conf # hosts
114
+ basename -a /a/b /c/d # b\\nd`,
67
115
  "cat": `CAT(1) User Commands CAT(1)
68
116
 
69
117
  NAME
@@ -120,6 +168,46 @@ SYNOPSIS
120
168
 
121
169
  DESCRIPTION
122
170
  Clear the display and move cursor to top-left.`,
171
+ "cmatrix": `CMATRIX(1) User Commands CMATRIX(1)
172
+
173
+ NAME
174
+ cmatrix - show a scrolling Matrix-like screen
175
+
176
+ SYNOPSIS
177
+ cmatrix [options]
178
+
179
+ DESCRIPTION
180
+ cmatrix shows a scrolling screen of random characters in the
181
+ style of the "Matrix" movie. Characters fall from the top of
182
+ the screen to the bottom.
183
+
184
+ OPTIONS
185
+ -b use bold characters
186
+ -C color use specified color (green, red, blue, white, yellow, cyan, magenta)
187
+
188
+ EXAMPLES
189
+ cmatrix`,
190
+ "cowsay": `COWSAY(1) User Commands COWSAY(1)
191
+
192
+ NAME
193
+ cowsay - configurable speaking/thinking cow
194
+
195
+ SYNOPSIS
196
+ cowsay [-d] [message]
197
+ cowthink [message]
198
+
199
+ OPTIONS
200
+ -d use dead eyes (xx)
201
+
202
+ DESCRIPTION
203
+ cowsay generates an ASCII picture of a cow saying or thinking
204
+ something. Input can be given as arguments or via stdin.
205
+
206
+ EXAMPLES
207
+ cowsay 'Hello, World!'
208
+ echo 'Moo.' | cowsay
209
+ fortune | cowsay
210
+ cowthink 'Hmm...'`,
123
211
  "cp": `CP(1) User Commands CP(1)
124
212
 
125
213
  NAME
@@ -150,6 +238,24 @@ OPTIONS
150
238
  -I, --head Show document info only
151
239
  -L, --location Follow redirects
152
240
  -v, --verbose Make the operation more talkative`,
241
+ "cut": `CUT(1) User Commands CUT(1)
242
+
243
+ NAME
244
+ cut - remove sections from each line of files
245
+
246
+ SYNOPSIS
247
+ cut OPTION... [FILE]...
248
+
249
+ OPTIONS
250
+ -b LIST select only these bytes
251
+ -c LIST select only these characters
252
+ -d DELIM use DELIM instead of TAB for field delimiter
253
+ -f LIST select only these fields
254
+
255
+ EXAMPLES
256
+ echo 'a:b:c' | cut -d: -f2 # b
257
+ echo 'hello' | cut -c1-3 # hel
258
+ cut -d, -f1 file.csv`,
153
259
  "date": `DATE(1) User Commands DATE(1)
154
260
 
155
261
  NAME
@@ -196,6 +302,63 @@ SYNOPSIS
196
302
 
197
303
  OPTIONS
198
304
  -h print sizes in human readable format`,
305
+ "diff": `DIFF(1) User Commands DIFF(1)
306
+
307
+ NAME
308
+ diff - compare files line by line
309
+
310
+ SYNOPSIS
311
+ diff [OPTION]... FILE1 FILE2
312
+
313
+ OPTIONS
314
+ -u output unified diff format
315
+ -i ignore case differences
316
+ -w ignore all whitespace
317
+ -r recursively compare directories
318
+ -q report only when files differ
319
+
320
+ EXAMPLES
321
+ diff file1.txt file2.txt
322
+ diff -u old.py new.py`,
323
+ "dirname": `DIRNAME(1) User Commands DIRNAME(1)
324
+
325
+ NAME
326
+ dirname - strip last component from file name
327
+
328
+ SYNOPSIS
329
+ dirname [OPTION] NAME...
330
+
331
+ DESCRIPTION
332
+ Output each NAME with its last non-slash component and
333
+ trailing slashes removed; if NAME contains no /'s, output '.'
334
+
335
+ EXAMPLES
336
+ dirname /usr/bin/vim # /usr/bin
337
+ dirname /etc/hosts # /etc
338
+ dirname foo # .`,
339
+ "dmesg": `DMESG(1) User Commands DMESG(1)
340
+
341
+ NAME
342
+ dmesg - print or control the kernel ring buffer
343
+
344
+ SYNOPSIS
345
+ dmesg [options]
346
+
347
+ OPTIONS
348
+ -n level set the level at which messages are printed
349
+ -c clear the ring buffer after printing
350
+ -T print human-readable timestamps
351
+ -H human-readable output
352
+
353
+ DESCRIPTION
354
+ dmesg is used to examine or control the kernel ring buffer.
355
+ The default action is to display all messages from the kernel
356
+ ring buffer.
357
+
358
+ EXAMPLES
359
+ dmesg
360
+ dmesg | grep eth0
361
+ dmesg | tail -20`,
199
362
  "dpkg-query": `DPKG-QUERY(1) User Commands DPKG-QUERY(1)
200
363
 
201
364
  NAME
@@ -243,6 +406,62 @@ SYNOPSIS
243
406
  OPTIONS
244
407
  -n do not output the trailing newline
245
408
  -e enable interpretation of backslash escapes`,
409
+ "env": `ENV(1) User Commands ENV(1)
410
+
411
+ NAME
412
+ env - run a program in a modified environment
413
+
414
+ SYNOPSIS
415
+ env [OPTION]... [NAME=VALUE]... [COMMAND [ARG]...]
416
+
417
+ OPTIONS
418
+ -i start with an empty environment
419
+ -u NAME remove variable from the environment
420
+
421
+ DESCRIPTION
422
+ Without a command, env prints the current environment.
423
+ With NAME=VALUE pairs, sets variables before running COMMAND.
424
+
425
+ EXAMPLES
426
+ env # print all variables
427
+ env NODE_ENV=production node app.js
428
+ env -u HOME bash`,
429
+ "exit": `EXIT(1) User Commands EXIT(1)
430
+
431
+ NAME
432
+ exit - exit the shell
433
+
434
+ SYNOPSIS
435
+ exit [n]
436
+
437
+ DESCRIPTION
438
+ Exits the shell with status n. If n is omitted, the exit status
439
+ is that of the last command executed.
440
+
441
+ EXAMPLES
442
+ exit # exit with last command's status
443
+ exit 0 # exit successfully
444
+ exit 1 # exit with error`,
445
+ "export": `EXPORT(1) User Commands EXPORT(1)
446
+
447
+ NAME
448
+ export - set export attribute for shell variables
449
+
450
+ SYNOPSIS
451
+ export [NAME[=VALUE] ...]
452
+ export -p
453
+
454
+ OPTIONS
455
+ -p print all exported variables
456
+
457
+ DESCRIPTION
458
+ Marks each NAME for automatic export to the environment of
459
+ subsequently executed commands.
460
+
461
+ EXAMPLES
462
+ export PATH="$PATH:/usr/local/bin"
463
+ export NODE_ENV=production
464
+ export -p`,
246
465
  "false": `FALSE(1) User Commands FALSE(1)
247
466
 
248
467
  NAME
@@ -253,6 +472,27 @@ SYNOPSIS
253
472
 
254
473
  DESCRIPTION
255
474
  Exit with a status code indicating failure (1).`,
475
+ "file": `FILE(1) User Commands FILE(1)
476
+
477
+ NAME
478
+ file - determine file type
479
+
480
+ SYNOPSIS
481
+ file [OPTION...] FILE...
482
+
483
+ OPTIONS
484
+ -b do not prepend filenames to output lines (brief mode)
485
+ -i output MIME type strings
486
+
487
+ DESCRIPTION
488
+ file tests each argument and attempts to classify it. The
489
+ classification is done by checking magic bytes, file content,
490
+ and filename extension.
491
+
492
+ EXAMPLES
493
+ file /bin/ls
494
+ file *.txt
495
+ file -b script.sh`,
256
496
  "find": `FIND(1) User Commands FIND(1)
257
497
 
258
498
  NAME
@@ -264,6 +504,22 @@ SYNOPSIS
264
504
  OPTIONS
265
505
  -name PATTERN base name matches shell PATTERN
266
506
  -type TYPE file type, e.g. f for file, d for directory`,
507
+ "fortune": `FORTUNE(6) Games and Amusements FORTUNE(6)
508
+
509
+ NAME
510
+ fortune - print a random, hopefully interesting adage
511
+
512
+ SYNOPSIS
513
+ fortune [options]
514
+
515
+ DESCRIPTION
516
+ fortune prints a random quotation from a database of quotations.
517
+ The quotes cover programming wisdom, hacker culture, and
518
+ general computing philosophy.
519
+
520
+ EXAMPLES
521
+ fortune
522
+ fortune | cowsay`,
267
523
  "free": `FREE(1) User Commands FREE(1)
268
524
 
269
525
  NAME
@@ -352,6 +608,30 @@ SYNOPSIS
352
608
 
353
609
  DESCRIPTION
354
610
  Print the current host name.`,
611
+ "htop": `HTOP(1) User Commands HTOP(1)
612
+
613
+ NAME
614
+ htop - interactive process viewer
615
+
616
+ SYNOPSIS
617
+ htop [OPTION]
618
+
619
+ OPTIONS
620
+ -d DELAY set update delay in tenths of seconds
621
+ -u USER show only processes of given user
622
+ -p PID show only listed PIDs
623
+
624
+ DESCRIPTION
625
+ htop is an interactive process viewer. It displays a frequently
626
+ updated list of processes running on the system, normally ordered
627
+ by the amount of CPU usage.
628
+
629
+ KEYS
630
+ F1 help
631
+ F2 setup
632
+ F9 kill process
633
+ F10, q quit
634
+ Up/Down select process`,
355
635
  "id": `ID(1) User Commands ID(1)
356
636
 
357
637
  NAME
@@ -362,6 +642,52 @@ SYNOPSIS
362
642
 
363
643
  DESCRIPTION
364
644
  Print user identity information including uid, gid, and groups.`,
645
+ "ifconfig": `IFCONFIG(8) System Administration IFCONFIG(8)
646
+
647
+ NAME
648
+ ifconfig - configure a network interface
649
+
650
+ SYNOPSIS
651
+ ifconfig [interface] [options]
652
+ ifconfig -a
653
+
654
+ OPTIONS
655
+ -a display all interfaces, including those that are down
656
+ -s display a short list
657
+
658
+ DESCRIPTION
659
+ ifconfig is used to configure kernel-resident network interfaces.
660
+ It is used at boot time to set up interfaces as necessary. Use
661
+ 'ip addr' for a more modern alternative.
662
+
663
+ EXAMPLES
664
+ ifconfig # show active interfaces
665
+ ifconfig -a # show all interfaces
666
+ ifconfig eth0 # show eth0 details`,
667
+ "ip": `IP(8) System Administration IP(8)
668
+
669
+ NAME
670
+ ip - show/manipulate routing, network devices, interfaces
671
+
672
+ SYNOPSIS
673
+ ip [OPTIONS] OBJECT {COMMAND | help}
674
+
675
+ OBJECTS
676
+ addr protocol (IP or IPv6) address on a device
677
+ link network device
678
+ route routing table entry
679
+ neigh neighbour/ARP table entry
680
+
681
+ OPTIONS
682
+ -4 use IPv4 only
683
+ -6 use IPv6 only
684
+ -c use color output
685
+
686
+ EXAMPLES
687
+ ip addr # show addresses
688
+ ip addr show eth0 # show eth0 address
689
+ ip route # show routing table
690
+ ip link # show link info`,
365
691
  "kill": `KILL(1) User Commands KILL(1)
366
692
 
367
693
  NAME
@@ -375,6 +701,43 @@ DESCRIPTION
375
701
 
376
702
  NOTES
377
703
  This environment provides a mock process model.`,
704
+ "last": `LAST(1) User Commands LAST(1)
705
+
706
+ NAME
707
+ last - show a listing of last logged in users
708
+
709
+ SYNOPSIS
710
+ last [options] [username]
711
+
712
+ OPTIONS
713
+ -n NUM show last NUM lines
714
+ -F print full login and logout times
715
+
716
+ DESCRIPTION
717
+ last searches back through the login history and displays
718
+ a list of all users logged in since the system was started.
719
+
720
+ EXAMPLES
721
+ last # show all logins
722
+ last root # show root logins
723
+ last -n 10 # show last 10 entries`,
724
+ "ln": `LN(1) User Commands LN(1)
725
+
726
+ NAME
727
+ ln - make links between files
728
+
729
+ SYNOPSIS
730
+ ln [OPTION]... TARGET LINK_NAME
731
+
732
+ OPTIONS
733
+ -s make symbolic links instead of hard links
734
+ -f remove existing destination files
735
+ -n treat LINK_NAME as a normal file if a symlink to a directory
736
+
737
+ EXAMPLES
738
+ ln -s /usr/bin/python3 /usr/local/bin/python
739
+ ln file.txt hardlink.txt
740
+ ln -sf new_target existing_link`,
378
741
  "ls": `LS(1) User Commands LS(1)
379
742
 
380
743
  NAME
@@ -395,7 +758,7 @@ OPTIONS
395
758
 
396
759
  AUTHOR
397
760
  Written by Richard M. Stallman and David MacKenzie.`,
398
- "lsb_release": `LSB_RELEASE(1) User Commands LSB_RELEASE(1)
761
+ "lsb_release": `LSB_RELEASE(1) User Commands LSB_RELEASE(1)
399
762
 
400
763
  NAME
401
764
  lsb_release - print distribution-specific information
@@ -404,11 +767,39 @@ SYNOPSIS
404
767
  lsb_release [OPTION]...
405
768
 
406
769
  OPTIONS
407
- -a show all available information
408
- -i show distributor ID
409
- -d show description
410
- -r show release number
411
- -c show codename`,
770
+ -a print all information
771
+ -i print distributor ID
772
+ -d print description
773
+ -r print release number
774
+ -c print codename
775
+ -s print short output (only with another option)
776
+
777
+ EXAMPLES
778
+ lsb_release -a
779
+ lsb_release -d
780
+ lsb_release -rs`,
781
+ "man": `MAN(1) User Commands MAN(1)
782
+
783
+ NAME
784
+ man - an interface to the system reference manuals
785
+
786
+ SYNOPSIS
787
+ man [SECTION] PAGE...
788
+
789
+ SECTIONS
790
+ 1 executable programs or shell commands
791
+ 2 system calls
792
+ 3 library calls
793
+ 4 special files
794
+ 5 file formats and conventions
795
+ 6 games
796
+ 7 miscellaneous
797
+ 8 system administration commands
798
+
799
+ EXAMPLES
800
+ man ls
801
+ man 1 printf
802
+ man grep`,
412
803
  "mkdir": `MKDIR(1) User Commands MKDIR(1)
413
804
 
414
805
  NAME
@@ -554,6 +945,25 @@ DESCRIPTION
554
945
 
555
946
  NOTES
556
947
  Requires package installation: apt install python3.`,
948
+ "read": `READ(1) User Commands READ(1)
949
+
950
+ NAME
951
+ read - read a line from standard input
952
+
953
+ SYNOPSIS
954
+ read [-r] [-p PROMPT] [-s] NAME...
955
+
956
+ OPTIONS
957
+ -r do not allow backslashes to escape characters
958
+ -p PROMPT output the string PROMPT before reading
959
+ -s do not echo input (silent, for passwords)
960
+ -n N return after reading N characters
961
+
962
+ EXAMPLES
963
+ read name
964
+ read -p "Enter name: " name
965
+ read -s password
966
+ read -r line`,
557
967
  "readlink": `READLINK(1) User Commands READLINK(1)
558
968
 
559
969
  NAME
@@ -595,6 +1005,26 @@ SYNOPSIS
595
1005
  OPTIONS
596
1006
  -e SCRIPT add SCRIPT to commands to be executed
597
1007
  -i edit files in place`,
1008
+ "seq": `SEQ(1) User Commands SEQ(1)
1009
+
1010
+ NAME
1011
+ seq - print a sequence of numbers
1012
+
1013
+ SYNOPSIS
1014
+ seq [OPTION]... LAST
1015
+ seq [OPTION]... FIRST LAST
1016
+ seq [OPTION]... FIRST INCREMENT LAST
1017
+
1018
+ OPTIONS
1019
+ -f FORMAT use printf style floating-point FORMAT
1020
+ -s STRING use STRING to separate numbers (default: \\n)
1021
+ -w equalize width by padding with leading zeros
1022
+
1023
+ EXAMPLES
1024
+ seq 5 # 1 2 3 4 5
1025
+ seq 2 8 # 2 3 4 5 6 7 8
1026
+ seq 0 2 10 # 0 2 4 6 8 10
1027
+ seq -s, 5 # 1,2,3,4,5`,
598
1028
  "set": `SET(1) Shell Builtins SET(1)
599
1029
 
600
1030
  NAME
@@ -606,6 +1036,31 @@ SYNOPSIS
606
1036
 
607
1037
  DESCRIPTION
608
1038
  Display or modify shell variable state.`,
1039
+ "sh": `SH(1) User Commands SH(1)
1040
+
1041
+ NAME
1042
+ sh - command interpreter (shell)
1043
+
1044
+ SYNOPSIS
1045
+ sh [-c command] [file] [arguments]
1046
+
1047
+ OPTIONS
1048
+ -c read commands from the command string operand
1049
+
1050
+ DESCRIPTION
1051
+ sh is a POSIX-compliant command interpreter. It executes commands
1052
+ read from a command line string, the standard input, or a specified
1053
+ file.
1054
+
1055
+ FEATURES
1056
+ Variables, parameter expansion, command substitution $(...),
1057
+ arithmetic $((...)), pipelines, redirections, &&/||/; operators,
1058
+ for/while/if/case constructs, functions.
1059
+
1060
+ EXAMPLES
1061
+ sh -c 'echo hello'
1062
+ sh script.sh
1063
+ sh -c 'for i in 1 2 3; do echo $i; done'`,
609
1064
  "shift": `SHIFT(1) Shell Builtins SHIFT(1)
610
1065
 
611
1066
  NAME
@@ -616,6 +1071,22 @@ SYNOPSIS
616
1071
 
617
1072
  DESCRIPTION
618
1073
  Rename positional parameters by discarding the first N arguments.`,
1074
+ "sl": `SL(1) User Commands SL(1)
1075
+
1076
+ NAME
1077
+ sl - steam locomotive
1078
+
1079
+ SYNOPSIS
1080
+ sl
1081
+
1082
+ DESCRIPTION
1083
+ sl is a cure for your bad habit of mistyping 'ls'. It displays
1084
+ an ASCII art steam locomotive crossing your terminal.
1085
+
1086
+ This command exists to punish those who type 'sl' instead of 'ls'.
1087
+
1088
+ EXAMPLES
1089
+ sl # you typed 'sl' instead of 'ls', didn't you?`,
619
1090
  "sleep": `SLEEP(1) User Commands SLEEP(1)
620
1091
 
621
1092
  NAME
@@ -670,6 +1141,27 @@ SYNOPSIS
670
1141
 
671
1142
  OPTIONS
672
1143
  -c, --format=FORMAT use the specified output format`,
1144
+ "stty": `STTY(1) User Commands STTY(1)
1145
+
1146
+ NAME
1147
+ stty - change and print terminal line settings
1148
+
1149
+ SYNOPSIS
1150
+ stty [OPTION]... [SETTING]...
1151
+
1152
+ OPTIONS
1153
+ -a, --all print all current settings in human-readable form
1154
+ -g, --save print all current settings in stty-readable form
1155
+ size print the number of rows and columns (rows cols)
1156
+
1157
+ DESCRIPTION
1158
+ Print or change terminal characteristics. Without arguments,
1159
+ prints baud rate, line discipline, and deviations from stty sane.
1160
+
1161
+ EXAMPLES
1162
+ stty -a # all settings
1163
+ stty size # terminal size (rows cols)
1164
+ stty sane # reset to sane settings`,
673
1165
  "su": `SU(1) User Commands SU(1)
674
1166
 
675
1167
  NAME
@@ -755,6 +1247,34 @@ SYNOPSIS
755
1247
  DESCRIPTION
756
1248
  Update access and modification times.
757
1249
  If FILE does not exist, create an empty file.`,
1250
+ "tput": `TPUT(1) User Commands TPUT(1)
1251
+
1252
+ NAME
1253
+ tput - initialize a terminal or query terminfo database
1254
+
1255
+ SYNOPSIS
1256
+ tput [-T type] capname [parameters]
1257
+
1258
+ DESCRIPTION
1259
+ tput queries the terminfo database to output terminal capability
1260
+ values or send terminal control sequences.
1261
+
1262
+ CAPABILITIES
1263
+ cols number of columns
1264
+ lines number of lines
1265
+ colors number of colors
1266
+ bold begin bold mode
1267
+ sgr0 reset all attributes
1268
+ setaf N set foreground color N (0-7)
1269
+ setab N set background color N (0-7)
1270
+ clear clear screen
1271
+ el clear to end of line
1272
+ cup R C move cursor to row R, column C
1273
+
1274
+ EXAMPLES
1275
+ tput cols
1276
+ tput setaf 2; echo "green"; tput sgr0
1277
+ tput bold; echo "bold text"; tput sgr0`,
758
1278
  "tr": `TR(1) User Commands TR(1)
759
1279
 
760
1280
  NAME
@@ -775,6 +1295,26 @@ SYNOPSIS
775
1295
 
776
1296
  DESCRIPTION
777
1297
  Define or clear handlers for shell signals and EXIT.`,
1298
+ "tree": `TREE(1) User Commands TREE(1)
1299
+
1300
+ NAME
1301
+ tree - list contents of directories in a tree-like format
1302
+
1303
+ SYNOPSIS
1304
+ tree [OPTION]... [DIRECTORY]...
1305
+
1306
+ OPTIONS
1307
+ -a all files, including hidden
1308
+ -d directories only
1309
+ -L N max display depth of the directory tree
1310
+ -f print full path prefix for each file
1311
+ --noreport omit file/directory count at end of tree listing
1312
+
1313
+ EXAMPLES
1314
+ tree
1315
+ tree /etc
1316
+ tree -L 2 /usr
1317
+ tree -a -d`,
778
1318
  "true": `TRUE(1) User Commands TRUE(1)
779
1319
 
780
1320
  NAME
@@ -840,6 +1380,23 @@ SYNOPSIS
840
1380
  OPTIONS
841
1381
  -p show uptime in a pretty format
842
1382
  -s show system up since time`,
1383
+ "w": `W(1) User Commands W(1)
1384
+
1385
+ NAME
1386
+ w - show who is logged on and what they are doing
1387
+
1388
+ SYNOPSIS
1389
+ w [user]
1390
+
1391
+ DESCRIPTION
1392
+ w displays information about the users currently on the machine
1393
+ and their processes. The header shows the current time, how long
1394
+ the system has been running, how many users are currently logged
1395
+ on, and the system load averages.
1396
+
1397
+ The following entries are displayed for each user: login name,
1398
+ the tty name, the remote host, login time, idle time, JCPU, PCPU,
1399
+ and the command line of the current process.`,
843
1400
  "wc": `WC(1) User Commands WC(1)
844
1401
 
845
1402
  NAME
@@ -874,6 +1431,25 @@ SYNOPSIS
874
1431
 
875
1432
  DESCRIPTION
876
1433
  Print the path of COMMAND found in $PATH.`,
1434
+ "who": `WHO(1) User Commands WHO(1)
1435
+
1436
+ NAME
1437
+ who - show who is logged on
1438
+
1439
+ SYNOPSIS
1440
+ who [OPTION]... [FILE | ARG1 ARG2]
1441
+
1442
+ OPTIONS
1443
+ -a print all information
1444
+ -b time of last system boot
1445
+ -H print column headers
1446
+ -q all login names and number of users logged on
1447
+ am i print effective user
1448
+
1449
+ EXAMPLES
1450
+ who # show logged in users
1451
+ who -H # with headers
1452
+ who am i # show current user`,
877
1453
  "whoami": `WHOAMI(1) User Commands WHOAMI(1)
878
1454
 
879
1455
  NAME
@@ -894,4 +1470,20 @@ SYNOPSIS
894
1470
 
895
1471
  DESCRIPTION
896
1472
  Read items from stdin and execute COMMAND with those items as arguments.`,
1473
+ "yes": `YES(1) User Commands YES(1)
1474
+
1475
+ NAME
1476
+ yes - output a string repeatedly until killed
1477
+
1478
+ SYNOPSIS
1479
+ yes [STRING]
1480
+
1481
+ DESCRIPTION
1482
+ Repeatedly outputs STRING (default: 'y') until killed.
1483
+ Commonly used to automatically answer 'yes' to prompts.
1484
+
1485
+ EXAMPLES
1486
+ yes | apt-get install pkg # auto-confirm
1487
+ yes no | some-program # repeatedly answer 'no'
1488
+ yes # output 'y' forever`,
897
1489
  };