ling508-26$ cd tmp tmp$ ls f1.jpg f2.jpg f3.jpg f4.jpg f5.jpg f1.jpg.bak f2.jpg.bak f3.jpg.bak f4.jpg.bak f5.jpg.bak tmp$ rm * tmp$ nano file1 tmp$ ls file1 tmp$ ls -l total 8 -rw-r--r-- 1 sandiway staff 41 Sep 10 14:05 file1 tmp$ cat file1 This is file #1 One Two Three Four Five tmp$ nano file2 tmp$ ls file1 file2 tmp$ nano file3 tmp$ ls file1 file2 file3 tmp$ nano file1 tmp$ cat file1 This is file #1 One Two Three Four Five Six Seven Eight Nine Ten 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 tmp$ cat file1 | more This is file #1 One Two Three Four Five Six Seven Eight Nine Ten 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 tmp$ cat file1 > file4 tmp$ ls file1 file2 file3 file4 tmp$ ls -l total 32 -rw-r--r-- 1 sandiway staff 117 Sep 10 14:10 file1 -rw-r--r-- 1 sandiway staff 50 Sep 10 14:06 file2 -rw-r--r-- 1 sandiway staff 26 Sep 10 14:06 file3 -rw-r--r-- 1 sandiway staff 117 Sep 10 14:14 file4 tmp$ less file4 tmp$ cat file2 > file4 tmp$ ls -l total 32 -rw-r--r-- 1 sandiway staff 117 Sep 10 14:10 file1 -rw-r--r-- 1 sandiway staff 50 Sep 10 14:06 file2 -rw-r--r-- 1 sandiway staff 26 Sep 10 14:06 file3 -rw-r--r-- 1 sandiway staff 50 Sep 10 14:15 file4 tmp$ cat > file4 I am happily typing away here at the terminal How do I stop this? tmp$ ls -l total 32 -rw-r--r-- 1 sandiway staff 117 Sep 10 14:10 file1 -rw-r--r-- 1 sandiway staff 50 Sep 10 14:06 file2 -rw-r--r-- 1 sandiway staff 26 Sep 10 14:06 file3 -rw-r--r-- 1 sandiway staff 66 Sep 10 14:18 file4 tmp$ less file4 tmp$ cat Hi Hi Bye Bye tmp$ less file4 tmp$ cat file1 >> file4 tmp$ ls -l total 32 -rw-r--r-- 1 sandiway staff 117 Sep 10 14:10 file1 -rw-r--r-- 1 sandiway staff 50 Sep 10 14:06 file2 -rw-r--r-- 1 sandiway staff 26 Sep 10 14:06 file3 -rw-r--r-- 1 sandiway staff 183 Sep 10 14:23 file4 tmp$ less file4 tmp$ cat file1 file2 file3 This is file #1 One Two Three Four Five Six Seven Eight Nine Ten 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 This is file #2. Not sure what to put in here This is file #3. No idea tmp$ cat file[1-3] This is file #1 One Two Three Four Five Six Seven Eight Nine Ten 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 This is file #2. Not sure what to put in here This is file #3. No idea tmp$ cat file[1-3] | sort > file4 tmp$ nano file4 tmp$ echo file1 file1 tmp$ echo < file1 tmp$ nano script.sh tmp$ more script.sh #!/bin/bash read -p "Enter 1st number: " x; read -p "Enter 2nd number: " y; ((z = x + y)); ((w = x * y)); echo "$x + $y = $z"; echo "$x * $y = $w"; tmp$ script.sh -bash: script.sh: command not found tmp$ ./script.sh -bash: ./script.sh: Permission denied tmp$ ls -l script.sh -rw-r--r-- 1 sandiway staff 151 Sep 10 14:43 script.sh tmp$ chmod u+x script.sh tmp$ ls -l script.sh -rwxr--r-- 1 sandiway staff 151 Sep 10 14:43 script.sh tmp$ ./script.sh Enter 1st number: 34 Enter 2nd number: 17 34 + 17 = 51 34 * 17 = 578 tmp$ more script.sh #!/bin/bash read -p "Enter 1st number: " x; read -p "Enter 2nd number: " y; ((z = x + y)); ((w = x * y)); echo "$x + $y = $z"; echo "$x * $y = $w"; tmp$