typescript-virtual-container 1.4.0 → 1.4.2

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 (122) hide show
  1. package/.vscode/settings.json +2 -0
  2. package/README.md +5 -1
  3. package/benchmark-virtualshell.ts +3 -11
  4. package/builds/self-standalone.js +230 -346
  5. package/builds/self-standalone.js.map +3 -3
  6. package/builds/standalone-wo-sftp.js +156 -272
  7. package/builds/standalone-wo-sftp.js.map +3 -3
  8. package/builds/standalone.js +151 -267
  9. package/builds/standalone.js.map +3 -3
  10. package/dist/VirtualPackageManager/index.d.ts.map +1 -1
  11. package/dist/VirtualPackageManager/index.js +29 -1
  12. package/dist/VirtualShell/shell.d.ts.map +1 -1
  13. package/dist/VirtualShell/shell.js +6 -10
  14. package/dist/VirtualUserManager/index.d.ts.map +1 -1
  15. package/dist/VirtualUserManager/index.js +4 -4
  16. package/dist/commands/curl.d.ts.map +1 -1
  17. package/dist/commands/curl.js +2 -1
  18. package/dist/commands/gzip.d.ts.map +1 -1
  19. package/dist/commands/gzip.js +6 -0
  20. package/dist/commands/helpers.js +1 -1
  21. package/dist/commands/history.js +2 -2
  22. package/dist/commands/man.d.ts.map +1 -1
  23. package/dist/commands/man.js +30 -136
  24. package/dist/commands/neofetch.d.ts.map +1 -1
  25. package/dist/commands/neofetch.js +6 -0
  26. package/dist/commands/wget.d.ts.map +1 -1
  27. package/dist/commands/wget.js +11 -1
  28. package/dist/modules/linuxRootfs.d.ts +1 -1
  29. package/dist/modules/linuxRootfs.d.ts.map +1 -1
  30. package/dist/modules/linuxRootfs.js +5 -5
  31. package/dist/self-standalone.js +149 -102
  32. package/package.json +2 -2
  33. package/src/VirtualPackageManager/index.ts +29 -1
  34. package/src/VirtualShell/shell.ts +6 -11
  35. package/src/VirtualUserManager/index.ts +4 -4
  36. package/src/commands/curl.ts +2 -1
  37. package/src/commands/gzip.ts +7 -0
  38. package/src/commands/helpers.ts +1 -1
  39. package/src/commands/history.ts +2 -2
  40. package/src/commands/man.ts +38 -143
  41. package/src/commands/manuals/adduser.txt +11 -0
  42. package/src/commands/manuals/apt-cache.txt +12 -0
  43. package/src/commands/manuals/apt.txt +20 -0
  44. package/src/commands/manuals/awk.txt +13 -0
  45. package/src/commands/manuals/cat.txt +14 -0
  46. package/src/commands/manuals/cd.txt +16 -0
  47. package/src/commands/manuals/chmod.txt +16 -0
  48. package/src/commands/manuals/clear.txt +10 -0
  49. package/src/commands/manuals/cp.txt +10 -0
  50. package/src/commands/manuals/curl.txt +20 -0
  51. package/src/commands/manuals/date.txt +14 -0
  52. package/src/commands/manuals/declare.txt +12 -0
  53. package/src/commands/manuals/deluser.txt +10 -0
  54. package/src/commands/manuals/df.txt +10 -0
  55. package/src/commands/manuals/dpkg-query.txt +11 -0
  56. package/src/commands/manuals/dpkg.txt +14 -0
  57. package/src/commands/manuals/du.txt +11 -0
  58. package/src/commands/manuals/echo.txt +11 -0
  59. package/src/commands/manuals/false.txt +10 -0
  60. package/src/commands/manuals/find.txt +11 -0
  61. package/src/commands/manuals/free.txt +12 -0
  62. package/src/commands/manuals/grep.txt +13 -0
  63. package/src/commands/manuals/groups.txt +10 -0
  64. package/src/commands/manuals/gzip.txt +11 -0
  65. package/src/commands/manuals/head.txt +10 -0
  66. package/src/commands/manuals/help.txt +11 -0
  67. package/src/commands/manuals/history.txt +11 -0
  68. package/src/commands/manuals/hostname.txt +10 -0
  69. package/src/commands/manuals/id.txt +10 -0
  70. package/src/commands/manuals/kill.txt +13 -0
  71. package/src/commands/manuals/ls.txt +20 -0
  72. package/src/commands/manuals/lsb_release.txt +14 -0
  73. package/src/commands/manuals/mkdir.txt +10 -0
  74. package/src/commands/manuals/mv.txt +10 -0
  75. package/src/commands/manuals/nano.txt +11 -0
  76. package/src/commands/manuals/neofetch.txt +10 -0
  77. package/src/commands/manuals/node.txt +13 -0
  78. package/src/commands/manuals/npm.txt +13 -0
  79. package/src/commands/manuals/npx.txt +13 -0
  80. package/src/commands/manuals/passwd.txt +11 -0
  81. package/src/commands/manuals/ping.txt +10 -0
  82. package/src/commands/manuals/printf.txt +11 -0
  83. package/src/commands/manuals/ps.txt +10 -0
  84. package/src/commands/manuals/pwd.txt +10 -0
  85. package/src/commands/manuals/python3.txt +13 -0
  86. package/src/commands/manuals/readlink.txt +10 -0
  87. package/src/commands/manuals/return.txt +10 -0
  88. package/src/commands/manuals/rm.txt +10 -0
  89. package/src/commands/manuals/sed.txt +11 -0
  90. package/src/commands/manuals/set.txt +11 -0
  91. package/src/commands/manuals/shift.txt +10 -0
  92. package/src/commands/manuals/sleep.txt +10 -0
  93. package/src/commands/manuals/sort.txt +12 -0
  94. package/src/commands/manuals/source.txt +11 -0
  95. package/src/commands/manuals/ssh.txt +11 -0
  96. package/src/commands/manuals/stat.txt +10 -0
  97. package/src/commands/manuals/su.txt +13 -0
  98. package/src/commands/manuals/sudo.txt +11 -0
  99. package/src/commands/manuals/tail.txt +10 -0
  100. package/src/commands/manuals/tar.txt +19 -0
  101. package/src/commands/manuals/tee.txt +10 -0
  102. package/src/commands/manuals/test.txt +11 -0
  103. package/src/commands/manuals/touch.txt +11 -0
  104. package/src/commands/manuals/tr.txt +10 -0
  105. package/src/commands/manuals/trap.txt +10 -0
  106. package/src/commands/manuals/true.txt +10 -0
  107. package/src/commands/manuals/type.txt +10 -0
  108. package/src/commands/manuals/uname.txt +12 -0
  109. package/src/commands/manuals/uniq.txt +12 -0
  110. package/src/commands/manuals/unset.txt +10 -0
  111. package/src/commands/manuals/uptime.txt +11 -0
  112. package/src/commands/manuals/wc.txt +12 -0
  113. package/src/commands/manuals/wget.txt +12 -0
  114. package/src/commands/manuals/which.txt +10 -0
  115. package/src/commands/manuals/whoami.txt +10 -0
  116. package/src/commands/manuals/xargs.txt +10 -0
  117. package/src/commands/neofetch.ts +7 -0
  118. package/src/commands/wget.ts +12 -1
  119. package/src/modules/linuxRootfs.ts +6 -6
  120. package/src/self-standalone.ts +190 -141
  121. package/tests/helpers.test.ts +3 -3
  122. package/tests/new-features.test.ts +2 -2
@@ -1,154 +1,49 @@
1
1
  import type { ShellModule } from "../types/commands";
2
2
 
3
- const MAN_PAGES: Record<string, string> = {
4
- ls: `LS(1) User Commands LS(1)
5
-
6
- NAME
7
- ls - list directory contents
8
-
9
- SYNOPSIS
10
- ls [OPTION]... [FILE]...
11
-
12
- DESCRIPTION
13
- List information about the FILEs (the current directory by default).
14
-
15
- OPTIONS
16
- -l use a long listing format
17
- -a do not ignore entries starting with .
18
- -h with -l, print human readable sizes
19
- -r reverse order while sorting
20
- -t sort by modification time
21
-
22
- AUTHOR
23
- Written by Richard M. Stallman and David MacKenzie.`,
24
-
25
- cat: `CAT(1) User Commands CAT(1)
26
-
27
- NAME
28
- cat - concatenate files and print on the standard output
29
-
30
- SYNOPSIS
31
- cat [OPTION]... [FILE]...
32
-
33
- DESCRIPTION
34
- Concatenate FILE(s) to standard output.
35
-
36
- OPTIONS
37
- -n, --number number all output lines
38
- -b, --number-nonblank number nonempty output lines`,
39
-
40
- grep: `GREP(1) User Commands GREP(1)
41
-
42
- NAME
43
- grep, egrep, fgrep - print lines that match patterns
44
-
45
- SYNOPSIS
46
- grep [OPTION]... PATTERNS [FILE]...
47
-
48
- OPTIONS
49
- -i, --ignore-case ignore case distinctions in patterns and data
50
- -v, --invert-match select non-matching lines
51
- -n, --line-number print line number with output lines
52
- -r, --recursive read all files under each directory, recursively`,
53
-
54
- apt: `APT(8) APT APT(8)
55
-
56
- NAME
57
- apt - command-line interface
58
-
59
- SYNOPSIS
60
- apt [options] command
61
-
62
- DESCRIPTION
63
- apt provides a high-level commandline interface for the package
64
- management system.
65
-
66
- COMMANDS
67
- install pkg... Install packages
68
- remove pkg... Remove packages
69
- update Download package information
70
- upgrade Upgrade installed packages
71
- search term Search in package descriptions
72
- show pkg Show package information
73
- list List packages`,
74
-
75
- ssh: `SSH(1) OpenSSH SSH(1)
76
-
77
- NAME
78
- ssh - OpenSSH remote login client
79
-
80
- SYNOPSIS
81
- ssh [-p port] [user@]hostname [command]
82
-
83
- DESCRIPTION
84
- ssh (SSH client) is a program for logging into a remote machine and
85
- for executing commands on a remote machine.`,
86
-
87
- curl: `CURL(1) User Commands CURL(1)
88
-
89
- NAME
90
- curl - transfer a URL
91
-
92
- SYNOPSIS
93
- curl [options / URLs]
94
-
95
- DESCRIPTION
96
- curl is a tool for transferring data with URL syntax.
97
-
98
- OPTIONS
99
- -o, --output <file> Write output to <file>
100
- -X, --request <method> Specify request method
101
- -d, --data <data> HTTP POST data
102
- -H, --header <header> Pass custom header
103
- -s, --silent Silent mode
104
- -I, --head Show document info only
105
- -L, --location Follow redirects
106
- -v, --verbose Make the operation more talkative`,
107
-
108
- chmod: `CHMOD(1) User Commands CHMOD(1)
109
-
110
- NAME
111
- chmod - change file mode bits
112
-
113
- SYNOPSIS
114
- chmod [OPTION]... MODE[,MODE]... FILE...
115
- chmod [OPTION]... OCTAL-MODE FILE...
116
-
117
- DESCRIPTION
118
- Change the file mode bits of each given file according to MODE.
119
-
120
- EXAMPLES
121
- chmod 755 script.sh rwxr-xr-x
122
- chmod 644 file.txt rw-r--r--
123
- chmod +x script.sh add execute permission`,
124
-
125
- tar: `TAR(1) GNU tar Manual TAR(1)
126
-
127
- NAME
128
- tar - an archiving utility
129
-
130
- SYNOPSIS
131
- tar [OPTION...] [FILE]...
132
-
133
- DESCRIPTION
134
- tar saves many files together into a single tape or disk archive,
135
- and can restore individual files from the archive.
136
-
137
- OPTIONS
138
- -c, --create create a new archive
139
- -x, --extract extract files from an archive
140
- -z, --gzip filter the archive through gzip
141
- -f, --file=ARCHIVE use archive file or device ARCHIVE
142
- -v, --verbose verbosely list files processed
143
- -t, --list list the contents of an archive`,
3
+ const MANUAL_ALIASES: Record<string, string> = {
4
+ gunzip: "gzip",
144
5
  };
145
6
 
7
+ const manualCache = new Map<string, string | null>();
8
+ const manualsBaseUrl = new URL("./manuals/", import.meta.url);
9
+
10
+ async function dynamicImport(specifier: string): Promise<unknown> {
11
+ const importer = new Function(
12
+ "moduleName",
13
+ "return import(moduleName)",
14
+ ) as (moduleName: string) => Promise<unknown>;
15
+ return importer(specifier);
16
+ }
17
+
18
+ async function loadBundledManual(commandName: string): Promise<string | null> {
19
+ const normalized = commandName.toLowerCase();
20
+ const lookupName = MANUAL_ALIASES[normalized] ?? normalized;
21
+ const cacheKey = `builtin:${lookupName}`;
22
+ if (manualCache.has(cacheKey)) {
23
+ return manualCache.get(cacheKey) ?? null;
24
+ }
25
+
26
+ try {
27
+ const fsModule = (await dynamicImport("node:fs/promises")) as {
28
+ readFile: (path: URL, encoding: "utf8") => Promise<string>;
29
+ };
30
+ const manualUrl = new URL(`${lookupName}.txt`, manualsBaseUrl);
31
+ const content = await fsModule.readFile(manualUrl, "utf8");
32
+ const page = content.replace(/\n$/, "");
33
+ manualCache.set(cacheKey, page);
34
+ return page;
35
+ } catch {
36
+ manualCache.set(cacheKey, null);
37
+ return null;
38
+ }
39
+ }
40
+
146
41
  export const manCommand: ShellModule = {
147
42
  name: "man",
148
43
  description: "Interface to the system reference manuals",
149
44
  category: "shell",
150
45
  params: ["<command>"],
151
- run: ({ args, shell }) => {
46
+ run: async ({ args, shell }) => {
152
47
  const name = args[0];
153
48
  if (!name) return { stderr: "What manual page do you want?", exitCode: 1 };
154
49
 
@@ -158,7 +53,7 @@ export const manCommand: ShellModule = {
158
53
  return { stdout: shell.vfs.readFile(manPath), exitCode: 0 };
159
54
  }
160
55
 
161
- const page = MAN_PAGES[name.toLowerCase()];
56
+ const page = await loadBundledManual(name);
162
57
  if (page) return { stdout: page, exitCode: 0 };
163
58
 
164
59
  return { stderr: `No manual entry for ${name}`, exitCode: 16 };
@@ -0,0 +1,11 @@
1
+ ADDUSER(8) User Commands ADDUSER(8)
2
+
3
+ NAME
4
+ adduser - add a user to the system
5
+
6
+ SYNOPSIS
7
+ adduser USERNAME
8
+
9
+ DESCRIPTION
10
+ Create a new user account with a home directory.
11
+ In this environment, prompts for a password interactively.
@@ -0,0 +1,12 @@
1
+ APT-CACHE(8) APT APT-CACHE(8)
2
+
3
+ NAME
4
+ apt-cache - query APT package cache
5
+
6
+ SYNOPSIS
7
+ apt-cache command [args]
8
+
9
+ COMMANDS
10
+ search term search package names/descriptions
11
+ show pkg show package metadata
12
+ policy pkg show package policy and candidate versions
@@ -0,0 +1,20 @@
1
+ APT(8) APT APT(8)
2
+
3
+ NAME
4
+ apt - command-line interface
5
+
6
+ SYNOPSIS
7
+ apt [options] command
8
+
9
+ DESCRIPTION
10
+ apt provides a high-level commandline interface for the package
11
+ management system.
12
+
13
+ COMMANDS
14
+ install pkg... Install packages
15
+ remove pkg... Remove packages
16
+ update Download package information
17
+ upgrade Upgrade installed packages
18
+ search term Search in package descriptions
19
+ show pkg Show package information
20
+ list List packages
@@ -0,0 +1,13 @@
1
+ AWK(1) User Commands AWK(1)
2
+
3
+ NAME
4
+ awk - pattern scanning and processing language
5
+
6
+ SYNOPSIS
7
+ awk [OPTION]... 'PROGRAM' [FILE]...
8
+
9
+ DESCRIPTION
10
+ awk scans each input line, applies PROGRAM rules, and prints results.
11
+
12
+ OPTIONS
13
+ -F fs use fs as input field separator
@@ -0,0 +1,14 @@
1
+ CAT(1) User Commands CAT(1)
2
+
3
+ NAME
4
+ cat - concatenate files and print on the standard output
5
+
6
+ SYNOPSIS
7
+ cat [OPTION]... [FILE]...
8
+
9
+ DESCRIPTION
10
+ Concatenate FILE(s) to standard output.
11
+
12
+ OPTIONS
13
+ -n, --number number all output lines
14
+ -b, --number-nonblank number nonempty output lines
@@ -0,0 +1,16 @@
1
+ CD(1) Shell Builtins CD(1)
2
+
3
+ NAME
4
+ cd - change the shell working directory
5
+
6
+ SYNOPSIS
7
+ cd [DIRECTORY]
8
+
9
+ DESCRIPTION
10
+ Change the current working directory.
11
+ Without DIRECTORY, changes to $HOME.
12
+
13
+ EXAMPLES
14
+ cd /etc
15
+ cd ..
16
+ cd ~
@@ -0,0 +1,16 @@
1
+ CHMOD(1) User Commands CHMOD(1)
2
+
3
+ NAME
4
+ chmod - change file mode bits
5
+
6
+ SYNOPSIS
7
+ chmod [OPTION]... MODE[,MODE]... FILE...
8
+ chmod [OPTION]... OCTAL-MODE FILE...
9
+
10
+ DESCRIPTION
11
+ Change the file mode bits of each given file according to MODE.
12
+
13
+ EXAMPLES
14
+ chmod 755 script.sh rwxr-xr-x
15
+ chmod 644 file.txt rw-r--r--
16
+ chmod +x script.sh add execute permission
@@ -0,0 +1,10 @@
1
+ CLEAR(1) User Commands CLEAR(1)
2
+
3
+ NAME
4
+ clear - clear the terminal screen
5
+
6
+ SYNOPSIS
7
+ clear
8
+
9
+ DESCRIPTION
10
+ Clear the display and move cursor to top-left.
@@ -0,0 +1,10 @@
1
+ CP(1) User Commands CP(1)
2
+
3
+ NAME
4
+ cp - copy files and directories
5
+
6
+ SYNOPSIS
7
+ cp [OPTION]... SOURCE... DEST
8
+
9
+ OPTIONS
10
+ -r copy directories recursively
@@ -0,0 +1,20 @@
1
+ CURL(1) User Commands CURL(1)
2
+
3
+ NAME
4
+ curl - transfer a URL
5
+
6
+ SYNOPSIS
7
+ curl [options / URLs]
8
+
9
+ DESCRIPTION
10
+ curl is a tool for transferring data with URL syntax.
11
+
12
+ OPTIONS
13
+ -o, --output <file> Write output to <file>
14
+ -X, --request <method> Specify request method
15
+ -d, --data <data> HTTP POST data
16
+ -H, --header <header> Pass custom header
17
+ -s, --silent Silent mode
18
+ -I, --head Show document info only
19
+ -L, --location Follow redirects
20
+ -v, --verbose Make the operation more talkative
@@ -0,0 +1,14 @@
1
+ DATE(1) User Commands DATE(1)
2
+
3
+ NAME
4
+ date - print or set the system date and time
5
+
6
+ SYNOPSIS
7
+ date [+FORMAT]
8
+
9
+ DESCRIPTION
10
+ Display current date/time, optionally formatted.
11
+
12
+ EXAMPLES
13
+ date
14
+ date +%Y-%m-%d
@@ -0,0 +1,12 @@
1
+ DECLARE(1) Shell Builtins DECLARE(1)
2
+
3
+ NAME
4
+ declare - set variable values and attributes
5
+
6
+ SYNOPSIS
7
+ declare [OPTION]... [NAME[=VALUE]...]
8
+
9
+ OPTIONS
10
+ -i variable has integer attribute
11
+ -r make NAMEs readonly
12
+ -x export NAMEs to environment
@@ -0,0 +1,10 @@
1
+ DELUSER(8) User Commands DELUSER(8)
2
+
3
+ NAME
4
+ deluser - remove a user account
5
+
6
+ SYNOPSIS
7
+ deluser [OPTION] USERNAME
8
+
9
+ OPTIONS
10
+ -f, --force remove without interactive confirmation
@@ -0,0 +1,10 @@
1
+ DF(1) User Commands DF(1)
2
+
3
+ NAME
4
+ df - report file system disk space usage
5
+
6
+ SYNOPSIS
7
+ df [OPTION]... [FILE]...
8
+
9
+ OPTIONS
10
+ -h print sizes in human readable format
@@ -0,0 +1,11 @@
1
+ DPKG-QUERY(1) User Commands DPKG-QUERY(1)
2
+
3
+ NAME
4
+ dpkg-query - tool to query the dpkg database
5
+
6
+ SYNOPSIS
7
+ dpkg-query [OPTION]... [ACTION]
8
+
9
+ OPTIONS
10
+ -W list installed packages (show format)
11
+ -l list packages
@@ -0,0 +1,14 @@
1
+ DPKG(1) User Commands DPKG(1)
2
+
3
+ NAME
4
+ dpkg - package manager for Debian-like systems
5
+
6
+ SYNOPSIS
7
+ dpkg [OPTION]... ACTION
8
+
9
+ OPTIONS
10
+ -l list installed packages
11
+ -s show package status
12
+ -L list files in package
13
+ -r remove package
14
+ -P purge package
@@ -0,0 +1,11 @@
1
+ DU(1) User Commands DU(1)
2
+
3
+ NAME
4
+ du - estimate file space usage
5
+
6
+ SYNOPSIS
7
+ du [OPTION]... [FILE]...
8
+
9
+ OPTIONS
10
+ -h print sizes in human readable format
11
+ -s display only a total for each argument
@@ -0,0 +1,11 @@
1
+ ECHO(1) User Commands ECHO(1)
2
+
3
+ NAME
4
+ echo - display a line of text
5
+
6
+ SYNOPSIS
7
+ echo [OPTION]... [STRING]...
8
+
9
+ OPTIONS
10
+ -n do not output the trailing newline
11
+ -e enable interpretation of backslash escapes
@@ -0,0 +1,10 @@
1
+ FALSE(1) User Commands FALSE(1)
2
+
3
+ NAME
4
+ false - do nothing, unsuccessfully
5
+
6
+ SYNOPSIS
7
+ false
8
+
9
+ DESCRIPTION
10
+ Exit with a status code indicating failure (1).
@@ -0,0 +1,11 @@
1
+ FIND(1) User Commands FIND(1)
2
+
3
+ NAME
4
+ find - search for files in a directory hierarchy
5
+
6
+ SYNOPSIS
7
+ find [PATH] [EXPRESSION]
8
+
9
+ OPTIONS
10
+ -name PATTERN base name matches shell PATTERN
11
+ -type TYPE file type, e.g. f for file, d for directory
@@ -0,0 +1,12 @@
1
+ FREE(1) User Commands FREE(1)
2
+
3
+ NAME
4
+ free - display amount of free and used memory in the system
5
+
6
+ SYNOPSIS
7
+ free [OPTION]...
8
+
9
+ OPTIONS
10
+ -h show all output fields automatically scaled
11
+ -m show output in mebibytes
12
+ -g show output in gibibytes
@@ -0,0 +1,13 @@
1
+ GREP(1) User Commands GREP(1)
2
+
3
+ NAME
4
+ grep, egrep, fgrep - print lines that match patterns
5
+
6
+ SYNOPSIS
7
+ grep [OPTION]... PATTERNS [FILE]...
8
+
9
+ OPTIONS
10
+ -i, --ignore-case ignore case distinctions in patterns and data
11
+ -v, --invert-match select non-matching lines
12
+ -n, --line-number print line number with output lines
13
+ -r, --recursive read all files under each directory, recursively
@@ -0,0 +1,10 @@
1
+ GROUPS(1) User Commands GROUPS(1)
2
+
3
+ NAME
4
+ groups - print the groups a user is in
5
+
6
+ SYNOPSIS
7
+ groups [USER]
8
+
9
+ DESCRIPTION
10
+ Print group memberships for USER or current user if omitted.
@@ -0,0 +1,11 @@
1
+ GZIP(1) User Commands GZIP(1)
2
+
3
+ NAME
4
+ gzip, gunzip - compress or expand files
5
+
6
+ SYNOPSIS
7
+ gzip FILE...
8
+ gunzip FILE...
9
+
10
+ DESCRIPTION
11
+ Compress or decompress files in place.
@@ -0,0 +1,10 @@
1
+ HEAD(1) User Commands HEAD(1)
2
+
3
+ NAME
4
+ head - output the first part of files
5
+
6
+ SYNOPSIS
7
+ head [OPTION]... [FILE]...
8
+
9
+ OPTIONS
10
+ -n, --lines=[-]NUM print the first NUM lines
@@ -0,0 +1,11 @@
1
+ HELP(1) Shell Builtins HELP(1)
2
+
3
+ NAME
4
+ help - display information about builtin commands
5
+
6
+ SYNOPSIS
7
+ help [COMMAND]
8
+
9
+ DESCRIPTION
10
+ With no arguments, list available commands.
11
+ With COMMAND, show usage details for that command.
@@ -0,0 +1,11 @@
1
+ HISTORY(1) Shell Builtins HISTORY(1)
2
+
3
+ NAME
4
+ history - command history list
5
+
6
+ SYNOPSIS
7
+ history [N]
8
+
9
+ DESCRIPTION
10
+ Print recent command history entries.
11
+ If N is provided, print only the last N entries.
@@ -0,0 +1,10 @@
1
+ HOSTNAME(1) User Commands HOSTNAME(1)
2
+
3
+ NAME
4
+ hostname - show or set the system host name
5
+
6
+ SYNOPSIS
7
+ hostname
8
+
9
+ DESCRIPTION
10
+ Print the current host name.
@@ -0,0 +1,10 @@
1
+ ID(1) User Commands ID(1)
2
+
3
+ NAME
4
+ id - print real and effective user and group IDs
5
+
6
+ SYNOPSIS
7
+ id [USER]
8
+
9
+ DESCRIPTION
10
+ Print user identity information including uid, gid, and groups.
@@ -0,0 +1,13 @@
1
+ KILL(1) User Commands KILL(1)
2
+
3
+ NAME
4
+ kill - send signals to processes
5
+
6
+ SYNOPSIS
7
+ kill [-SIGNAL] PID...
8
+
9
+ DESCRIPTION
10
+ Send a signal to one or more process IDs.
11
+
12
+ NOTES
13
+ This environment provides a mock process model.
@@ -0,0 +1,20 @@
1
+ LS(1) User Commands LS(1)
2
+
3
+ NAME
4
+ ls - list directory contents
5
+
6
+ SYNOPSIS
7
+ ls [OPTION]... [FILE]...
8
+
9
+ DESCRIPTION
10
+ List information about the FILEs (the current directory by default).
11
+
12
+ OPTIONS
13
+ -l use a long listing format
14
+ -a do not ignore entries starting with .
15
+ -h with -l, print human readable sizes
16
+ -r reverse order while sorting
17
+ -t sort by modification time
18
+
19
+ AUTHOR
20
+ Written by Richard M. Stallman and David MacKenzie.
@@ -0,0 +1,14 @@
1
+ LSB_RELEASE(1) User Commands LSB_RELEASE(1)
2
+
3
+ NAME
4
+ lsb_release - print distribution-specific information
5
+
6
+ SYNOPSIS
7
+ lsb_release [OPTION]...
8
+
9
+ OPTIONS
10
+ -a show all available information
11
+ -i show distributor ID
12
+ -d show description
13
+ -r show release number
14
+ -c show codename
@@ -0,0 +1,10 @@
1
+ MKDIR(1) User Commands MKDIR(1)
2
+
3
+ NAME
4
+ mkdir - make directories
5
+
6
+ SYNOPSIS
7
+ mkdir [OPTION]... DIRECTORY...
8
+
9
+ OPTIONS
10
+ -p no error if existing, make parent directories as needed
@@ -0,0 +1,10 @@
1
+ MV(1) User Commands MV(1)
2
+
3
+ NAME
4
+ mv - move (rename) files
5
+
6
+ SYNOPSIS
7
+ mv SOURCE DEST
8
+
9
+ DESCRIPTION
10
+ Rename SOURCE to DEST, or move SOURCE into a destination directory.