Introduction
to
 Command line

(Just the Exercises)

Exercise


  1. cd to your home directory
  2. create the girl/develop directory path
  3. navigate into the girl/develop directory
  4. create the it directory
  5. view the contents of the it directory
  6. navigate up two directories
  7. use the pwd command to verify you are home
  8. remove the girl/develop/it path

Exercise



  1. Create a new file named testfile in your home directory
  2. Grant yourself execute permission on the file
  3. Remove read permission on testfile from
    your group and everyone else
  4. Delete testfile

Exercise

ls | grep bash
Use the "ls" and "grep" commands to print
out only the files in your home directory that contain the word "bash"



Exercise

  1. Run the top command
  2. Suspend the process
  3. Bring the process back into the foreground

Exercise


  • Clear your terminal and run the "yes" command
  • Use the Ctrl+Z key sequence to suspend the process
  • Use the "bg" command to send the process to the background
  • Notice the output is still happening even though the process is running in the background
  • Open a new terminal window, locate the PID for the "yes" process and use it to kill the process.

Exercise


  1. Use your up and down arrows to locate a past
    command with one or more arguments
  2. Jump to beginning of the line
  3. Jump to the end of the line
  4. Change one of the arguments and run it
  5. Run the date command
  6. Re-run the command from step 4 using !
  7. Time the execution of your original
    command by running time !!


Hit me up with questions.


jared.k.stilwell@gmail.com
@meany_face (twitter)
Made with Slides.com