Professional Documents
Culture Documents
2. Create a file Myfile.txt and store your name, age and gender and address in it
by using cat command.
3. Create a file Friend.txt and store your friend name, age and gender and address
in it by using touch and one more appropriate commands.
5. Copy the contents of the file Myfile.txt into another file newfile.txt.
6. Combines the contents of the file Myfile.txt and newfile.txt into another file
allfile.txt.
7. Delete newfile.txt.
8. Change the permissions for allfile.txt like user can read,write and execute,
group can read and write only and others can only read.
10. Merge and sort the contents of Myfile.txt and Friend.txt and display the sorted
output on the screen.
11. Count the number of lines and words in Myfile.txt and print the result to file
count.txt.
14. Display all lines in Myfile.txt which contain the word “Yangon”. Make sure the
searching is case insensitive.