An implementation of the Unix Shell in the C Programming language
1. Change MACRO ABS_PATH(x)
in main.c to path where you have saved these files.
2. Run ./makefile
3. Run ./shell
-
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