Sunday 9 October 2016

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?

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

Assignment 3.

a) Convert the decimal number 192 to octal and hexadecimal using bc command.

b) Run ps , the script command and run ps again . What is its output. Explain