uli101_week4_practice

.docx

School

Seneca College *

*We aren’t endorsed by this school

Course

101

Subject

Computer Science

Date

Dec 6, 2023

Type

docx

Pages

3

Uploaded by ChancellorDragonfly3067

Report
ULI101 Data Representation / File Permissions Practice _____________________________________________________________________________ Instructions: This handout is just for practice. It is the responsibility of the student to attend class to mark their own work in class when your professor takes up this exercise. You are NOT required to hand this practice sheet into your professor (keep it for future practice). The answers to this handout will NOT be posted or emailed to students. 1. List the number of digits for the following numbering systems: Decimal = 10 Binary = 2 Octal = 8 Hexadecimal = 16 2. Write a simple chart to show which values are represented for letter A - F for a hexadecimal number. A 10 - 1010 B 11 - 1011 C 12 - 1100 D 13 - 1101 E 14 - 1110 F 15 - 1111 3. How many binary digits does 1 octal digit represent? 3 4. How many binary digits does 1 hexadecimal digit represent? 4 5. Use manual numbering conversion to complete the table displayed below. 1 PAGE
ULI101 Data Representation / File Permissions Practice _____________________________________________________________________________ 6. Write the chmod command (using the symbolic method) to set “ pass-through permissions (eg. r w x - - x - - x ) for your home directory using an absolute pathname . Also, write a Linux command to verify that permissions where set. Chmod a+rwx /home/username 7. Perform a binary to octal numbering conversion for the permissions: r w x - - x - - x Write single Linux command to set “ pass-through ” permissions for your home directory but use the absolute method (i.e. octal numbers). r w x - - x - - x 111 001 001 7 1 1 chmod 777 /home/username 8. Write a single Linux command to add read permissions for same group members for the ~/tests directory. Use the symbolic method. chmod g+r ~/tests 9. Write a single Linux command to remove write permissions for same group members and other group members for the ~/projects directory. Use the symbolic method. chmod go-w ~/projects 10. Write a single Linux command to set the permissions for the ~/assignments directory to the following using the absolute method (i.e. octal numbers): r w x r - x - - x NOTE: Show your work to perform a binary to octal conversion. 111 101 001 7 5 1 chmod 751 ~/assignments 2 PAGE
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help