ksh CLI is a command-line tool designed for Windows users who want to run bash-like commands directly in PowerShell. Ideal for those familiar with Unix-like systems, ksh
provides a set of commands that make file and directory management more intuitive and powerful on Windows.
Whether you’re a developer, system administrator, or just someone who prefers a command-line interface, ksh
can simplify your workflow by offering familiar commands that streamline common tasks.
Install ksh
globally using npm:
npm i -g ksh-bash
-
ls [path]
: List directory contents. -
cat <file>
: Display file contents. -
echo <text>
: Print text to the terminal. -
rm <file>
: Remove a file. -
touch <file>
: Create an empty file. -
mkdir <dir>
: Create a directory. -
rmdir <dir>
: Remove a directory. -
cp <source> <destination>
: Copy a file. -
mv <source> <destination>
: Move a file. -
pwd
: Print the current directory. -
grep <pattern> <file>
: Search for a pattern in a file. -
clear
: Clear the terminal.
-
find <path> <pattern>
: Find files matching a pattern. -
du <path>
: Estimate file space usage. -
chmod <permissions> <file>
: Change file permissions (PowerShell equivalent not directly supported). -
ps
: List running processes. -
kill <pid>
: Terminate a process. -
df
: Show disk space usage. -
top
: Display top processes by CPU usage.
MIT License - see LICENSE.
Kushal Jadhav