Coder Social home page Coder Social logo

linuxfilesystemsim's Introduction

Linux File System Tree Simulator

Requirements (to compile it as a 32-bit executable)

  • Linux 32-bit support libraries, you can install them with: sudo apt install gcc-multilib

Get started

  • Compile (32-bit): gcc -m32 linux_file_system_tree_sim.c
  • Run it and enjoy: ./a.out

Supported commands

  1. mkdir <pathname> : create a new directory node in the file system tree;
  2. rmdir <pathname> : remove an empty directory from the file system tree;
  3. cd [<pathname>] : change the current working directory;
  4. ls [<pathname>] : list the directory contents;
  5. pwd : print the (absolute) path to the current working directory;
  6. create <pathname> : create a new file node in the file system tree;
  7. rm <pathname> : remove a file from the file system tree;
  8. save <filename> : save the current file system tree as a text file (.txt);
  9. reload <filename> : construct a file system tree from a well formatted text file;
  10. menu : show the current help menu;
  11. prompt <prompt> : change the command prompt text;
  12. quit : save the file system tree as "file_system_tree.txt" and quit.

References

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.