All Projects → kaustubhhiware → Cshell

kaustubhhiware / Cshell

Licence: MIT License
A basic shell. Written in C

Programming Languages

c
50402 projects - #5 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Cshell

Cat-Face-Detector-with-OpenCV-and-JavaFX
📹 A Small OpenCV (Open Source Computer Vision) Example, who has the ability to detect multiple cat faces at the same time 🐱
Stars: ✭ 24 (+26.32%)
Mutual labels:  cat
json-viewer
Pretty JSON viewer for the terminal
Stars: ✭ 26 (+36.84%)
Mutual labels:  cat
FT857d
CAT support for Arduino, simulating a Yaesu FT-857D
Stars: ✭ 31 (+63.16%)
Mutual labels:  cat
kitty-time
Stressed after coding for hours? Need a break? Perhaps an inspiration? Something to calm your nerves after almost pushing that fatal git commit? It's Kitty Time! =(^● ⋏ ●^)= ෆ"
Stars: ✭ 12 (-36.84%)
Mutual labels:  cat
Online-News-Portal-with-Django
Daily News For You is an online news portal developed by Django and SQLite
Stars: ✭ 45 (+136.84%)
Mutual labels:  cat
Cofoundry.Samples.SPASite
A simple single page application using Cofoundry as a headless CMS
Stars: ✭ 30 (+57.89%)
Mutual labels:  cat
go-logsink
the multi machine cat over protocol buffers and websocket
Stars: ✭ 34 (+78.95%)
Mutual labels:  cat
Audio cat dog classification
Classification of WAV files from cats and dogs
Stars: ✭ 16 (-15.79%)
Mutual labels:  cat
react-redux-cats
React and Redux with cats
Stars: ✭ 23 (+21.05%)
Mutual labels:  cat
see-cli
A colorful 🌈 cat - syntax highlight print CLI
Stars: ✭ 24 (+26.32%)
Mutual labels:  cat
mailcat
Find existing email addresses by nickname using API/SMTP checking methods without user notification. Please, don't hesitate to improve cat's job! 🐱🔎 📬
Stars: ✭ 219 (+1052.63%)
Mutual labels:  cat
catAPI
RESTful API that will deliver photos with cats on demand
Stars: ✭ 66 (+247.37%)
Mutual labels:  cat
hack-tools
"Кали-заменитель". Располагает в себе большое количество утилит для взлома.
Stars: ✭ 39 (+105.26%)
Mutual labels:  cat
bat-zh
🇨🇳翻译: <bat> 一个`cat(1)`克隆与语法高亮和Git集成 ❤️ 校对 ✅
Stars: ✭ 129 (+578.95%)
Mutual labels:  cat
bash-cat-with-cat
The classic cat command but with a cat
Stars: ✭ 154 (+710.53%)
Mutual labels:  cat
plugin.video.tv3.cat
Kodi addon
Stars: ✭ 16 (-15.79%)
Mutual labels:  cat
datamosh
✨💾 Edit images via buffers. 💯✨
Stars: ✭ 23 (+21.05%)
Mutual labels:  cat
surepy
🐾 Library & CLI to monitor and control the Pet Door & Cat Flap Connect 🚪 the Pet Feeder Connect 🍽 and the Felaqua 💦 sold by Sure Petcare
Stars: ✭ 45 (+136.84%)
Mutual labels:  cat
CatCode
猫猫码,一个可爱的通用特殊码,CQ码的精神延续。/ Cat code, the spirit of CQ code continues, a cute universal special code.
Stars: ✭ 23 (+21.05%)
Mutual labels:  cat
cat
CAT is a computer-based online test application powered by Codeigniter, jquery. Simple and easy to use
Stars: ✭ 72 (+278.95%)
Mutual labels:  cat

Cshell

A shell implemented in C. Written as a part of Operating Systems (CS39002) coursework.

Cshell_about

Functionalities

The following functions have been written explicitly in C.

  • cd - Change directory

  • pwd - Present Working directory

  • mkdir

    - Make a directory (Alerts if already exists)

  • rmdir

    - Remove the directory (Alerts if no such file or directory)

  • ls - List contents of pwd

images/ls

  • ls -l - List the contents in long listing format

images/ls_l

  • cp - Copy contents of file1 to file2; only if file1 was more recently modified. Create file2 if not present already.

  • exit - Exit the shell ; also works for z

  • Supports running the execuables (predominanatly, ./a.out and scripting commands, like touch, cat, python notif.py )

  • Any path added to your $PATH folder will work. [Refer to function runprocess in shell.c]

  • Support background execution such as python notif.py & - returns its PID.

  • Input from and output to files, such as ./d < in.txt and ./inc > in.txt supported. (Both can work simultaneously.)

  • Support piping upto 2 levels - such as ./inc | ./d and ./inc | ./d | ./t

Execution

make clean
make
./Cshell

Output : images/exec

The test cases are present in tests folder.

run.c creates a child process to execute shell.c in a gnome-terminal, suited for debuggging. In case the terminal session is to be viewed in the continuing session, execution is as :

make clean
make
./myshell

Known issues

  • gcc and grep don't work for some freaking reason. Most of the other commands like cat, touc, gedit, atom work but these 2 seem to hold a grudge against me.

  • support piping with system calls.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].