Giter VIP home page Giter VIP logo

file-manager's Introduction

CLI File Manager Project

This is a lightweight file manager built with Node.js

Core Commands:

Navigation:

  • up: Move to parent directory.
  • cd path/to/directory: Change directory (absolute or relative path).

Listing:

  • ls: List files and directories in the current directory.

File Operations:

  • cat path/to/file: Read file content.
  • add new_file_name: Create an empty file.
  • rn path/to/file new_filename: Rename a file.
  • cp path/to/file path/to/new/directory: Copy a file.
  • mv path/to/file path/to/new/directory: Move a file (deletes from source).
  • rm path/to/file: Delete a file.

Operating System Info:

  • os --EOL: Get system End-of-Line character.
  • os --cpus: Get CPU information.
  • os --homedir: Get home directory path.
  • os --username: Get current system username.
  • os --architecture: Get Node.js binary architecture.

Hash Calculation:

  • hash path/to/file: Calculate file hash.

Compression/Decompression:

  • compress path/to/file path/to/destination: Compress a file
  • decompress path/to/file path/to/destination: Decompress a file

How to use:

  • Ensure you have Node.js version 20 LTS installed.
  • Clone this repo
  • Run: npm run start -- --username=your_username
  • Exit: Press Ctrl+C or enter .exit.

file-manager's People

Contributors

ashtotakoe avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.