Sign In
|
Register
> Browse
all docs
DocStore
Legal
Business
Personal Finance
Technology
Education
Jobs & Careers
Tax
Real Estate
Current Events
Politics & History
Guides
Science
Entertainment
Health & Fitness
Medicine
Conferences
Art & Literature
Lifestyle
Travel
Templates
> Featured
> Browse
> Create
unix lab2 exercise
Reviews
Shared by:
Honey Singh
Categories
Tags
Stats
views:
169
rating:
not rated
reviews:
0
posted:
11/12/2007
language:
English
pages:
0
Public Domain
Lab Exercise –2 (UNIX Files and Links) Note: The answer to Question No 1. should be stored in a separate file in your login The bold letters in Question No 1 can be different depending upon the User ID Follow the following instructions before doing Lab Exercise -2 Create a directory lab2 in your login Create 2 files test1, test2 and a sub-directory ip inside lab2 directory Create a new file test1 inside ip directory 1. Here is the normal permission setting of a sub-directory structure: $ whoami aa $ ls -lR -rw-r--r-- 1 aa faculty 154 Jan 4 16:38 test1 -rw-r--r-- 1 aa faculty 64 Jan 4 15:00 test2 drwxr-xr-x 1 aa faculty 512 Jan 8 18:01 ip/ ip -rw-r--r-- 1 aa faculty 154 Jan 9 17:32 test1 a) Here is the new setting #1: $ whoami aa $ ls -lR -rw-r--r-- 1 aa faculty 154 Jan 4 16:38 test1 -rw-r--r-- 1 aa faculty 64 Jan 4 15:00 test2 drwxr-xr-x 1 aa faculty 512 Jan 8 18:01 ip/ ip -r--r--r-- 1 aa faculty 154 Jan 9 17:32 test1 Give the command to change from the normal setting to the new setting (permission) #1. How is behavior of the following commands under this new setting different from that in the normal setting? Why? $ cp test2 ip/test1 $ mv test2 ip/test1 $ rm -R ip b) Here is the setting #2: $ whoami aa $ ls -lR -rw-r--r-- 1 aa faculty 154 Jan 4 16:38 test1 -rw-r--r-- 1 aa faculty 64 Jan 4 15:00 test2 dr-xr-xr-x 1 aa faculty 512 Jan 8 18:01 ip/ ip -rw-r--r-- 1 aa faculty 154 Jan 9 17:32 test1 Give the command to change from the normal setting to the new (permission) setting #2. How is behavior of the following commands under this new setting different from that in the normal setting? Why? $ cp test2 ip/test1 $ rm ip/test1 $ mv ip/test1 ip/test2 c) Here is the setting #3: $ whoami aa $ ls -l -rw-r--r-- 1 aa faculty 154 Jan 4 16:38 test1 -rw-r--r-- 1 aa faculty 64 Jan 4 15:00 test2 drw-rw-rw- 1 aa faculty 512 Jan 8 18:01 ip/ Give the command to change from the normal setting to the new (permission) setting #3. (assume the content inside the directory "ip" is not changed.) How is behavior of the following commands under this new setting different from that in the normal setting? Why? $ ls -lR $ cp test2 ip/test1 $ cp ip ip2 $ cp -R ip ip2 $ mv ip ip3 2. Try to find out what is the use of the following commands(terms): indent cb find fg fc set ps kill
Shared by:
Honey Singh
Honey Singh
WebDesigner
Co-Founder
Mediaredefined
honeytechblog.com
contact me
In order to send a message you need to be logged in.
About
Honey is a zealous web and graphics designer (currently working with media redefined ) having a creative and devouring gumption with an experience of over 3 years in Interactive Designing , Blogging and Web technologies.
Other docs by
Honey Singh
What Mr.Buffett learned from Graham
Views: 1278 | Downloads: 134
Warren Buffett_27s Invisible Empire
Views: 1112 | Downloads: 90
Under Warren Buffett_27s Big Top
Views: 726 | Downloads: 47
The Warren Buffett You Don_27t Know
Views: 986 | Downloads: 103
The Best Advice I ever Got
Views: 6452 | Downloads: 372
9 investing secrets of Warren Buffett[2]
Views: 1115 | Downloads: 148
UNIX[3]
Views: 889 | Downloads: 42
Thinking in java 2nd edition
Views: 1263 | Downloads: 68
network programming
Views: 702 | Downloads: 37
Kevs-php-mysql[1]
Views: 11692 | Downloads: 65
Googles Backdoor
Views: 445 | Downloads: 19
Google Hacking 101
Views: 14168 | Downloads: 333
Google Hackers Guide
Views: 8442 | Downloads: 259
Google Anatomy
Views: 1563 | Downloads: 195
Beej_27s Guide to Network Programming
Views: 499 | Downloads: 19
Related docs
Unix Exercise
Views: 500 | Downloads: 44
UNIX
Views: 326 | Downloads: 51
Unix Tutorial
Views: 658 | Downloads: 90
Introduction to Unix
Views: 9 | Downloads: 1
Unix_lab exercise
Views: 221 | Downloads: 14
some Unix advice
Views: 8 | Downloads: 2
A Basic UNIX Tutorial
Views: 211 | Downloads: 61
WORKSHEET 1 CDE UNIX
Views: 5 | Downloads: 2
unix training courses
Views: 22 | Downloads: 1
Unix Programming Tools
Views: 93 | Downloads: 22
PBL session Introduction to PBL MB Introduction to Unix MJ
Views: 30 | Downloads: 0