Namkwangwoon / project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make virtual linux file system and use own shell

how to excute

  gcc mymkfs.c -o mymkfs
  gcc myfs_shell.c -o myshell
  ./mymkfs # make virtual shell
  ./myshell # excute shell

ininital shell

operation

Operation list

  • default bash script, if operation does not start with "my" excute default bash script operation
  • mycpfrom: copy local file to virtual my files ystem.
  • myls: show list virtual filesystem.
  • mycat: show file's content. operation
  • mystate: show virtual system's info operation
  • myshowfile: show file's start byte ~ end byte operation
  • mymkdir: make directory
  • mycd: change directory
  • mypwd: show current directory operation
  • myshowinode: show inode's detail operation
  • myshowblock: show block's detail, if block is directory, show list file names, or block is regular file, show file's content operation
  • mytouch: create empty file operation
  • mycpto: copy virtual file system's file to local file system operation
  • mycp: copy file operation
  • mymv: move or rename file operation
  • myrm: remove file operation
  • myrmdir: remove directory operation
  • mytree: show tree structure virtual file system operation
  • exit, byebye: exit shell operation

About


Languages

Language:C 100.0%