caomengxuan666 / WinuxCmd
Lightweight, native Windows implementation of Linux commands | 900KB only | AI-friendly
AI Architecture Analysis
This repository is indexed by RepoMind. By analyzing caomengxuan666/WinuxCmd in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.
Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.
Repository Overview (README excerpt)
Crawler viewWinuxCmd: Linux Commands for Windows English | 中文 > Lightweight, native Windows implementation of Linux commands | 900KB only | AI-friendly ⭐ Star History 🚀 Quick Start Requirements • **PowerShell 7+** recommended for best experience • PowerShell 5.1 (Windows default) is supported but may display color codes as text • Install PowerShell 7: or download from GitHub • Windows 10/11 (x64 or ARM64) • Administrator rights not required for installation One-Command Installation (Recommended) Manual Installation • Download from Releases • Extract to any directory • Navigate to the directory • Run to generate command links • Add the directory to your PATH Auto Completion WinuxCmd completion now includes: • Project commands implemented by WinuxCmd • Built-in Windows system commands (curated list with descriptions) • Windows option completion for common commands (for example: , , , , ) By default, third-party executables in PATH are not auto-listed to avoid noisy suggestions. User-Extensible Completion (Third-Party Commands) You can add your own command/option completions with a text file. Default user file path: Or set an environment variable to use a custom file: File format: Reference template: Completion Cache (Fast Startup) User completion text is parsed once and persisted as a binary cache: • Source file: • Cache file: Examples: • • Cache is reused when source file metadata matches ( ), and rebuilt automatically when the source changes. Shell Integration Notes (PowerShell + CMD) • PowerShell can auto-enter through (interactive sessions only). Add the following to: Replace with your real local path. • For CMD, the recommended startup entry is: Set Windows Terminal startup command to: • Avoid hardcoded user-specific paths in scripts. Use dynamic discovery ( , , , ) to keep setups portable. 📦 Currently Implemented Commands (v0.4.1) | Command | Description | Supported Flags ( [NOT SUPPORT] = parsed but not implemented ) | |---------|-------------|---------------------------------------------------------------| | ls | List directory contents | -l, -a, -A, -h, -r, -t, -n, -g, -o, -1, -C, -w/--width, --color; -b/-B/-c/-d/-f/-F/-i/-k/-L/-m/-N/-p/-q/-Q/-R/-s/-S/-T/-u/-U/-v/-x/-X/-Z [NOT SUPPORT] | | cat | Concatenate and display files | -n, -E, -s, -T | | cp | Copy files and directories | -r, -v, -f, -i | | mv | Move/rename files | -v, -f, -i, -n | | rm | Remove files/directories | -r, -f, -v, -i | | mkdir | Create directories | -p, -v, -m MODE | | rmdir | Remove empty directories | --ignore-fail-on-non-empty, -p/--parents, -v | | touch | Update file timestamps / create | -a, -c/--no-create, -d/--date, -h/--no-dereference, -m, -r/--reference, -t, --time | | echo | Display text | -n, -e, -E, -u/--upper, -r/--repeat N | | head | Output first part of files | -n/--lines, -c/--bytes, -q/--quiet/--silent, -v/--verbose, -z/--zero-terminated | | tail | Output last part of files | -n/--lines, -c/--bytes, -z/--zero-terminated, -f/--follow [NOT SUPPORT], -F [NOT SUPPORT], --pid [NOT SUPPORT], --sleep-interval [NOT SUPPORT] | | find | Search for files | -name, -iname, -type (d/f/l), -mindepth, -maxdepth, -print, -print0, -P, -quit; -L/-H/-delete/-exec/-ok/-printf/-prune [NOT SUPPORT] | | grep | Print lines matching patterns | -E/-F/-G, -e, -f, -i/--no-ignore-case, -w, -x, -z, -s, -v, -m NUM, -b, -n, --line-buffered, -H/-h, --label, --binary-files, -r/-R, --include/--exclude/--exclude-dir, -L/-l, -c, -T, -Z, --color; -P [NOT SUPPORT] | | sort | Sort lines | -b, -f, -n, -r, -u, -z, -o FILE, -t SEP, -k KEY; -d/-g/-i/-h/-M/-m/-R/-s [NOT SUPPORT] | | uniq | Report or omit repeated lines | -c, -d, -f NUM, -i, -s NUM, -u, -w NUM, -z; -D, --group [NOT SUPPORT] | | cut | Cut fields from lines | -d DELIM, -f LIST, -s, -z; -b/-c/--output-delimiter [NOT SUPPORT] | | which | Locate a command in PATH/PATHEXT | -a; --skip-dot/--skip-tilde/--show-dot/--show-tilde [NOT SUPPORT] | | env | Print/modify environment | -i/--ignore-environment, -u NAME, -0/--null; -S/--split-string, -C/--chdir, running COMMAND [NOT SUPPORT] | | wc | Count lines/words/bytes | -c, -l, -w, -m, -L | | pwd | Print working directory | -L (logical), -P (physical) | | ps | Report process status | -e/-A/-a/-x (all processes), -f (full format), -l (long format), -u (user format), --user USER (filter by user), -w (wide output), --no-headers, --sort=KEY (sort by column) | | tee | Read from stdin and write to stdout and files | -a/--append, -i/--ignore-interrupts, -p/--diagnose | | chmod | Change file mode bits | -c/--changes, -f/--silent/--quiet, -v/--verbose, -R/--recursive, --reference | | date | Print or set system date/time | -d/--date, -u/--utc, +FORMAT; -s/--set [NOT SUPPORT] | | df | Report file system disk space usage | -h/--human-readable, -H/--si, -T/--print-type, -i/--inodes, -t/--type, -x/--exclude-type, -a/--all | | du | Estimate file space usage | -h/--human-readable, -H/--si, -s/--summarize, -c/--total, -d/--max-depth, -a/--all | | kill | Send a signal to processes | -l/--list, -s/--signal; -9/-KILL/-15/-TERM [supported signals] | | ln | Make links between files | -s/--symbolic, -f/--force, -i/--interactive, -v/--verbose, -n/--no-dereference | | diff | Compare files line by line | -u/--unified, -q/--brief, -i/--ignore-case, -w/--ignore-all-space, -B/--ignore-blank-lines, -y/--side-by-side [NOT SUPPORT], -r/--recursive [NOT SUPPORT] | | file | Determine file type | -b/--brief, -i/--mime, -z/--compress, --mime-type, --mime-encoding | | realpath | Print the resolved absolute path | -e/--canonicalize-existing, -m/--canonicalize-missing, -s/--strip, -z/--zero | | xargs | Build and execute command lines from input | -n/--max-args, -I/--replace, -P/--max-procs, -t/--verbose, -0/--null; -d/--delimiter [NOT SUPPORT] | | sed | Stream editor | -n/--quiet, -e/--expression, -f/--file, -i/--in-place [basic substitution: s/pattern/replacement/flags] | | tree | List contents of directories in a tree-like format | -a/--all, -d/--directories-…