-> A Custom shell written in C language, supporting four internal and 5 external library commands with Multithreaded and Multiprocessor Options.
-> Use of standard C libraries, including Linux system calls such as
fork() , exec() family system calls and wait() family of system calls.
-> Use of Linux system thread creation calls such as
pthread_create(), pthread_join() , pthread_exit() , system() family system calls and wait() family of system calls.
- pwd
- cd
- echo
- ls
- cat
- date
- rm
- mkdir
# clone the repo
$> git clone https://github.com/arnavgupta2003/Custom_Shell_1.git
# change the working directory to src
$> cd src
# run the makefile
$> make -f MakeFile
OR
$> make
$ [COMMAND] -h
Available commands.
cd cd &t
pwd pwd &t
echo echo &t
ls ls &t
cat cat &t
date date &t
rm rm &t
mkdir mkdir &t
CST_Shell ASH (Version 1.1)
cd optional arguments:
-h, --help show this help
-v, --verbose display information regarding changes
-f, force changes
pwd optional arguments:
-h, --help show this help
-L, --cwd print the value of $PWD if it names the current working directory
-P, --physical print the physical directory, without any symbolic links
echo optional arguments:
-h, --help show this help
-n, do not output the trailing new line
-v, --verbose Describe each event as it occurs
ls optional arguments:
-h, --help show this help
-d, --directory list directories themselves, not their contents
-a, --all do not ignore entries starting with .
cat optional arguments:
-h, --help show this help
-E, --show-ends display $ at end of each line
-n, --number number all output lines
date optional arguments:
-h, --help show this help
-t, --show-time display only time
-d, --show-date display only date
rm optional arguments:
-h, --help show this help
-f, --force ignore nonexistent files and arguments, never prompt
-v, --verbose Explain what is being done
mkdir optional arguments:
-h, --help show this help
-p, --parents no error if existing, make parent directories as needed
-v, --verbose Explain what is being done
MIT © Arnav Gupta 2022
Original Creator - Arnav Gupta
MIT License
Copyright (c) 2022 Arnav Gupta
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--- EOF ---