Skip to content

A python program that can simulate linux files and directory commands such as list(ls) ,copy(cp) ,move(mv) ,rename(mv) ,delete(rm),file details(ls l), dirstr(directory structure) (without using any system command).

License

Notifications You must be signed in to change notification settings

tarun018/Simulate-linux-files-and-directory-commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Simulate-linux-files-and-directory-commands

A python program that can simulate linux files and directory commands such as list(ls) ,copy(cp) ,move(mv) ,rename(mv) ,delete(rm),file details(ls l), dirstr(directory structure) (without using any system command).

Run using: python sim.py

Commands		Description	

B.1) cd "dir" Changes the current directory to "dir", if it exists.

B.2) ls "dir" {-l, -a, -h} Lists all the files and directories in "dir".

B.5) clear Clears the screen as “clear” in terminal does.

B.6) rm “top” {-i, -r} Recursively removes the directory rooted at “top”. Will also delete multiple directories if provided.

B.7) dirstr Print the directory structure of the current directory in heirarchial format.

B.8) cp {-r} copy

B.9) cd change directory

B.10)mv or rename {-r} moves or rename

About

A python program that can simulate linux files and directory commands such as list(ls) ,copy(cp) ,move(mv) ,rename(mv) ,delete(rm),file details(ls l), dirstr(directory structure) (without using any system command).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages