@enjoys/context-engine 1.0.2 → 1.0.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 (58) hide show
  1. package/data/commands/linux.json +826 -21
  2. package/data/commands/manifest.json +3 -1
  3. package/data/completion/awk.json +203 -0
  4. package/data/completion/crontab.json +203 -0
  5. package/data/completion/dotenv.json +170 -0
  6. package/data/completion/go.json +9464 -773
  7. package/data/completion/graphql.json +181 -0
  8. package/data/completion/hcl.json +192 -0
  9. package/data/completion/ini.json +137 -0
  10. package/data/completion/json.json +170 -0
  11. package/data/completion/makefile.json +203 -0
  12. package/data/completion/markdown.json +225 -0
  13. package/data/completion/nginx.json +280 -0
  14. package/data/completion/perl.json +203 -0
  15. package/data/completion/powershell.json +225 -0
  16. package/data/completion/protobuf.json +181 -0
  17. package/data/completion/ssh_config.json +159 -0
  18. package/data/completion/systemd.json +170 -0
  19. package/data/completion/xml.json +159 -0
  20. package/data/completion/zsh.json +214 -0
  21. package/data/defination/awk.json +125 -0
  22. package/data/defination/crontab.json +107 -0
  23. package/data/defination/dotenv.json +71 -0
  24. package/data/defination/go.json +14555 -380
  25. package/data/defination/graphql.json +119 -0
  26. package/data/defination/hcl.json +125 -0
  27. package/data/defination/ini.json +77 -0
  28. package/data/defination/json.json +83 -0
  29. package/data/defination/makefile.json +113 -0
  30. package/data/defination/markdown.json +107 -0
  31. package/data/defination/nginx.json +131 -0
  32. package/data/defination/perl.json +101 -0
  33. package/data/defination/powershell.json +119 -0
  34. package/data/defination/protobuf.json +119 -0
  35. package/data/defination/ssh_config.json +89 -0
  36. package/data/defination/systemd.json +107 -0
  37. package/data/defination/xml.json +83 -0
  38. package/data/defination/zsh.json +113 -0
  39. package/data/hover/awk.json +47 -0
  40. package/data/hover/crontab.json +47 -0
  41. package/data/hover/dotenv.json +47 -0
  42. package/data/hover/go.json +4324 -202
  43. package/data/hover/graphql.json +47 -0
  44. package/data/hover/hcl.json +75 -0
  45. package/data/hover/ini.json +68 -0
  46. package/data/hover/json.json +89 -0
  47. package/data/hover/makefile.json +68 -0
  48. package/data/hover/markdown.json +68 -0
  49. package/data/hover/nginx.json +89 -0
  50. package/data/hover/perl.json +47 -0
  51. package/data/hover/powershell.json +54 -0
  52. package/data/hover/protobuf.json +47 -0
  53. package/data/hover/ssh_config.json +47 -0
  54. package/data/hover/systemd.json +54 -0
  55. package/data/hover/xml.json +61 -0
  56. package/data/hover/zsh.json +61 -0
  57. package/data/manifest.json +210 -6
  58. package/package.json +1 -1
@@ -2180,27 +2180,6 @@
2180
2180
  { "command": "fuser -v .", "description": "Show processes using current directory" }
2181
2181
  ]
2182
2182
  },
2183
- {
2184
- "name": "top",
2185
- "description": "Interactive real-time process viewer (see also htop, btop)",
2186
- "options": [
2187
- { "name": "-b", "description": "Batch mode (for scripts/logging)" },
2188
- { "name": "-n", "description": "Number of iterations", "takesValue": true },
2189
- { "name": "-d", "description": "Delay between updates (seconds)", "takesValue": true },
2190
- { "name": "-p", "description": "Monitor specific PIDs", "takesValue": true },
2191
- { "name": "-u", "description": "Show only processes of user", "takesValue": true },
2192
- { "name": "-H", "description": "Show individual threads" },
2193
- { "name": "-o", "description": "Sort by field", "takesValue": true }
2194
- ],
2195
- "examples": [
2196
- { "command": "top", "description": "Interactive process monitor" },
2197
- { "command": "top -bn1 | head -20", "description": "One snapshot, first 20 lines" },
2198
- { "command": "top -u www-data", "description": "Show only www-data processes" },
2199
- { "command": "top -p 1234,5678", "description": "Monitor specific PIDs" },
2200
- { "command": "top -d 0.5", "description": "Update every 0.5 seconds" },
2201
- { "command": "top -o %MEM", "description": "Sort by memory usage" }
2202
- ]
2203
- },
2204
2183
  {
2205
2184
  "name": "free",
2206
2185
  "description": "Display amount of free and used memory in the system",
@@ -3002,6 +2981,832 @@
3002
2981
  { "command": "sudo aa-complain /etc/apparmor.d/usr.sbin.mysqld", "description": "Set MySQL to complain mode" }
3003
2982
  ]
3004
2983
  }
