Note Make sure you run
copesh
from its source directory. You can consider shifting all the binaries to/bin
and changing the value of permaPath incopesh.c
to/bin
. This will allow you to run copesh from anywhere.
git clone https://github.com/sociallyencrypted/copesh.git
cd copesh
make
./copesh
cd
- Change directory- Options:
-L
- Follow symbolic links-P
- Do not follow symbolic links
- Usage:
cd [-l|-P] <directory>
- Options:
pwd
- Print working directory- Options:
-L
- Follow symbolic links-P
- Do not follow symbolic links
- Usage:
pwd [-l|-P] <directory>
- Options:
date
- Print date- Options:
-u
- Print UTC time-r <seconds>
- Print the time after the given number of seconds since the epoch
- Usage:
date [-u] [-r <seconds>]
- Options:
ls
- List files- Options:
-a
- List all files-R
- List files recursively
- Usage:
ls [-a] [-R] <directory>
- Options:
mkdir
- Make directory- Options:
-p
- Create parent directories as needed-m <mode>
- Set permissions of the directory
- Usage:
mkdir [(-m/--mode)=<mode>] [-p] <directory>
- Options:
rm
- Remove file- Options:
d
- Remove directories-r
- Remove directories recursively
- Usage:
rm [-d] [-r] <file>
- Options:
echo
- Print text- Options:
--help
- Print help-n
- Do not print a newline at the end
- Usage:
echo [-n] <text>
- Options:
cat
- Concatenate files- Options:
-s
- Remove repeated empty lines-n
- Print line numbers
- Usage:
cat [-s] [-n] <file>
- Options:
help
- Print helpexit
- Exit shell
- Invalid command
- Fork Error
- Invalid Options passed to commands
- Invalid number of arguments passed to commands