CSCI 1170
Computer Science I
Syllabus
Calendar
Misc.
Unix Commands and Binary Numbers Exercises
Next >
Unix Commands
How do you create a directory named project1?
How do you delete an empty directory named project1?
How do you display the contents of the current directory?
How do you duplicate file1 as file2?
How do you make a directory named project1, the current directory (if project1 is in your current directory)?
How do you rename a file named project1.py to helloWorld.py?
How do you
wreak havoc
and delete all files and directories that are in the current directory?
How do you display information about what a command is and the different parameters that it will take?
How do you display information about what a command is, the different parameters that it will takes, the history of the command, examples, etc.?
Binary numbers
What is the value (in base-10) of the following base-2 numbers?
0110
2
0111
2
1111
2
Using each of your fingers as a binary digit on just your right hand:
How many numbers can you represent?
What is the largest number you can represent (in base-2)?
What is the smallest number you can represent (in base-2)?