1.0.2 • Published 10 months ago

ubuntu-to-windows-cli v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

Ubuntu-to-Windows CLI

Ubuntu-to-Windows CLI allows users to execute basic Ubuntu/Linux commands (like cp, mv, ls, etc.) on a Windows environment by automatically translating them to their Windows Command Prompt equivalents. This tool is useful for those familiar with Ubuntu but working in a Windows environment.

Features

  • Supports basic Ubuntu commands like cp, mv, touch, rm, ls, cat, mkdir, rmdir, and more.
  • Translates Ubuntu commands to Windows CMD equivalents.
  • Simplifies command-line operations for Ubuntu users working in Windows environments.

Installation

You can install the CLI tool globally on your system using npm:

  1. Install the CLI globally:

    npm install -g ubuntu-to-windows-cli

    This will allow you to run ubuntu-cli from anywhere in your terminal.

Usage

Once installed, you can use the ubuntu-cli command to run Ubuntu-like commands on Windows.

Supported Commands

Here are the available commands and their usage:

  • Copy files: cp

    ubuntu-cli cp <source> <destination>

    Example:

    ubuntu-cli cp file.txt C:\Users\Krishna\Documents
  • Move files: mv

    ubuntu-cli mv <source> <destination>

    Example:

    ubuntu-cli mv file.txt C:\Users\Krishna\Desktop
  • Remove files: rm

    ubuntu-cli rm <file>

    Example:

    ubuntu-cli rm file.txt
  • Create an empty file: touch

    ubuntu-cli touch <file>

    Example:

    ubuntu-cli touch newfile.txt
  • Create a directory: mkdir

    ubuntu-cli mkdir <directory>

    Example:

    ubuntu-cli mkdir newfolder
  • Remove an empty directory: rmdir

    ubuntu-cli rmdir <directory>

    Example:

    ubuntu-cli rmdir newfolder
  • List files in a directory: ls

    ubuntu-cli ls [directory]

    Example:

    ubuntu-cli ls
  • Concatenate and display file content: cat

    ubuntu-cli cat <file>

    Example:

    ubuntu-cli cat file.txt
  • Print the current directory: pwd

    ubuntu-cli pwd
  • Search for text in files: grep

    ubuntu-cli grep <pattern> <file>

    Example:

    ubuntu-cli grep "searchTerm" file.txt
  • Display disk usage: df

    ubuntu-cli df
  • Find files: find

    ubuntu-cli find <file> [directory]

    Example:

    ubuntu-cli find file.txt
  • List running processes: ps

    ubuntu-cli ps
  • Kill a process by PID: kill

    ubuntu-cli kill <pid>
  • Display network configuration: ifconfig

    ubuntu-cli ifconfig
  • Clear the terminal screen: clear

    ubuntu-cli clear

Examples

  • Copying a file:

    ubuntu-cli cp myfile.txt C:\Users\Krishna\Documents
  • Listing files in a directory:

    ubuntu-cli ls C:\Users\Krishna\Desktop
  • Creating an empty file:

    ubuntu-cli touch example.txt
  • Removing a file:

    ubuntu-cli rm example.txt
  • Checking disk space:

    ubuntu-cli df

Contributing

If you'd like to contribute or suggest new features, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago