Bash File Copy
The program was tested in Ubuntu~18.04 on gcc version 7.3.0
In the terminal in the project folder, run:
make
In the terminal in the project folder:
run:
gcc -I -Wall filecopy.c -o fc~
This compiles the file an exectuable:
fc
In the terminal in the project folder, run:
./fc
Enter the desired file to copy at the first prompt.
Enter the desired output file at the second prompt.
% time seconds usecs/call calls errors syscall
58.24 0.009821 16 616 write
41.58 0.007011 11 616 read
0.18 0.000031 8 4 close
0.00 0.000000 0 4 fstat
0.00 0.000000 0 5 mmap
sets protection on calling process's memory, used on open and close to set whether or not files can be read, written, or executed
0.00 0.000000 0 4 mprotect
0.00 0.000000 0 1 munmap
0.00 0.000000 0 3 brk
0.00 0.000000 0 3 3 access
0.00 0.000000 0 1 execve
0.00 0.000000 0 1 arch_prctl
0.00 0.000000 0 4 openat
100.00 0.016863 1262 3 total