Skip to content

A simple implementation of the Unix Shell in the C Programming language

Notifications You must be signed in to change notification settings

patilakshay227/Mini-Shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini-Shell

An implementation of the Unix Shell in the C Programming language

How to Run

1. Change MACRO ABS_PATH(x) in main.c to path where you have saved these files.

2. Run ./makefile

3. Run ./shell

Commands Supported

  • mypwd

    • prints the present working directory
  • mymkdir

    • creates a directory
    • Single directory: mymkdir dir1
    • Multiple directories: mymkdir dir1 dir2 dir3
    • With absolute path: mymkdir /home/x/testdir
  • mycd

    • changes current working directory to specified directory
  • myrm

    • Removes a file or directory
    • Remove file: myrm file1
    • Remove directory: myrm dir1 removes specified directory only if it is empty
    • Remove directory recursively: myrm –r dir1 removes specified directory and all its contents
  • mymv

  • myls

  • mycat

  • mytail

  • myps

  • myexit

About

A simple implementation of the Unix Shell in the C Programming language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published