Sunday 9 October 2016

NIELIT Assignment 7 : Basics of Os, Unix and Shell Programming

Assignment 7.

a) Use chmod –w . and then try to create and remove a file in the current
directory. What is its output.

b) Run the commands (i) ls –ld . and (ii) ls –l .. Explain its output.

NIELIT Assignment 6 : Basics of Os, Unix and Shell Programming

Assignment 6.

a) Write a command to compare two text files.

b) Write a command to copy a file with permission 444.Copy it again and explain
your observation.

NIELIT Assignment 5 : Basics of Os, Unix and Shell Programming

Assignment 5.

a) How does the command mv bar1 bar2 behave , where both bar1 and bar2 are directories, when (i) bar2 exists and (ii)bar2 does not exist

b) Write a command to display lines common to a.txt and b.txt?

c) Write a command to display lines unique to a.txt?

NIELIT Assignment 4 : Basics of Os, Unix and Shell Programming


Assignment 4.

a) Run the following command and explain its output
(i) cd ../.. (ii)mkdir ../bin (iii)rmdir .. (iv)ls ..

b) Write a command to remove entire directory structure
DOEACC/ALEVEL/AL55 in one command?