Skip to content

Akshay6890/linux_file_system_simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Linux File System Simulation

Built using Python

Valid Commands and Their Syntax

exit

Exits the file system program.
Syntax:

exit

ls

Lists all the files on the disk.
Syntax:

ls

vi

Creates a new file if the file does not exist, or a prompt is shown to edit the existing file.
Syntax:

vi <file_name_with_extension>

del

Deletes the mentioned file.
Syntax:

del <file_name_with_extension>

seek

Moves the file's pointer to a given position and prints data from that position to the end.
It gives an error if the cursor's position goes out of bounds.
Syntax:

seek <file_name_with_extension> <pointer_position>

cat

Prints the contents of the file.
Syntax:

cat <file_name_with_extension>

clear

Clears the terminal.
Syntax:

clear

help

Lists all the commands.
Syntax:

help

About

This project was done as a part of my Operating Systems class in my Master's degree.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages