Skip to content

Commit

Permalink
added cp.script
Browse files Browse the repository at this point in the history
  • Loading branch information
lpeng003 committed Nov 12, 2014
1 parent 5e57e5b commit 601ea18
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions tests/cp.script
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
Script started on Tue 11 Nov 2014 11:35:00 PM PST
~
lpeng003@hammer $ ls
assn1.asm Downloads/ Pictures/ si week 2lab* Videos/
Desktop/ lpeng003@well.cs.ucr.edu programming/ sketchbook/
Documents/ Music/ Public/ Templates/
~
lpeng003@hammer $ cd Desktop/srshell
~/Desktop/rshell
lpeng003@hammer $ ls
bin/ LICENSE Makefile README.md src/ tests/
~/Desktop/rshell
lpeng003@hammer $ cd bin
~/Desktop/rshell/bin
lpeng003@hammer $ ls
cp* file file1 ls* rshell*
~/Desktop/rshell/bin
lpeng003@hammer $ ./cat file1
blub
~/Desktop/rshell/bin
lpeng003@hammer $ ./cp file file1 file2
~/Desktop/rshell/bin
lpeng003@hammer $ cat file2
cat: file2: Permission denied
~/Desktop/rshell/bin
lpeng003@hammer $ chmod a+r file2
~/Desktop/rshell/bin
lpeng003@hammer $ ctat file2
blub
~/Desktop/rshell/bin
lpeng003@hammer $ ./cp file1 file2
access: Success
~/Desktop/rshell/bin
lpeng003@hammer $ exit
exit

Script done on Tue 11 Nov 2014 11:35:59 PM PST
Expand Down

0 comments on commit 601ea18

Please sign in to comment.