danial27@ssh-linux4:~$ ls cpen211 cpen212 ---------------------------------------------------------------------------------- danial27@ssh-linux4:~$ ls ~cpen212/Public/hello Cargo.toml hello src danial27@ssh-linux4:~$ ls ~cpen212/Public/hello -lahs total 936K 40K drwxr-xr-x 3 cpen212 underg 72 Jan 9 22:59 . 40K drwxr-xr-x 3 cpen212 underg 23 Jan 9 22:59 .. 64K -rw-r--r-- 1 cpen212 underg 60 Jan 9 22:59 Cargo.toml 752K -rwxr-xr-x 1 cpen212 underg 335K Jan 9 22:59 hello 40K drwxr-xr-x 2 cpen212 underg 25 Jan 9 22:59 src Note: - Cargo.toml: no `x` indicates non-executable files and 1 after indicates 1 hard link (i.e. not a dir) - hello: presence of `x` indicates executable and 1 after also indicates 1 hard link - src: presence of `x` indicates executable and 2 indicates 2 hard links (i.e. is an accessible dir) ---------------------------------------------------------------------------------- danial27@ssh-linux4:~$ cd ~cpen212/Public/hello danial27@ssh-linux4:/ubc/ece/home/courses/cpen212/Public/hello$ ./hello Hello, CPEN 212! ---------------------------------------------------------------------------------- danial27@ssh-linux4:/ubc/ece/home/courses/cpen212/Public/hello$ cat src/main.rs use std::env; fn main() { let args: Vec = env::args().collect(); if args.len() < 2 { println!("Hello, CPEN 212!"); } else { println!("Hello, {}!", args[1..].join(", ")); } } ---------------------------------------------------------------------------------- danial27@ssh-linux4:/ubc/ece/home/courses/cpen212/Public/hello$ cd ~ ---------------------------------------------------------------------------------- danial27@ssh-linux4:~$ cp ~cpen212/Public/hello/hello ~ danial27@ssh-linux4:~$ ls cpen211 cpen212 hello ---------------------------------------------------------------------------------- danial27@ssh-linux4:~$ ./hello Hello, CPEN 212! danial27@ssh-linux4:~$ rm hello danial27@ssh-linux4:~$ ls cpen211 cpen212 ---------------------------------------------------------------------------------- danial27@ssh-linux4:~$ cp -r ~cpen212/Public/hello ~ danial27@ssh-linux4:~$ ls cpen211 cpen212 hello ---------------------------------------------------------------------------------- danial27@ssh-linux4:~$ ./hello/hello Hello, CPEN 212! danial27@ssh-linux4:~$ rm -r hello danial27@ssh-linux4:~$ ls cpen211 cpen212 ----------------------------------------------------------------------------------