CS 3377 Dollinger UNIX Exam 1 Questions With
Complete Answers
What's an absolute path name? - ANSWER An absolute path name is relative to the root
directory and can be used/referenced from any working directory. Absolute path names start
with a slash.
ex)
{cslinux1:~} ls /home/013/v/vp/vpn200000/two
What's a relative path name? - ANSWER A relative path name is relative to the working
directory and can only be used/referenced from that working directory.
ex)
{cslinux1:~} cd two
What are three different ways to return to the home directory? - ANSWER cd
cd ~
cd $home
What is the arrangement of directories and files in the UNIX file system? - ANSWER The
heirarchy starts with the /root, which branches off into /usr and /home directories. The /usr
directory then branches off into the /local and /bin directories. Within the home directory are
any files you create.
, (i think this is all u need to kno)
What is the directory you're in when you first login? (what's the default directory?) - ANSWER
/home/{username}
ex)
/home/013/v/vp/vpn200000
What does .. do? - ANSWER .. represents the parent directory. If you use it with cd, you can go
back one directory.
ex)
{cslinux1:~} cd temp
{cslinux1:~/temp} cd ..
{cslinux1:~}
You can also use this with another directory at the same time to jump back and go into a
different directory
ex)
Complete Answers
What's an absolute path name? - ANSWER An absolute path name is relative to the root
directory and can be used/referenced from any working directory. Absolute path names start
with a slash.
ex)
{cslinux1:~} ls /home/013/v/vp/vpn200000/two
What's a relative path name? - ANSWER A relative path name is relative to the working
directory and can only be used/referenced from that working directory.
ex)
{cslinux1:~} cd two
What are three different ways to return to the home directory? - ANSWER cd
cd ~
cd $home
What is the arrangement of directories and files in the UNIX file system? - ANSWER The
heirarchy starts with the /root, which branches off into /usr and /home directories. The /usr
directory then branches off into the /local and /bin directories. Within the home directory are
any files you create.
, (i think this is all u need to kno)
What is the directory you're in when you first login? (what's the default directory?) - ANSWER
/home/{username}
ex)
/home/013/v/vp/vpn200000
What does .. do? - ANSWER .. represents the parent directory. If you use it with cd, you can go
back one directory.
ex)
{cslinux1:~} cd temp
{cslinux1:~/temp} cd ..
{cslinux1:~}
You can also use this with another directory at the same time to jump back and go into a
different directory
ex)