Unix Commands and Binary Numbers Exercises

  Next >
  1. Unix Commands
    1. How do you create a directory named project1?
    2. How do you delete an empty directory named project1?
    3. How do you display the contents of the current directory?
    4. How do you duplicate file1 as file2?
    5. How do you make a directory named project1, the current directory (if project1 is in your current directory)?
    6. How do you rename a file named project1.py to helloWorld.py?
    7. How do you wreak havoc and delete all files and directories that are in the current directory?
    8. How do you display information about what a command is and the different parameters that it will take?
    9. How do you display information about what a command is, the different parameters that it will takes, the history of the command, examples, etc.?
  2. Binary numbers
    1. What is the value (in base-10) of the following base-2 numbers?
      1. 01102
      2. 01112
      3. 11112
    2. Using each of your fingers as a binary digit on just your right hand:
      1. How many numbers can you represent?
      2. What is the largest number you can represent (in base-2)?
      3. What is the smallest number you can represent (in base-2)?