Tools for Information Literacy ③ Task 01d
Create a new directory at the command line
Using a command line interface, create a new directory within your public_html space on Opal
Remember our convention
commandargumentvalue
Use a terminal connection and command line instructions to create a directory
Log on to your Opal account using a terminal connection program and enter a temporary shell session at the command prompt
(it should be $ in Unix).
At your_onyen∕, change directoryto your public_html directory
using the command and argument -
cdpublic_html
- fs1∕
- home∕
- your_onyen∕
- someone_else's_onyen∕
At public_html∕,
make a new subdirectorynamed newdirectory within public_html.
using the command and argument -
mkdirnewdirectory
- fs1∕
- home∕
- your_onyen∕
- someone_else's_onyen∕
The new directory doesn't have to be named "newdirectory",
but you should get into the habit of using consistent and logical directory and file names.
If you wish to, you may password protect your directory
Be careful not to inadvertently password-protect your public_html directory.
Use
pwd
to see where you are.
If you are not in your new directory, use
cdaddress-of-new-directory
to go to it.
What does "address" mean?
It means the argument is the location of the directory, relative to where you are now.
For example, if you are here
and you want to change directories to here ...
your command would read cdpublic_html/newdirectory
or, change directoryfirst down to public_html/then one more step down to newdirectory
Once you are sure where you are, type
htdirpass.pl
and hit Enter.
This will activate a script that automatically creates several files for you.
Verify that you are in the directory you want to protect and follow the instructions on the screen.
The program creates two files in the directory you are protecting:
.htaccess and .htpasswd
You won't see these files on a regular ls command, you must type
ls-a.
Don't delete the files unless you want to remove the password protection.
Task 01d: Create a new directory
When you have successfully created a new directory on Opal,
put the URL for your new directory in your assignments space in
Task 01d in Canvas to let us know that you have done it.