2984
+ ],
2985
+ "misc": [
2986
+ {
2987
+ "name": "modprobe",
2988
+ "description": "Add or remove kernel modules",
2989
+ "options": [
2990
+ { "name": "-r", "description": "Remove module" },
2991
+ { "name": "-v", "description": "Verbose" },
2992
+ { "name": "-n", "description": "Dry run" },
2993
+ { "name": "--show-depends", "description": "Show module dependencies" }
2994
+ ],
2995
+ "examples": [
2996
+ { "command": "sudo modprobe vboxdrv", "description": "Load VirtualBox driver module" },
2997
+ { "command": "sudo modprobe -r snd_hda_intel", "description": "Remove sound driver module" },
2998
+ { "command": "modprobe --show-depends ext4", "description": "Show ext4 dependencies" }
2999
+ ]
3000
+ },
3001
+ {
3002
+ "name": "lsmod",
3003
+ "description": "Show the status of loaded kernel modules",
3004
+ "options": [],
3005
+ "examples": [
3006
+ { "command": "lsmod", "description": "List all loaded modules" },
3007
+ { "command": "lsmod | grep nvidia", "description": "Check if nvidia module is loaded" },
3008
+ { "command": "lsmod | wc -l", "description": "Count loaded modules" }
3009
+ ]
3010
+ },
3011
+ {
3012
+ "name": "insmod",
3013
+ "description": "Insert a module into the Linux kernel (low-level)",
3014
+ "options": [],
3015
+ "examples": [
3016
+ { "command": "sudo insmod /lib/modules/$(uname -r)/kernel/drivers/net/tun.ko", "description": "Insert TUN module" }
3017
+ ]
3018
+ },
3019
+ {
3020
+ "name": "rmmod",
3021
+ "description": "Remove a module from the Linux kernel (low-level)",
3022
+ "options": [
3023
+ { "name": "-f", "description": "Force removal" },
3024
+ { "name": "-v", "description": "Verbose" }
3025
+ ],
3026
+ "examples": [
3027
+ { "command": "sudo rmmod snd_hda_intel", "description": "Remove sound module" }
3028
+ ]
3029
+ },
3030
+ {
3031
+ "name": "depmod",
3032
+ "description": "Generate modules.dep and map files for kernel modules",
3033
+ "options": [
3034
+ { "name": "-a", "description": "Probe all modules" },
3035
+ { "name": "-n", "description": "Dry run, output to stdout" }
3036
+ ],
3037
+ "examples": [
3038
+ { "command": "sudo depmod -a", "description": "Regenerate module dependency list" },
3039
+ { "command": "depmod -n | grep ext4", "description": "Show ext4 dependencies (dry run)" }
3040
+ ]
3041
+ },
3042
+ {
3043
+ "name": "md5sum",
3044
+ "description": "Compute and check MD5 message digest",
3045
+ "options": [
3046
+ { "name": "-c", "description": "Read checksums from file and verify" },
3047
+ { "name": "--quiet", "description": "Only print failures" }
3048
+ ],
3049
+ "examples": [
3050
+ { "command": "md5sum file.iso", "description": "Get MD5 hash of file" },
3051
+ { "command": "md5sum -c checksums.md5", "description": "Verify checksums" },
3052
+ { "command": "echo -n 'hello' | md5sum", "description": "Hash a string" }
3053
+ ]
3054
+ },
3055
+ {
3056
+ "name": "sha256sum",
3057
+ "description": "Compute and check SHA-256 message digest",
3058
+ "options": [
3059
+ { "name": "-c", "description": "Read checksums from file and verify" },
3060
+ { "name": "--quiet", "description": "Only print failures" }
3061
+ ],
3062
+ "examples": [
3063
+ { "command": "sha256sum file.iso", "description": "Get SHA-256 hash" },
3064
+ { "command": "sha256sum -c SHA256SUMS", "description": "Verify checksums file" },
3065
+ { "command": "echo -n 'hello' | sha256sum", "description": "Hash a string" }
3066
+ ]
3067
+ },
3068
+ {
3069
+ "name": "sha1sum",
3070
+ "description": "Compute and check SHA-1 message digest",
3071
+ "options": [
3072
+ { "name": "-c", "description": "Verify checksums from file" }
3073
+ ],
3074
+ "examples": [
3075
+ { "command": "sha1sum file.tar.gz", "description": "Get SHA-1 hash" }
3076
+ ]
3077
+ },
3078
+ {
3079
+ "name": "base64",
3080
+ "description": "Base64 encode/decode data",
3081
+ "options": [
3082
+ { "name": "-d", "description": "Decode" },
3083
+ { "name": "-w", "description": "Wrap lines after N columns (0=no wrap)", "takesValue": true }
3084
+ ],
3085
+ "examples": [
3086
+ { "command": "echo 'hello' | base64", "description": "Encode string" },
3087
+ { "command": "echo 'aGVsbG8K' | base64 -d", "description": "Decode string" },
3088
+ { "command": "base64 -w 0 file.bin > encoded.txt", "description": "Encode file with no line wrapping" }
3089
+ ]
3090
+ },
3091
+ {
3092
+ "name": "gpg",
3093
+ "description": "GNU Privacy Guard - encrypt, sign, verify files",
3094
+ "options": [
3095
+ { "name": "-c", "description": "Symmetric encryption with passphrase" },
3096
+ { "name": "-d", "description": "Decrypt" },
3097
+ { "name": "--decrypt", "description": "Decrypt file" },
3098
+ { "name": "-e", "description": "Encrypt" },
3099
+ { "name": "-r", "description": "Recipient for encryption", "takesValue": true },
3100
+ { "name": "-s", "description": "Sign" },
3101
+ { "name": "--verify", "description": "Verify a signature" },
3102
+ { "name": "--gen-key", "description": "Generate a new key pair" },
3103
+ { "name": "--list-keys", "description": "List public keys" },
3104
+ { "name": "--list-secret-keys", "description": "List secret keys" },
3105
+ { "name": "--export", "description": "Export public key" },
3106
+ { "name": "--import", "description": "Import a key" },
3107
+ { "name": "--armor", "description": "ASCII armor output" },
3108
+ { "name": "--output", "description": "Output file", "takesValue": true },
3109
+ { "name": "--keyserver", "description": "Keyserver to use", "takesValue": true }
3110
+ ],
3111
+ "examples": [
3112
+ { "command": "gpg -c secret.txt", "description": "Encrypt with passphrase" },
3113
+ { "command": "gpg -d secret.txt.gpg", "description": "Decrypt file" },
3114
+ { "command": "gpg -e -r user@email.com file.txt", "description": "Encrypt for recipient" },
3115
+ { "command": "gpg --gen-key", "description": "Generate new key pair" },
3116
+ { "command": "gpg --list-keys", "description": "List all public keys" },
3117
+ { "command": "gpg --armor --export user@email.com > pubkey.asc", "description": "Export public key" },
3118
+ { "command": "gpg --verify file.sig file.txt", "description": "Verify detached signature" }
3119
+ ]
3120
+ },
3121
+ {
3122
+ "name": "chroot",
3123
+ "description": "Run command or interactive shell with special root directory",
3124
+ "options": [
3125
+ { "name": "--userspec", "description": "Run as user:group", "takesValue": true }
3126
+ ],
3127
+ "examples": [
3128
+ { "command": "sudo chroot /mnt/newroot /bin/bash", "description": "Enter chroot environment" },
3129
+ { "command": "sudo chroot /mnt/rescue", "description": "Chroot into rescue system" }
3130
+ ]
3131
+ },
3132
+ {
3133
+ "name": "nsenter",
3134
+ "description": "Run program with namespaces of another process",
3135
+ "options": [
3136
+ { "name": "-t", "description": "Target PID", "takesValue": true },
3137
+ { "name": "-m", "description": "Enter mount namespace" },
3138
+ { "name": "-u", "description": "Enter UTS namespace" },
3139
+ { "name": "-i", "description": "Enter IPC namespace" },
3140
+ { "name": "-n", "description": "Enter network namespace" },
3141
+ { "name": "-p", "description": "Enter PID namespace" }
3142
+ ],
3143
+ "examples": [
3144
+ { "command": "sudo nsenter -t 1234 -m -u -i -n -p -- /bin/bash", "description": "Enter all namespaces of PID 1234" },
3145
+ { "command": "sudo nsenter -t $(docker inspect -f '{{.State.Pid}}' mycontainer) -n ip addr", "description": "Enter container network namespace" }
3146
+ ]
3147
+ },
3148
+ {
3149
+ "name": "unshare",
3150
+ "description": "Run program in new namespaces",
3151
+ "options": [
3152
+ { "name": "--mount", "description": "Create new mount namespace" },
3153
+ { "name": "--uts", "description": "Create new UTS namespace" },
3154
+ { "name": "--ipc", "description": "Create new IPC namespace" },
3155
+ { "name": "--net", "description": "Create new network namespace" },
3156
+ { "name": "--pid", "description": "Create new PID namespace" },
3157
+ { "name": "--user", "description": "Create new user namespace" },
3158
+ { "name": "--map-root-user", "description": "Map current user to root in new namespace" },
3159
+ { "name": "-r", "description": "Map current user to root" },
3160
+ { "name": "--fork", "description": "Fork before running" }
3161
+ ],
3162
+ "examples": [
3163
+ { "command": "unshare --net ip addr", "description": "Run in isolated network namespace" },
3164
+ { "command": "unshare --user --map-root-user bash", "description": "Get fake root in user namespace" },
3165
+ { "command": "unshare --pid --fork --mount-proc bash", "description": "New PID namespace with own /proc" }
3166
+ ]
3167
+ },
3168
+ {
3169
+ "name": "logger",
3170
+ "description": "Make entries in the system log (syslog)",
3171
+ "options": [
3172
+ { "name": "-p", "description": "Priority (facility.level)", "takesValue": true },
3173
+ { "name": "-t", "description": "Tag/identifier", "takesValue": true },
3174
+ { "name": "-s", "description": "Also log to stderr" },
3175
+ { "name": "-f", "description": "Log contents of file", "takesValue": true }
3176
+ ],
3177
+ "examples": [
3178
+ { "command": "logger 'Backup completed successfully'", "description": "Log a message" },
3179
+ { "command": "logger -t myapp -p local0.info 'Started'", "description": "Log with tag and priority" },
3180
+ { "command": "logger -s 'Error occurred'", "description": "Log to syslog and stderr" }
3181
+ ]
3182
+ },
3183
+ {
3184
+ "name": "cpio",
3185
+ "description": "Copy files to and from archives",
3186
+ "options": [
3187
+ { "name": "-o", "description": "Create archive (copy-out mode)" },
3188
+ { "name": "-i", "description": "Extract archive (copy-in mode)" },
3189
+ { "name": "-p", "description": "Pass-through (copy files to directory)" },
3190
+ { "name": "-d", "description": "Create directories as needed" },
3191
+ { "name": "-v", "description": "Verbose" },
3192
+ { "name": "-t", "description": "List contents" },
3193
+ { "name": "--format", "description": "Archive format (newc, crc, etc.)", "takesValue": true }
3194
+ ],
3195
+ "examples": [
3196
+ { "command": "find . -name '*.conf' | cpio -ov > configs.cpio", "description": "Archive config files" },
3197
+ { "command": "cpio -idv < archive.cpio", "description": "Extract archive" },
3198
+ { "command": "cpio -t < archive.cpio", "description": "List archive contents" },
3199
+ { "command": "find . -depth | cpio -pdv /backup/", "description": "Copy directory tree" }
3200
+ ]
3201
+ },
3202
+ {
3203
+ "name": "fmt",
3204
+ "description": "Simple optimal text formatter (reformat paragraphs)",
3205
+ "options": [
3206
+ { "name": "-w", "description": "Maximum line width", "takesValue": true },
3207
+ { "name": "-s", "description": "Split long lines only, no refilling" },
3208
+ { "name": "-u", "description": "Uniform spacing (one space between words)" }
3209
+ ],
3210
+ "examples": [
3211
+ { "command": "fmt -w 72 article.txt", "description": "Reformat to 72 columns" },
3212
+ { "command": "fmt -s long_lines.txt", "description": "Split long lines without joining short ones" }
3213
+ ]
3214
+ },
3215
+ {
3216
+ "name": "fold",
3217
+ "description": "Wrap each input line to fit in specified width",
3218
+ "options": [
3219
+ { "name": "-w", "description": "Width in columns", "takesValue": true },
3220
+ { "name": "-s", "description": "Break at spaces" },
3221
+ { "name": "-b", "description": "Count bytes instead of columns" }
3222
+ ],
3223
+ "examples": [
3224
+ { "command": "fold -w 80 -s longfile.txt", "description": "Wrap at 80 cols, break at spaces" },
3225
+ { "command": "echo $PATH | fold -s -w 60", "description": "Wrap PATH for readability" }
3226
+ ]
3227
+ },
3228
+ {
3229
+ "name": "expand",
3230
+ "description": "Convert tabs to spaces",
3231
+ "options": [
3232
+ { "name": "-t", "description": "Tab stop positions", "takesValue": true },
3233
+ { "name": "--initial", "description": "Only convert leading tabs" }
3234
+ ],
3235
+ "examples": [
3236
+ { "command": "expand -t 4 file.txt", "description": "Convert tabs to 4 spaces" },
3237
+ { "command": "expand --initial file.txt", "description": "Only expand leading tabs" }
3238
+ ]
3239
+ },
3240
+ {
3241
+ "name": "unexpand",
3242
+ "description": "Convert spaces to tabs",
3243
+ "options": [
3244
+ { "name": "-t", "description": "Tab stop positions", "takesValue": true },
3245
+ { "name": "-a", "description": "Convert all spaces, not just leading" }
3246
+ ],
3247
+ "examples": [
3248
+ { "command": "unexpand -t 4 file.txt", "description": "Convert 4-space indents to tabs" },
3249
+ { "command": "unexpand --first-only file.txt", "description": "Only convert leading spaces" }
3250
+ ]
3251
+ },
3252
+ {
3253
+ "name": "wall",
3254
+ "description": "Write a message to all logged-in users",
3255
+ "options": [
3256
+ { "name": "-n", "description": "Suppress banner" }
3257
+ ],
3258
+ "examples": [
3259
+ { "command": "wall 'System going down in 10 minutes'", "description": "Broadcast message" },
3260
+ { "command": "echo 'Maintenance at 3 AM' | wall", "description": "Pipe message to wall" }
3261
+ ]
3262
+ },
3263
+ {
3264
+ "name": "write",
3265
+ "description": "Send a message to another user's terminal",
3266
+ "options": [],
3267
+ "examples": [
3268
+ { "command": "write john pts/1", "description": "Send message to john on pts/1" }
3269
+ ]
3270
+ },
3271
+ {
3272
+ "name": "mesg",
3273
+ "description": "Control write access to your terminal",
3274
+ "options": [],
3275
+ "examples": [
3276
+ { "command": "mesg n", "description": "Disable messages from other users" },
3277
+ { "command": "mesg y", "description": "Enable messages from other users" },
3278
+ { "command": "mesg", "description": "Show current message status" }
3279
+ ]
3280
+ },
3281
+ {
3282
+ "name": "test",
3283
+ "description": "Evaluate conditional expressions (also [ ])",
3284
+ "options": [
3285
+ { "name": "-f", "description": "True if file exists and is regular" },
3286
+ { "name": "-d", "description": "True if file exists and is directory" },
3287
+ { "name": "-e", "description": "True if file exists" },
3288
+ { "name": "-r", "description": "True if file is readable" },
3289
+ { "name": "-w", "description": "True if file is writable" },
3290
+ { "name": "-x", "description": "True if file is executable" },
3291
+ { "name": "-s", "description": "True if file exists and is non-empty" },
3292
+ { "name": "-z", "description": "True if string is empty" },
3293
+ { "name": "-n", "description": "True if string is non-empty" },
3294
+ { "name": "-eq", "description": "Integer equal" },
3295
+ { "name": "-ne", "description": "Integer not equal" },
3296
+ { "name": "-gt", "description": "Integer greater than" },
3297
+ { "name": "-lt", "description": "Integer less than" },
3298
+ { "name": "-ge", "description": "Integer greater or equal" },
3299
+ { "name": "-le", "description": "Integer less or equal" }
3300
+ ],
3301
+ "examples": [
3302
+ { "command": "test -f /etc/passwd && echo exists", "description": "Check if file exists" },
3303
+ { "command": "[ -d /tmp ] && echo 'is directory'", "description": "Check if directory exists" },
3304
+ { "command": "test $a -eq $b && echo equal", "description": "Compare integers" },
3305
+ { "command": "[ -z \"$VAR\" ] && echo 'empty'", "description": "Check if variable is empty" }
3306
+ ]
3307
+ },
3308
+ {
3309
+ "name": "expr",
3310
+ "description": "Evaluate expressions (arithmetic, string, comparison)",
3311
+ "options": [],
3312
+ "examples": [
3313
+ { "command": "expr 5 + 3", "description": "Add numbers" },
3314
+ { "command": "expr 10 \\* 5", "description": "Multiply (escape the *)" },
3315
+ { "command": "expr length 'hello world'", "description": "Get string length" },
3316
+ { "command": "expr substr 'hello' 1 3", "description": "Substring extraction" }
3317
+ ]
3318
+ },
3319
+ {
3320
+ "name": "bc",
3321
+ "description": "Arbitrary precision calculator language",
3322
+ "options": [
3323
+ { "name": "-l", "description": "Use math library (enables decimals, trig, etc.)" },
3324
+ { "name": "-q", "description": "Quiet mode (no welcome banner)" }
3325
+ ],
3326
+ "examples": [
3327
+ { "command": "echo '3.14 * 2.5' | bc -l", "description": "Floating point math" },
3328
+ { "command": "echo 'scale=10; 1/3' | bc", "description": "Division with precision" },
3329
+ { "command": "echo 'obase=16; 255' | bc", "description": "Convert to hex" },
3330
+ { "command": "echo 'ibase=2; 11010' | bc", "description": "Convert from binary" },
3331
+ { "command": "echo 'sqrt(144)' | bc -l", "description": "Square root" }
3332
+ ]
3333
+ },
3334
+ {
3335
+ "name": "seq",
3336
+ "description": "Print a sequence of numbers",
3337
+ "options": [
3338
+ { "name": "-s", "description": "Separator string", "takesValue": true },
3339
+ { "name": "-w", "description": "Equal width (zero-padded)" },
3340
+ { "name": "-f", "description": "Format string (printf-style)", "takesValue": true }
3341
+ ],
3342
+ "examples": [
3343
+ { "command": "seq 1 10", "description": "Print 1 through 10" },
3344
+ { "command": "seq 0 2 20", "description": "Even numbers 0 to 20" },
3345
+ { "command": "seq -w 01 100", "description": "Zero-padded sequence" },
3346
+ { "command": "seq -s ', ' 1 5", "description": "Comma-separated: 1, 2, 3, 4, 5" }
3347
+ ]
3348
+ },
3349
+ {
3350
+ "name": "xdg-open",
3351
+ "description": "Open a file or URL with the default application (desktop)",
3352
+ "options": [],
3353
+ "examples": [
3354
+ { "command": "xdg-open https://example.com", "description": "Open URL in default browser" },
3355
+ { "command": "xdg-open document.pdf", "description": "Open PDF with default viewer" },
3356
+ { "command": "xdg-open .", "description": "Open current directory in file manager" }
3357
+ ]
3358
+ },
3359
+ {
3360
+ "name": "systemd-analyze",
3361
+ "description": "Analyze systemd boot-up performance",
3362
+ "options": [],
3363
+ "subcommands": [
3364
+ { "name": "blame", "description": "Show time taken by each service to start" },
3365
+ { "name": "critical-chain", "description": "Show critical chain of boot" },
3366
+ { "name": "plot", "description": "Generate SVG boot chart" },
3367
+ { "name": "dot", "description": "Generate dependency graph in dot format" },
3368
+ { "name": "verify", "description": "Verify unit files" },
3369
+ { "name": "security", "description": "Analyze security of service units" }
3370
+ ],
3371
+ "examples": [
3372
+ { "command": "systemd-analyze", "description": "Show total boot time" },
3373
+ { "command": "systemd-analyze blame", "description": "Show per-service boot times" },
3374
+ { "command": "systemd-analyze critical-chain", "description": "Show critical chain" },
3375
+ { "command": "systemd-analyze plot > boot.svg", "description": "Generate boot chart" },
3376
+ { "command": "systemd-analyze security nginx.service", "description": "Check service security" }
3377
+ ]
3378
+ },
3379
+ {
3380
+ "name": "coredumpctl",
3381
+ "description": "Manage stored core dumps (systemd-coredump)",
3382
+ "subcommands": [
3383
+ { "name": "list", "description": "List available core dumps" },
3384
+ { "name": "info", "description": "Show info about a core dump" },
3385
+ { "name": "dump", "description": "Save core dump to file" },
3386
+ { "name": "debug", "description": "Launch debugger on a core dump" }
3387
+ ],
3388
+ "examples": [
3389
+ { "command": "coredumpctl list", "description": "List all core dumps" },
3390
+ { "command": "coredumpctl info", "description": "Info about last core dump" },
3391
+ { "command": "coredumpctl debug", "description": "Debug last crash with gdb" }
3392
+ ]
3393
+ },
3394
+ {
3395
+ "name": "busctl",
3396
+ "description": "Introspect D-Bus (systemd bus)",
3397
+ "subcommands": [
3398
+ { "name": "list", "description": "List bus names" },
3399
+ { "name": "tree", "description": "Show object tree of service" },
3400
+ { "name": "introspect", "description": "Introspect object" },
3401
+ { "name": "monitor", "description": "Monitor bus messages" },
3402
+ { "name": "call", "description": "Call a method" }
3403
+ ],
3404
+ "examples": [
3405
+ { "command": "busctl list", "description": "List D-Bus services" },
3406
+ { "command": "busctl tree org.freedesktop.systemd1", "description": "Show systemd object tree" },
3407
+ { "command": "busctl monitor", "description": "Monitor all D-Bus messages" }
3408
+ ]
3409
+ },
3410
+ {
3411
+ "name": "networkctl",
3412
+ "description": "Query/control systemd-networkd",
3413
+ "subcommands": [
3414
+ { "name": "list", "description": "List links" },
3415
+ { "name": "status", "description": "Show network status" },
3416
+ { "name": "up", "description": "Bring interface up" },
3417
+ { "name": "down", "description": "Bring interface down" },
3418
+ { "name": "lldp", "description": "Show LLDP neighbors" }
3419
+ ],
3420
+ "examples": [
3421
+ { "command": "networkctl list", "description": "List network interfaces" },
3422
+ { "command": "networkctl status eth0", "description": "Show interface details" },
3423
+ { "command": "networkctl status", "description": "Show overall network status" }
3424
+ ]
3425
+ },
3426
+ {
3427
+ "name": "lscpu",
3428
+ "description": "Display information about CPU architecture",
3429
+ "options": [
3430
+ { "name": "-e", "description": "Extended output (table)" },
3431
+ { "name": "-J", "description": "JSON output" },
3432
+ { "name": "-p", "description": "Parseable output" }
3433
+ ],
3434
+ "examples": [
3435
+ { "command": "lscpu", "description": "Show CPU info" },
3436
+ { "command": "lscpu -J", "description": "CPU info as JSON" },
3437
+ { "command": "lscpu | grep 'Model name'", "description": "Get CPU model" }
3438
+ ]
3439
+ },
3440
+ {
3441
+ "name": "lsmem",
3442
+ "description": "List available memory ranges and their online status",
3443
+ "options": [
3444
+ { "name": "-J", "description": "JSON output" },
3445
+ { "name": "--summary", "description": "Only print summary" }
3446
+ ],
3447
+ "examples": [
3448
+ { "command": "lsmem", "description": "Show memory ranges" },
3449
+ { "command": "lsmem --summary", "description": "Show memory summary" }
3450
+ ]
3451
+ },
3452
+ {
3453
+ "name": "lspci",
3454
+ "description": "List all PCI devices",
3455
+ "options": [
3456
+ { "name": "-v", "description": "Verbose" },
3457
+ { "name": "-vv", "description": "Very verbose" },
3458
+ { "name": "-k", "description": "Show kernel drivers handling each device" },
3459
+ { "name": "-nn", "description": "Show numeric and text vendor/device IDs" },
3460
+ { "name": "-t", "description": "Tree view" },
3461
+ { "name": "-s", "description": "Show specific slot", "takesValue": true }
3462
+ ],
3463
+ "examples": [
3464
+ { "command": "lspci", "description": "List all PCI devices" },
3465
+ { "command": "lspci -k", "description": "Show kernel driver for each device" },
3466
+ { "command": "lspci | grep -i vga", "description": "Show GPU" },
3467
+ { "command": "lspci -vnn -s 00:02.0", "description": "Detailed info for specific device" }
3468
+ ]
3469
+ },
3470
+ {
3471
+ "name": "lsusb",
3472
+ "description": "List USB devices",
3473
+ "options": [
3474
+ { "name": "-v", "description": "Verbose" },
3475
+ { "name": "-t", "description": "Tree view" },
3476
+ { "name": "-s", "description": "Show specific bus/device", "takesValue": true },
3477
+ { "name": "-d", "description": "Show specific vendor:product", "takesValue": true }
3478
+ ],
3479
+ "examples": [
3480
+ { "command": "lsusb", "description": "List all USB devices" },
3481
+ { "command": "lsusb -t", "description": "Show USB device tree" },
3482
+ { "command": "lsusb -v -s 001:002", "description": "Verbose info for specific device" }
3483
+ ]
3484
+ },
3485
+ {
3486
+ "name": "dmidecode",
3487
+ "description": "DMI/SMBIOS table decoder (hardware info from BIOS)",
3488
+ "options": [
3489
+ { "name": "-t", "description": "Type (bios, system, baseboard, chassis, processor, memory, cache, connector, slot)", "takesValue": true },
3490
+ { "name": "-s", "description": "Show specific keyword string", "takesValue": true }
3491
+ ],
3492
+ "examples": [
3493
+ { "command": "sudo dmidecode -t memory", "description": "Show RAM details" },
3494
+ { "command": "sudo dmidecode -t bios", "description": "Show BIOS info" },
3495
+ { "command": "sudo dmidecode -t system", "description": "Show system/motherboard info" },
3496
+ { "command": "sudo dmidecode -s system-product-name", "description": "Get product name" },
3497
+ { "command": "sudo dmidecode -t processor", "description": "Show processor info" }
3498
+ ]
3499
+ },
3500
+ {
3501
+ "name": "hwinfo",
3502
+ "description": "Probe for hardware (SUSE/general, install with package manager)",
3503
+ "options": [
3504
+ { "name": "--short", "description": "Short listing" },
3505
+ { "name": "--cpu", "description": "CPU info" },
3506
+ { "name": "--disk", "description": "Disk info" },
3507
+ { "name": "--memory", "description": "Memory info" },
3508
+ { "name": "--network", "description": "Network info" },
3509
+ { "name": "--gfxcard", "description": "Graphics card info" },
3510
+ { "name": "--sound", "description": "Sound card info" }
3511
+ ],
3512
+ "examples": [
3513
+ { "command": "sudo hwinfo --short", "description": "Brief hardware summary" },
3514
+ { "command": "sudo hwinfo --disk", "description": "Detailed disk info" },
3515
+ { "command": "sudo hwinfo --network --short", "description": "Network hardware summary" }
3516
+ ]
3517
+ },
3518
+ {
3519
+ "name": "lsns",
3520
+ "description": "List Linux namespaces",
3521
+ "options": [
3522
+ { "name": "-t", "description": "Filter by type (mnt, net, pid, user, uts, ipc, cgroup)", "takesValue": true },
3523
+ { "name": "-J", "description": "JSON output" }
3524
+ ],
3525
+ "examples": [
3526
+ { "command": "lsns", "description": "List all namespaces" },
3527
+ { "command": "lsns -t net", "description": "List network namespaces" },
3528
+ { "command": "lsns -J", "description": "JSON format output" }
3529
+ ]
3530
+ },
3531
+ {
3532
+ "name": "lsipc",
3533
+ "description": "Show information on IPC facilities (shared memory, semaphores, message queues)",
3534
+ "options": [
3535
+ { "name": "-m", "description": "Shared memory" },
3536
+ { "name": "-s", "description": "Semaphores" },
3537
+ { "name": "-q", "description": "Message queues" },
3538
+ { "name": "-J", "description": "JSON output" }
3539
+ ],
3540
+ "examples": [
3541
+ { "command": "lsipc", "description": "Show all IPC resources" },
3542
+ { "command": "lsipc -m", "description": "Show shared memory segments" }
3543
+ ]
3544
+ },
3545
+ {
3546
+ "name": "ipcs",
3547
+ "description": "Show info on IPC facilities",
3548
+ "options": [
3549
+ { "name": "-m", "description": "Shared memory" },
3550
+ { "name": "-s", "description": "Semaphores" },
3551
+ { "name": "-q", "description": "Message queues" },
3552
+ { "name": "-a", "description": "All" }
3553
+ ],
3554
+ "examples": [
3555
+ { "command": "ipcs -a", "description": "Show all IPC resources" }
3556
+ ]
3557
+ },
3558
+ {
3559
+ "name": "ipcrm",
3560
+ "description": "Remove IPC resources",
3561
+ "options": [
3562
+ { "name": "-m", "description": "Remove shared memory by shmid", "takesValue": true },
3563
+ { "name": "-s", "description": "Remove semaphore by semid", "takesValue": true },
3564
+ { "name": "-q", "description": "Remove message queue by msqid", "takesValue": true }
3565
+ ],
3566
+ "examples": [
3567
+ { "command": "ipcrm -m 12345", "description": "Remove shared memory segment" }
3568
+ ]
3569
+ },
3570
+ {
3571
+ "name": "taskset",
3572
+ "description": "Set or retrieve a process's CPU affinity",
3573
+ "options": [
3574
+ { "name": "-p", "description": "Operate on existing process", "takesValue": true },
3575
+ { "name": "-c", "description": "Use CPU list format" }
3576
+ ],
3577
+ "examples": [
3578
+ { "command": "taskset -c 0,1 ./myapp", "description": "Run on CPUs 0 and 1 only" },
3579
+ { "command": "taskset -p 1234", "description": "Show CPU affinity of PID 1234" },
3580
+ { "command": "taskset -cp 0-3 1234", "description": "Set PID 1234 to CPUs 0-3" }
3581
+ ]
3582
+ },
3583
+ {
3584
+ "name": "chrt",
3585
+ "description": "Manipulate real-time scheduling attributes of a process",
3586
+ "options": [
3587
+ { "name": "-f", "description": "FIFO scheduling" },
3588
+ { "name": "-r", "description": "Round-robin scheduling" },
3589
+ { "name": "-o", "description": "Normal scheduling" },
3590
+ { "name": "-p", "description": "Operate on existing PID", "takesValue": true },
3591
+ { "name": "-m", "description": "Show min/max priorities" }
3592
+ ],
3593
+ "examples": [
3594
+ { "command": "chrt -m", "description": "Show priority ranges" },
3595
+ { "command": "sudo chrt -f 99 ./realtime_app", "description": "Run with FIFO priority 99" },
3596
+ { "command": "chrt -p 1234", "description": "Show scheduling of PID 1234" }
3597
+ ]
3598
+ },
3599
+ {
3600
+ "name": "ionice",
3601
+ "description": "Set or get I/O scheduling class and priority",
3602
+ "options": [
3603
+ { "name": "-c", "description": "Class (1=realtime,2=best-effort,3=idle)", "takesValue": true },
3604
+ { "name": "-n", "description": "Priority (0-7, lower is higher)", "takesValue": true },
3605
+ { "name": "-p", "description": "Process ID", "takesValue": true }
3606
+ ],
3607
+ "examples": [
3608
+ { "command": "ionice -c 3 cp bigfile /backup/", "description": "Copy with idle I/O priority" },
3609
+ { "command": "ionice -c 2 -n 0 dd if=/dev/sda of=/dev/sdb", "description": "Best-effort high priority" },
3610
+ { "command": "ionice -p 1234", "description": "Show I/O class of PID 1234" }
3611
+ ]
3612
+ },
3613
+ {
3614
+ "name": "numfmt",
3615
+ "description": "Convert numbers from/to human-readable strings",
3616
+ "options": [
3617
+ { "name": "--to", "description": "Output format (iec, si, iec-i, auto)", "takesValue": true },
3618
+ { "name": "--from", "description": "Input format (iec, si, iec-i, auto)", "takesValue": true },
3619
+ { "name": "--suffix", "description": "Append suffix", "takesValue": true },
3620
+ { "name": "--field", "description": "Convert specific field", "takesValue": true }
3621
+ ],
3622
+ "examples": [
3623
+ { "command": "numfmt --to=iec 1048576", "description": "Convert to 1.0M" },
3624
+ { "command": "numfmt --from=iec 1G", "description": "Convert 1G to bytes" },
3625
+ { "command": "df | numfmt --field 2,3,4 --to=iec --header", "description": "Human-readable df output" }
3626
+ ]
3627
+ },
3628
+ {
3629
+ "name": "rev",
3630
+ "description": "Reverse lines characterwise",
3631
+ "options": [],
3632
+ "examples": [
3633
+ { "command": "echo 'hello' | rev", "description": "Output: olleh" },
3634
+ { "command": "rev file.txt", "description": "Reverse each line in file" }
3635
+ ]
3636
+ },
3637
+ {
3638
+ "name": "tac",
3639
+ "description": "Concatenate and print files in reverse (reverse of cat)",
3640
+ "options": [
3641
+ { "name": "-s", "description": "Separator string", "takesValue": true }
3642
+ ],
3643
+ "examples": [
3644
+ { "command": "tac file.txt", "description": "Print file bottom to top" },
3645
+ { "command": "tac access.log | head -20", "description": "Last 20 lines in reverse order" }
3646
+ ]
3647
+ },
3648
+ {
3649
+ "name": "yes",
3650
+ "description": "Output a string repeatedly until killed",
3651
+ "options": [],
3652
+ "examples": [
3653
+ { "command": "yes | rm -i *.tmp", "description": "Auto-answer yes to all prompts" },
3654
+ { "command": "yes n | command", "description": "Auto-answer no" },
3655
+ { "command": "yes 'text' | head -100", "description": "Generate 100 lines of text" }
3656
+ ]
3657
+ },
3658
+ {
3659
+ "name": "rename",
3660
+ "description": "Rename files using perl regex (prename) or simple patterns",
3661
+ "options": [
3662
+ { "name": "-n", "description": "Dry run (show what would happen)" },
3663
+ { "name": "-v", "description": "Verbose" },
3664
+ { "name": "-f", "description": "Force overwrite" }
3665
+ ],
3666
+ "examples": [
3667
+ { "command": "rename 's/.txt/.md/' *.txt", "description": "Change .txt to .md" },
3668
+ { "command": "rename 's/IMG_/photo_/' *.jpg", "description": "Rename photo prefix" },
3669
+ { "command": "rename -n 'y/A-Z/a-z/' *", "description": "Dry run: lowercase filenames" }
3670
+ ]
3671
+ },
3672
+ {
3673
+ "name": "updatedb",
3674
+ "description": "Update the file name database used by locate",
3675
+ "options": [
3676
+ { "name": "--prunepaths", "description": "Paths to skip", "takesValue": true }
3677
+ ],
3678
+ "examples": [
3679
+ { "command": "sudo updatedb", "description": "Update locate database" }
3680
+ ]
3681
+ },
3682
+ {
3683
+ "name": "locate",
3684
+ "description": "Find files by name (uses pre-built database from updatedb)",
3685
+ "options": [
3686
+ { "name": "-i", "description": "Case insensitive" },
3687
+ { "name": "-n", "description": "Limit results", "takesValue": true },
3688
+ { "name": "-r", "description": "Search by regex", "takesValue": true },
3689
+ { "name": "--existing", "description": "Only show existing files" }
3690
+ ],
3691
+ "examples": [
3692
+ { "command": "locate nginx.conf", "description": "Find nginx config files" },
3693
+ { "command": "locate -i readme", "description": "Case-insensitive search" },
3694
+ { "command": "locate -n 10 '*.log'", "description": "First 10 log files" }
3695
+ ]
3696
+ },
3697
+ {
3698
+ "name": "whatis",
3699
+ "description": "Display one-line manual page descriptions",
3700
+ "options": [],
3701
+ "examples": [
3702
+ { "command": "whatis ls", "description": "Short description of ls" },
3703
+ { "command": "whatis -w 'git*'", "description": "All git-related commands" }
3704
+ ]
3705
+ },
3706
+ {
3707
+ "name": "apropos",
3708
+ "description": "Search manual page names and descriptions",
3709
+ "options": [],
3710
+ "examples": [
3711
+ { "command": "apropos network", "description": "Find commands related to network" },
3712
+ { "command": "apropos partition", "description": "Find partition-related commands" }
3713
+ ]
3714
+ },
3715
+ {
3716
+ "name": "man",
3717
+ "description": "Display manual pages",
3718
+ "options": [
3719
+ { "name": "-k", "description": "Search by keyword (same as apropos)" },
3720
+ { "name": "-f", "description": "Whatis (short description)" }
3721
+ ],
3722
+ "examples": [
3723
+ { "command": "man ls", "description": "Show manual for ls" },
3724
+ { "command": "man 5 crontab", "description": "Show section 5 (file format) for crontab" },
3725
+ { "command": "man -k compress", "description": "Search for compression-related pages" }
3726
+ ]
3727
+ },
3728
+ {
3729
+ "name": "info",
3730
+ "description": "Read Info documents (GNU hypertext system)",
3731
+ "options": [],
3732
+ "examples": [
3733
+ { "command": "info coreutils", "description": "Browse coreutils documentation" },
3734
+ { "command": "info grep", "description": "Read grep info page" }
3735
+ ]
3736
+ },
3737
+ {
3738
+ "name": "help",
3739
+ "description": "Display help for shell builtins",
3740
+ "options": [],
3741
+ "examples": [
3742
+ { "command": "help cd", "description": "Help for cd builtin" },
3743
+ { "command": "help test", "description": "Help for test/[ builtin" }
3744
+ ]
3745
+ },
3746
+ {
3747
+ "name": "type",
3748
+ "description": "Show how a command name would be interpreted",
3749
+ "options": [
3750
+ { "name": "-a", "description": "Show all matches" },
3751
+ { "name": "-t", "description": "Show type only (alias, builtin, file, function, keyword)" }
3752
+ ],
3753
+ "examples": [
3754
+ { "command": "type ls", "description": "Is ls an alias, builtin, or file?" },
3755
+ { "command": "type -a python", "description": "Show all python executables" }
3756
+ ]
3757
+ },
3758
+ {
3759
+ "name": "which",
3760
+ "description": "Show full path of shell commands",
3761
+ "options": [
3762
+ { "name": "-a", "description": "Show all matches in PATH" }
3763
+ ],
3764
+ "examples": [
3765
+ { "command": "which python3", "description": "Find python3 path" },
3766
+ { "command": "which -a node", "description": "All node executables in PATH" }
3767
+ ]
3768
+ },
3769
+ {
3770
+ "name": "whereis",
3771
+ "description": "Locate binary, source, and manual page files for a command",
3772
+ "options": [
3773
+ { "name": "-b", "description": "Only binaries" },
3774
+ { "name": "-m", "description": "Only manuals" },
3775
+ { "name": "-s", "description": "Only sources" }
3776
+ ],
3777
+ "examples": [
3778
+ { "command": "whereis nginx", "description": "Find nginx binary, config, and man page" },
3779
+ { "command": "whereis -b python3", "description": "Find python3 binary only" }
3780
+ ]
3781
+ },
3782
+ {
3783
+ "name": "printenv",
3784
+ "description": "Print all or specific environment variables",
3785
+ "options": [],
3786
+ "examples": [
3787
+ { "command": "printenv", "description": "Print all environment variables" },
3788
+ { "command": "printenv HOME", "description": "Print value of HOME" },
3789
+ { "command": "printenv PATH", "description": "Print value of PATH" }
3790
+ ]
3791
+ },
3792
+ {
3793
+ "name": "ulimit",
3794
+ "description": "Get or set user resource limits",
3795
+ "options": [
3796
+ { "name": "-a", "description": "Show all limits" },
3797
+ { "name": "-n", "description": "Max open file descriptors" },
3798
+ { "name": "-u", "description": "Max user processes" },
3799
+ { "name": "-s", "description": "Max stack size" },
3800
+ { "name": "-v", "description": "Max virtual memory" },
3801
+ { "name": "-S", "description": "Soft limit" },
3802
+ { "name": "-H", "description": "Hard limit" }
3803
+ ],
3804
+ "examples": [
3805
+ { "command": "ulimit -a", "description": "Show all limits" },
3806
+ { "command": "ulimit -n 65536", "description": "Set max open files to 65536" },
3807
+ { "command": "ulimit -u 4096", "description": "Set max user processes" }
3808
+ ]
3809
+ }
3005
3810
  ]
3006
3811
  }
3007
3812
  }