Docsity

UNIX Commands: In-Class Exercise for Spring 2009, Assignments of Engineering

Toggle sidebar
bg1
In‐Class(4( Spring(2009(
(
1
UNIX(Commands(
The$following$questions$will$test$intermediate$knowledge$of$the$*NIX$terminal.$
$
1. Write$the$command$that$would$create$a$shortcut$to$the$E115$course$locker.$
$
_____________________________________________________________$
2. After$doing$so,$what$would$be$the$new$pathname$that$we$can$use$to$access$it$the$locker?$
$
_____________________________________________________________$
3. Write$a$command$you$could$use$to$look$at$the$contents$of$a$file$named$cows.txt$in$your$home$
directory.$
$
_____________________________________________________________$
4. Write$the$command$that$would$create$a$zip$file$named$test.zip$with$the$files$cows.txt,$steak.txt,$
and$me.jpg$(all$in$your$current$directory).$
$
_____________________________________________________________$
5. What$command$would$you$use$to$see$how$much$free$space$you$have$in$your$home$directory’s$
volume?$
$
_____________________________________________________________$
6. How$would$you$give$ToniAnn$Marini$(Unity$ID:$tamarini)$both$read$and$look$access$to$your$
home$directory?$
$
_____________________________________________________________$
$
7. How$would$you$remove$the$access$you$gave$ToniAnn$in$#6?$
$
_____________________________________________________________$
$
8. Write$the$command$that$would$allow$you$to$access$the$backup$of$your$home$directory.$
$
_____________________________________________________________$
pf2

Partial preview of the text

Download UNIX Commands: In-Class Exercise for Spring 2009 and more Assignments Engineering in PDF only on Docsity!

In‐Class 4 Spring 2009 1 UNIX Commands The following questions will test intermediate knowledge of the *NIX terminal.

  1. Write the command that would create a shortcut to the E115 course locker.
  2. After doing so, what would be the new pathname that we can use to access it the locker?
  3. Write a command you could use to look at the contents of a file named cows.txt in your home directory.
  4. Write the command that would create a zip file named test.zip with the files cows.txt, steak.txt, and me.jpg (all in your current directory).
  5. What command would you use to see how much free space you have in your home directory’s volume?
  6. How would you give ToniAnn Marini (Unity ID: tamarini) both read and look access to your home directory?
  7. How would you remove the access you gave ToniAnn in #6?
  8. Write the command that would allow you to access the backup of your home directory.

In‐Class 4 Spring 2009 2

  1. After setting up the backup, how would you see the contents of it?
  2. When you’re done using the backup, how would you remove the path to it?