Skip to content

Instantly share code, notes, and snippets.

@devdame
Created December 13, 2013 21:28
Show Gist options
  • Save devdame/7951630 to your computer and use it in GitHub Desktop.
Save devdame/7951630 to your computer and use it in GitHub Desktop.
CLI Obstacle Course command line history, flaws and all!
377 rails new myapp
378 sudo gem install rails
379 gem install rails
380 rails new cli
381 cd cli; rails server
382 rails-v
383 rails/v
384 rails -v
385 pwd
386 cd..
387 cd
388 mdir clirepo
389 mkdir clirep
390 cd clirep
391 git clone https://github.com/wisconsinpoet/CLI-Obstacle-Course.git
392 ls
393 cd CLI-Obstacle-Course/
394 ls -a -l
395 mv /images /app/assets
396 mv images app/assets
397 cd app
398 cd assets
399 ls
400 ls -a
401 cd images
402 ls -a
403 ls
404 cd ..
405 pwd
406 cd ..
407 cd assets
408 ls -a
409 cd images
410 ls -a
411 cd ..
412 cd ..
413 pwd
414 cd assets
415 cd images
416 ls -a -l
417 cd ..
418 cd ..
419 pwd
420 ls
421 cd views
422 cd static_pages/
423 ls
424 ls ..
425 ls
426 mv this_is_the_annoying_ping_pong_text\!.txt ..
427 ls
428 cd ..
429 ls
430 ls
431 cd static_pages
432 ls
433 mv ../this_is_the_annoying_ping_pong_text\!.txt .
434 ls
435 mv this_is_the_annoying_ping_pong_text\!.txt where_am_you\?.txt
436 ls
437 mv where_am_you\?.txt where_am_i\?.txt
438 ls
439 pwd
440 pwd > where_am_i\?.txt
441 less where_am_i\?.txt
442 cd
443 locate static_pages_controller.rb
444 cd cli
445 cd
446 cd clirep
447 ls
448 locate static_pages_controller.rb
449 find static_pages_controller.rb
450 cd CLI-Obstacle-Course/
451 ls
452 find config.ru
453 cd ..
454 find config.ru
455 cd
456 locate static_pages_controller.rb
457 sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist
458 locate static_pages_controller.rb
459 locate static_pages_controller.rb
460 locate static_pages_controller.rb
461 locate static_pages_controller.rb
462 locate static_pages_controller.rb
463 pwd
464 mv clirep/CLI-Obstacle-Course/app/helpers/static_pages_controller.rb clirep/CLI-Obstacle-Course/app/controllers
465 cd clirep/CLI-Obstacle-Course/app/controllers
466 ls
467 cd ..
468 cd ..
469 pwd
470 find . static_pages_controller.rb
471 find . static_pages_controller.rb
472 grep controller
473 cd clirep
474 ls
475 locate *controller*
476 locate . *controller*
477 find . *controller*
478 mdfind -onlyin . "*controller*"
479 mdfine -name "*controller*"
480 mdfind -name "*controller*"
481 mdfind -name "controller"
482 mdfind -onlyin . -name "controller"
483 cd ..
484 cd
485 mdfind -onylin clirep -name "controller"
486 mdfind -onlyin clirep -name "controller"
487 cd clirep
488 grep "bootinator"
489 cd clirep
490 grep "bootinator" /./*
491 pwd
492 find . | xargs grep <bootinator>
493 find . | xargs grep <"bootinator">
494 find . | xargs grep "bootinator"
495 grep -r "bootinator"
496 cd clirep
497 grep -lir "bootinator"
498 grep . -lir "bootinator" *
499 sudo grep -lir "bootinator" .
500 grep -lir "bootinator" .
501 cd clirep
502 grep -lir "def bootinator" .
503 mv ./CLI-Obstacle-Course/app/assets/stylesheets/application_helper.rb CLI-Obstacle-Course/app/helpers/
504 ls
505 cd CLI-Obstacle-Course/
506 ls
507 rmdir delete_me
508 rm delete_me
509 rm -r delete_me
510 ls
511 mdfind -name "winning.rb"
512 cp CLI-Obstacle-Course/config/environments/you_are_winning.rb
513 cp CLI-Obstacle-Course/config/environments/you_are_winning.rb ~
514 pwd
515 cp config/environments/you_are_winning.rb ~
516 cd
517 ls
518 ruby you_are_winning.rb
519 history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment