During the class we will write several programs using the C language. This may involve several files for each assignment. If we placed all of these files in one directory, the directory would become unmanageable. To avoid this problem, we need to create subdirectories in the csc1710 directory.
First, verify you are in the csc1710 directory with the pwd command. Type
pwd
which should reply with, /home/students/loginname/csc1710.If you are not in the csc1710 directory, then go BACK and see the previous step.
To create a subdirectory for the first programming assignment type the following (note: the last character in assign1 is the number one). Caution: Some commands do not have a terminal response unlike the pwd and ls commands. Commands that do not respond may lead you to think the command did not work. However, in this case if you follow the mkdir command with an ls command you will see the new directory assign1 in the list.
mkdir assign1
To verify the mkdir works, perform an ls command. NOTE: Use the pwd and ls commands to help you navigate the UNIX directory tree.
Now that you have a subdirectory (or folder) to store some files in, you enter or "change into" that subdirectory by typing
cd assign1
If you list your files in this subdirectory, you should see nothing. You can move back "up" to the previous (or parent) subdirectory with the command
cd ..
and then you can reenter the subdirectory withcd assign1
Note: After you log onto the system, you must remember to cd into the appropriate directory that contains the programs you are developing.
Tip: to return to the HOME directory, enter cd without a directory.