Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/morion4000/cshell
C implementation of a UNIX shell
https://github.com/morion4000/cshell
Last synced: 13 days ago
JSON representation
C implementation of a UNIX shell
- Host: GitHub
- URL: https://github.com/morion4000/cshell
- Owner: morion4000
- License: mit
- Created: 2013-05-28T21:15:58.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-11T18:20:47.000Z (over 10 years ago)
- Last Synced: 2023-04-03T13:45:07.472Z (over 1 year ago)
- Language: C
- Size: 164 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CShell
C implementation of an UNIX shell.
The following commands are implemented:
* `?` - Display the help.
* `dummy` - Dummy function.
* `printenv` - Print enviroment variables.
* `exit` - Exit the shell.
* `pwd` - Print working directory.
* `ls` - List information about the FILE.
* `cp` - Copies SOURCE to DESTINATION.
* `dir` - List information about the FILE.
* `yes` - Repeatedly output a line with all specified STRING, or 'y'.
* `cd` - Change the current directory.
* `mkdir` - Create a DIRECTORY, if it does not already exist.
* `rmdir` - Remove the DIRECTORY, if it is empty.
* `rm` - Remove (unlink) the FILE.
* `chmod` - Change the mode of each FILE to MODE.
* `exec` - Execute external commands.## Compile guide
#### Get the source
`git clone [email protected]:morion4000/cshell.git`
#### Install readline library (Debian / Ubuntu)
`sudo apt-get install libreadline5-dev`
#### Run make
`cd src`
and then
`make`
#### Add permissions
`chmod +x shell`
#### Run the shell
`./shell`
## Copyright
Copyright (c) 2010 morion4000. See LICENSE for details.