Code Monkey home page Code Monkey logo

dotjunz / linux-filesystem Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hanjun24505/linux-filesystem

0.0 0.0 0.0 512 KB

一个仿Linux的多级目录文件系统,系统由一个虚拟磁盘文件承载,以文件读写模拟磁盘读写。将虚拟磁盘划分为超级块区、inode位示图、block位示图、inode区、block区。空间管理采用位示图,盘块的分配和回收采用成组链接法。系统实现了用户管理、文件管理、目录管理等基本功能,包含多条Linux基本命令。

C++ 100.00%

linux-filesystem's Introduction

-----------------简介-------------------------

一个仿Linux的多级目录文件系统。系统由一个虚拟磁盘文件承载,以文件读写模拟磁盘读写。 将虚拟磁盘划分为超级块区、inode位示图、block位示图、inode区、block区。 文件管理采用目录项和索引节点,索引节点包括文件的所有信息,实现了按名存取。 空间管理采用位示图,盘块的分配和回收采用成组链接法。 除此之外,系统还实现了用户管理的功能,并包含多条Linux基本命令。

------------使用方式--------------------------

用CodeBlocks17.12打开FileSystem.cbp运行 或者直接运行 Debug 文件夹下FileSystem.exe文件

--------------------登录------------------------------------

默认用户为root,密码为root 输入help查看可使用的命令

-----------------------可用命令 ---------------------

ls - 显示当前目录清单 cd - 进入目录 mkdir - 创建目录 rmdir - 删除目录 super - 查看超级块 inode - 查看inode位图 block - 查看block位图 cat - 输出文件 mv - 移动文件 vi - vi编辑器 tree - 以树状结构显示层次 touch - 创建一个空文件 rm - 删除文件 cls - 清屏 logout - 用户注销 useradd - 添加用户 userdel - 删除用户 chpwd - 更改密码 chmod - 修改文件或目录权限 help - 显示命令清单 exit - 退出系统


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.