Lab1 HW Part A
(Unix Tutorial)
- What does CDE stand for?
Common Desktop Environment
- What is UNIX? an operating system
- What’s a file? a container that holds information
- How do you determine the data type of
a file? by determining the format of the
file; either by the file extension (.xls, .doc) or by the icon used to
represent the file
- What is the maximum allowable size of
a file name for our system? didn’t find one!
tried up to 78 characters for the file name and still worked! Maybe
256?!
- What is the relationship between
folders and files? a folder is a container for files or other folders
- What is the relationship between a
folder and a directory? folders are often
referred to as directories i.e. the terms can be used interchangeably
- What is the absolute path(s) to lab4? /usr/314/lab4 OR
/usr/201/labs/lab4
- What is the absolute path to
prelab.cob? /usr/314/prelab.cob
- What is a parent folder?
also called the “dot-dot” folder;
is represented by .. in a path name; the
parent folder is the folder one level up in the folder hierarchy
- If your current folder is
/usr/314/lab2, what is the relative path to lab1a.cob?
../lab1/lab1a.cob
- What is your account name? example: smith
- What is the home directory path name
on your CIS314 account? example:
/n/bronze/8/smith currently: /home/5/reeves
- What server are you on?
for the above example: bronze currently: not clear
anymore!
- What is the tilde ~ character used for? can be used as a
shortcut for getting to your home directory; can also be used by itself
to refer to your own home directory
- What do you do to your terminal
if/when you need to step out of the lab for a few minutes?
press the “lock” icon on the
top-left part of the CDE center section
- Are the filenames ABC.txt and abc.txt
the same file? Explain.
No, because Unix is case-sensitive
- When using the command:
ls –l /usr/class/cis314
does the prompt change from your root directory to the absolute
path name listed on the command? Why or
why not? No,
because the ls command lists the contents of a directory, but does not
change to that directory (i.e. folder) so the prompt does not change
- How do you stop/exit a Unix command? CTRL-C that is
pressing the ctrl key and the c key at the same time (usually by
holding down the ctrl key then pressing the c key and letting both go)
- What is an editor?
Give an example of one. an software application that edits text; XEmacs
- What is the name of our COBOL compiler? AcuCobol
- Why do you need to subscribe to the
COBOL compiler? so
that you can compile and run any source code program written in COBOL
- What command checks the permissions of
a file? ls –l
(be careful with the wording of problems in this course… the ls –l
command CHECKS the permission of a file; the chmod command CHANGES the
permissions of a file)
- If you have a problem with your
account, whom do you contact? the consultant in the lab; if you need more help,
email help@cse.ohio-state.edu
and please copy me on that email!
- Why can you not work on just any
computer on campus? because the account you have is associated with
the CSE servers only; your account is not recognized by just any and
all servers on campus (although you can
telnet, etc, from other servers to a CSE server if you know how, then
log on to your CSE account)
FYI:
You should be familiar with the following
list of Unix commands: mkdir, rmdir, ls,
cd, cp, mv, rm, cat, more, and chmod.