Course Homepage

HW2

In this exercise, you will restructure one file tree into another, using any of the Unix utilities shown in class (cp, mv, mkdir, rmdir, touch, and ls). Submit the exact sequence of bash commands used. Remember to use tab-completion to make using the command-line easier.

Directions

  1. ssh into eustis:
ssh NID@eustis.eecs.ucf.edu
  1. Download the file tree for the exercise:
wget -O ~/hw2.tar 'https://www.cs.ucf.edu/~pappas/teaching/cop3402/fal2026/files/hw2.tar'
  1. Extract the file tree:
tar -C ~/ -xvf ~/hw2.tar
  1. Enter the file tree:
cd ~/hw2
  1. The file tree should look like the following when typing tree ~/hw2
.
├── drivers
├── fs
│   └── ext2
│       └── acl.c
├── hid
│   ├── bpf
│   │   └── Makefile
│   ├── i2c-hid
│   │   └── Makefile
│   └── usbhid
│       └── Makefile
├── Makefile
└── net
    └── ethernet
  1. Now find a sequence of commands that restructures the tree into the following one:
.
├── drivers
│   ├── hid
│   │   ├── bpf
│   │   │   └── Makefile
│   │   ├── i2c-hid
│   │   │   └── Makefile
│   │   └── usbhid
│   │       └── Makefile
│   └── Makefile
├── fs
│   └── ext4
│       └── acl.c
├── Makefile
├── net
└── sound
  1. Submit the sequence of bash commands as your homework.

Important notes