You are on page 1of 1

1.create a directory consisting of5 subdirectories.

in the following subdirectories, make couple of subdirectories and in each of them create files having some content in them respectively. go back to root directory and search the path for the specific file in the directory tree using one line command. 2. create a directory consisting of5 subdirectories. in the following subdirectories, make couple of subdirectories and in each of them create files having some content in them respectively. go to the root directory and append the content of any of the file and at the same time copy that appended content to a file lying in the other subdirectory using a single line command. 3.create a directory consisting of5 subdirectories. in the following subdirectories, make couple of subdirectories and in each of them create files having some content in them respectively. go to the root directory and append the content of any of the file and at the same time copy that appended content to a file lying in the other subdirectory and also delete all other files in the destination directory except the destination file using a single line command. 4.create a directory LPU, create a subdirectory CSE in it.put three files K2R15,K3R01,KE169,KE173. put 5 names in each of these files. in any one file put your name and put five of your friend's names in different files(randomly). go outside main directory and search which section you are allotted. 5. create a directory LPU, create a subdirectory CSE in it. put three files K2R15,K3R01,KE169,KE173. prepare attendance list of all three sections(mark some as present/absent) and find out and display together how many students are present in all the sections using one line command. 6.create a directory LPU, in it create 10 subdirectories each representing a co -curricular activity for the annual fest at LPU and also containing a blank 'special file'. in each of them create directory containing in charge and participants. in it create files of each section. in those files put the names of class in charge and participants of that particular activity (eg . anchoring, discipline,dance,singing,drama etc) for that class. find the activity,section,roll number,contact number and type of the names of the one in charge from the list of names given to you. put all the names and the participants under them in special file placed under special sub directory. 7.display the names of all selected special students and at the same time remove the rest of files(100 files) in special subdirectory using one line command. 8.in the directories which do not have names on any of the names given to you, move them to a new created subdirectory called trash using a single line command. 9.now check whether the path only contains the list of those sections which have names. 10.copy the files of all sections from their directories to the subdirectory containing the 'special file'.

You might also like