Yikes. I've killed the Terminal app

4 replies [Last post]
showerscorneli
User offline. Last seen 6 years 27 weeks ago. Offline
Joined: 11/01/2011

I have a problem and wonder if you know how to solve it. I was going through Chapter 6 using Text Wrangler to create a dir.sh and got as far as typing in the script and having the proper text go pink. Then tried to execute it but at the stage that I typed "ls -l", I got nothing. Now "ls" does not work (command not recognized) nor does "man ls" or even "man". What have i destroyed. Of course the chmod didn't work either. I tried copying this mornings backup of the Terminal app. from Utilities. Can't seem to make the terminal work now. HELP!

Steve
User offline. Last seen 4 years 7 weeks ago. Offline
Joined: 08/15/2010
Terminal not workin

Hi. Sorry for the problems. Sending the history was a great idea.

I am pretty sure it all started because you typed a quote mark in your folder name:
325 cd Patty'sDocuments
That single quote will not work well in the terminal, and it will wait for you to close the quote mark. The clue if this is indeed the problem is that your prompt will turn into a > symbol instead of your usual prompt.

Control-C will usually get you out of weird things like this.

For example, if I type a line with a unpaired quote, everything else is within that block of text:

host:~ lucy$ echo "hello
> there
> what 
> is 
> going
> on"
hello
there
what 
is 
going
on
host:~ lucy$ 

showerscorneli
User offline. Last seen 6 years 27 weeks ago. Offline
Joined: 11/01/2011
terminal problems

Thank you so much. I have it going now and really appreciate knowing what probably caused the problem. I'm a huge advocate of frequent backups now.

Pat

showerscorneli
User offline. Last seen 6 years 27 weeks ago. Offline
Joined: 11/01/2011
OK so I reinstalled

OK so I reinstalled everything from my latest back up. Still don't know what I did wrong.

showerscorneli
User offline. Last seen 6 years 27 weeks ago. Offline
Joined: 11/01/2011
Yikes....

Here is the history before and after the problem started. As you can see, I am a total novice.

322 ls
323 ls -1
324 ls -l
325 cd Patty'sDocuments
326 ls
327 '/Applications/1 AnalysisApps/Phycas.app/Contents/MacOS/iTerm4PhycasexecFromGUI.sh' "/Users/patricemacbook/Desktop/PCFB/scripts/asciihexbin.py"
328 ls
329 Patty'sDocuments
330 cd Sites
331 ls
332 cd ..
333 lss
334 ls
335 mv Patty'sDocuments PattysDocuments
336 ls
337 man >
338 ls
339 ls
340 cd PattysDocuments
341 ls
342 less tenrecs
343 cd tenrecs
344 ls
345 cd ..
346 ls
347 cd ..
348 ls
349 cd ~
350 ls
351 cd ~/Users
352 cd ~/Users/Downloads
353 ls
354 cd..
355 cd ..
356 l
357 ls
358 cd ~/patricemacbook
359 cd patricemacbook
360 ls
361 cd Desktop
362 ls
363 cd ..
364 ls
365 grep mouse ../allgenes.fas
366 ls
367 grep Downloads/examples
368 cd Downloads
369 ls
370 cd pcfb
371 ls
372 cd examples
373 ls
374 cat shaver*
375 grep "Toolik Lake" shaver_etalcsv
376 ls
377 grep "Toolik Lake" ../examples/shaver_etalcsv
378 grep "Toolik Lake" shaver_etal.csv
379 cd ..
380 ls
381 cd ~
382 ls
383 grep mouse allgenes.fas
384 pwd
385 cd PattysDocuments
386 grep "Toollik Lake" ../Downloads/examples/shover_etal.csv
387 cd PattysDocuments
388 ls
389 grep "Toolik Lake" ../examples/shaver_etal.csv
390 grep "Toolik Lake" ../Downloads/examples/shaver_etal.csv
391 cd ~pcfb/sandbox
392 cd ~
393 ls
394 cd Downloads
395 ls
396 cd pcfb
397 ls
398 grep "Toolik Lake" /examples/shaver_etal.csv
399 grep "Toolik Lake" ../examples/shaver_etal.csv
400 ls
401 cd examples
402 ls
403 grep "Toolik Lake" /shaver_etal.csv
404 grep "Toolik Lake" shaver_etal.csv
405 cd ..
406 ls
407 mkdir sandbox
408 cd sandbox
409 ls
410 grep "Toolik Lake" ../examples/shaver_etal.csv
411 grep "Toolik Lake" ../examples/shaver_etal.csv > toolik.csv
412 ls
413 less toolik.csv
414 histoy
415 history
416 history | grep Toolik
417 ls
418 cd ..
419 ls
420 cd examples
421 ls
422 grep -l "GAATTC" *.seq
423 grep -c
424 grep -ci "GAATTC" *.seq
425 grep -n "GAATTC" *.seq
426 grep -h "GAATTC" *.seq
427 grep -E "GAATTC" *.seq
428 grep -v "GAATTC" *.seq
429 grep -v "GAATTC" *.seq
430 curl "http://www.wunderground.com/history/airport/SLC/1979/[1-12]/01/DailyHistory.html?&format=1" -o SaltLakeCity_1979_#1.txt
431 ls SLC*
432 ls
433 ls Salt*
434 cat SaltLakeCity_1979_1.txt
435 pwd
436 ls
437 mv Salt* ../sandbox
438 ls
439 cd..
440 cd ..
441 ls
442 cdsnadbox
443 cd sandbox
444 ls
445 which cd
446 which r
447 cd
448 mkdir scripts
449 ls
450 echo $Path
451 echoPATH
452 echo PATH
453 echo $PATH
454 set
455 cd
456 nano .bash_profile
457 edit .bash_profile
458 echo $PATH
459 ls
460 dir.sh
461 cd~/scripts
462 cd ~/scripts
463 ls -l
464 ls -l
465 ls
466 pwd
467 ls
468 cd
469 dir.sh
470 cd ~/scripts
471 ls -l
472 ls
473 cd..
474 ls
475 pwd
476 history
477 chmod u+x dir.sh
478 pwd
479 cd..
480 cd ..
481 cd..
482 ls
483 ls
484 ls
485 history
486 ls
487 ls
488 pwd
489 ls
490 ls -l
491 man ls
492 man pwd
493 ls
494 ls
495 ls
496 ls
497 pwd
498 pwd
499 mkdir dir/sh
500 ls
501 ls
502 history
PSCMB-2:~ patricemacbook$