0% found this document useful (0 votes)
29 views

UNIX Lab Assignment 3

Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

UNIX Lab Assignment 3

Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

UNIX and Networking BCA591

BCA 3rd Year 5th Semester


Assignment – 3

1. Open every file you had created and try to add some more content matching with the file
title.
2. Now open the file ‘Monitor’ and toggle the cases of all the characters in the file and save
the changes.
3. Redirect the help of the command ‘tee’ in a file called ‘teehelp’.
4. Move the first four lines of the file in a file called ‘someteehelp’ without exit from the vi
editor.
5. Try to display the content of your home directory without exiting from the vi editor.
6. Add the extension .txt to at least three files( they should reside in three different
locations) you have already created in our directory structure.
7. Make “Comp_Sys” as your current working directory.
8. a) Search the .txt files and print their names starting from your home directory using a
single command.
b) Print the content of those files found in the previous question using a single command.
c) Change their names to myfile1.txt,myfile2.txt and myfile3.txt respectively in an
interactive fashion using a single command.

9. Create links of those files in the directory ‘Comp_sys’ and display the inode number for
the links as well as the original files.
10. Now create symbolic links for those files in your home directory and check their inode
numbers with respect to original files.
10. For any file in your directory structure remove all permissions for all users using a single
command. Try to display the content of the file. What is happening? Explain reason for
that.
11. Remove the read and write permission from the directory ‘Comp_sys’ for all users using
a single command. Now create a new file within the directory comp_Sys. What is
happening? Explain reason for that.
12. Copy the .jpg files starting with the character ‘w’ in their name from the
/usr/share/wallpapers directory.
13. Now create an archive for those files and then compress the achieve. Now make a zipped
version of that achieve and compare with their original size. Try to retrieve the files from
the achieve.

You might also like