Kelompok 5 / K03:
- Muhammad Hasan 13518012
- Naufal Dean Anugrah 13518123
- M. Fauzan Rafi Sidiq W. 13518147
- Just call
reset_sys_img.sh
in terminal
- Just call
run.sh
in terminal (make sure thatsystem.img
is ready, you can usereset_sys_img.sh
to preparesystem.img
)
- Compile loadFile.c:
gcc loadFile.c -o loadFile
. - Compile extern program by calling
compile_extern.sh
in terminal. - Load to system.img:
./loadFile ext/extern
. - Run OS.
- Input
./extern
to launch program. - And you're done.
These are the commands supported for the CosmOS's shell
Print file's contents on standard output
$ cat [FILE 1] [FILE 2] [FILE 3] ...
Change the shell working directory to target directory (cd to root if no [TARGET DIRECTORY]
specified)
$ cd
$ cd [TARGET DIRECTORY]
Copy files and directories to target path
$ cp [FILE] [TARGET PATH]
Lists information about the FILE
s (in the current directory if no [FILE]
specified).
$ ls
$ ls [FILE 1] [FILE 2] [FILE 3] ...
Create folder in the specified path
$ mkdir [TARGET PATH 1] [TARGET PATH 2] [TARGET PATH 3] ...
Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY
$ mv [SOURCE] [DEST]
Removes each specified file/directory. It does not remove non-empty directories
$ rm [FILE 1] [FILE 2] [FILE 3] ...