Skip to content

tnazm/basic-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shell.c

Simple shell written in C.

Tanzeem Nazmee

  • RUID: 226001687
  • NetID: tmn98

GNU C manual used as reference.

Usage

make all
./shell

Then type one of the following commands, followed by an argument if required.

Commands

cd

Change directory.

cd <directory>

pwd

Print working directory.

pwd

exit

Exit the shell.

exit

help

Display help.

help

mkdir

Create directory with path .

mkdir <directory>

rmdir

Remove empty directory with path .

rmdir <directory>

ls

List files in a directory , or the current directory if no argument is supplied.

ls <directory>

cp

Copy a file to .

cp <source> <destination>

mv

Move a file to new path .

mv <source> <destination>

rm

Remove a file .

rm <file>

About

Shell written in C for Operating Systems assignment 2.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published