Skip to content

Instantly share code, notes, and snippets.

@papapoison
Created December 15, 2013 01:32
Show Gist options
  • Save papapoison/7967570 to your computer and use it in GitHub Desktop.
Save papapoison/7967570 to your computer and use it in GitHub Desktop.
Solution for Command Line Obstacle Course
529 cd CLI-Obstacle-Course/
530 ls
531 mv images
532 mv images app
533 ls
534 cd app
535 ls
536 cd ..
537 cd app
538 ls
539 mv images assets
540 cd assets
541 ls
542 cd images
543 ls images
544 ls
545 cd ..
546 ls
547 cd ..
548 ls
549 cd views
550 cd static_pages
551 ls
552 ../ls
553 ls..
554 ls ..
555 ls
556 ls .. ..
557 ls
558 cd ..
559 ls
560 cd static_pages
561 ls /CLI-Obstacle-Course/app/
562 ls
563 mv this_is_the_annoying_ping_pong_text\!.txt ..
564 ls
565 mv ~\this_is_the_annoying_ping_pong_text\!.txt .
566 mv ../~this_is_the_annoying_ping_pong_text\!.txt .
567 mv *\!.txt /app/views
568 say butt
569 say hello bailey dog
570 ping
571 ping -c
572 ll
573 ls -la
574 ls
575 mv this_is_the_annoying_ping_pong_text\!.txt where_am_you\?.txt
576 ls
577 mv where_am_you\?.txt where_am_i\?.txt
578 ls
579 pwd pbcopy
580 pbpaste
581 pbpaste
582 ls
583 pbpaste > where_am_i\?.txt
584 cd
585 find static_pages*
586 find static_pages_controller.rb
587 ls
588 cd CLI-Obstacle-Course/
589 find static_pages.controller.rb
590 ls
591 find . -name "*.rb"
592 find -name "static*"
593 find . -name "static_*"
594 mv ./app/assets/helpers/static_pages_controller.rb ./app/controllers
595 mv ./app/assets/helpers/static_pages_controller.rb .
596 cd app/assets/helpers
597 ls
598 cd /app/assets/helpers/
599 cd app/assets
600 pwd
601 ls
602 cd
603 cd CLI-Obstacle-Course/
604 cd app/assets/helpers
605 find . -name "static*"
606 mv app/helpers/static_pages_controller.rb app/controllers
607 cd controllers
608 ls
609 cd app
610 ls
611 ls controllers
612 cd .
613 cd ..
614 find . -name "*controller*"
615 grep "bootinator" .*
616 grep "bootinator"
617 grep -r bootinator ~.
618 grep -r ~/CLI-Obstacle-Course/
619 grep -r bootinator ~/CLI-Obstacle-Course/
620 mv ./app/views/animals/new.html.erb ./app/helpers
621 ls
622 cd apps/helpers
623 cd app
624 cd helpers
625 ls
626 cd ..
627 cd ..
628 ls
629 rm -r delete_me
630 ls
631 find . -name "winning.rb"
632 find . -name "winn*
"
633 ls
634 find . name "*win*"
635 find . -name "*.rb"
636 find . -name "*winn*.rb"
637 mv config/environments.you_are_winning.rb .
638 ls
639 mv config/environments/you_are_winning.rb .
640 ls
641 ruby you_are_winning.rb
642 ruby you_are_winning.rb
643 open .bash_history
644 history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment