ksh-bash

1.0.2 • Public • Published

ksh CLI

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.

Installation

Install ksh globally using npm:

npm i -g ksh-bash

Usage

Commands

  • 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.

Advanced Commands

  • 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.

License

MIT License - see LICENSE.

Author

Kushal Jadhav

Package Sidebar

Install

npm i ksh-bash

Weekly Downloads

4

Version

1.0.2

License

ISC

Unpacked Size

10.2 kB

Total Files

6

Last publish

Collaborators

  • kuslhhh