Charlie uses usrcharlie as his home directory and many of


Question: 1. How does the command mv bar1 bar2 behave, here both bar1 and bar2 are directories, When

(i) bar2 exists,

(ii) bar2 doesn't exist?

2. Explain the difference between the commands cd ~charlie and cd~/Charlie is it possible for both commands to work?

3. Charlie uses /usr/Charlie as his home directory, and many of his scripts refer to the pahname /usr/Charlie/html. Later, the home directory is changed to /home/Charlie. Thus breaking all his scripts. How could charile have avoided this problem?

4. Explain what the following commands do:

(i) cd,

(ii) cd $HOME,

(iii) cd~.

5. What is the significance of these commands?

(i) mv $HOME/include

(ii) cp -r bar1 bar2,

(ii) mv * ../bin.

6. How do DOS and UNIX test files differ? Name the utilities that convert files between these two formats.

7. Name three advantageszip has over gzip.

8. a file in a file system with a block size of 1024 bytes contains 1026 bytes. How many bytes of disk space does it occupy?

9. create a file foo. How do you assign all permissions to the owner and remove all permissions from others using

(i) relative assignment and

(ii) absolute assignment?

Do you need to make any assumptions about foo's default permissions?

10. you tried to copy a file foo from another user's directory, but you got the error message cannot create file foo. You have write permission in your own directory. What could be the reason, and how do you copy the file?

11. what do you do to ensure that no one is able see the names of the files you have?

12. if the owner doesn't have write permission on a file but her group has, can she

(i) edit it,

(ii) delete it?

13. how will you add /* at the beginning of a line and */ at the end?

14. in the midst of your work, how can you see the list of users logged in? if you have a number of UNIX commands to execute, which course of action will you take?

15. how will you search for a pattern printf and then repeat the search in the opposite direction from that in which the original search was made?

16. if the power to the machine is cut off while a vi session is active, how does it affect your work? What salvage operation will you try?

17. you made some changes to a read-only file and then found that you can't save the buffer. What course of action will you take without quitting the editor?

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Charlie uses usrcharlie as his home directory and many of
Reference No:- TGS02623292

Expected delivery within 24 Hours