Assignment1 Command Related Que DOS
Assignment1 Command Related Que DOS
2) Write the commands to create another directory with name dir2 in directory DOSass1
and make dir2 as the current working directory.
3) Write the command to delete the directory dir2 , when DOS_Regdno will be the current
working directory.
4) Write the command to create a file named as file1 using cat command inside dir1. Write
your name, regdno, branch, semester and section in file1. Then display the content of the
file.
5) Write the command to create a file named as file2 using cat command inside dir1. Write
your semester wise SGPA in file2.
6) Create a file named as file3 storing content of file1 merged with content of file2.
12) Write the command to create a file named as Personalinfo inside dir1. Write your name,
regdno, address in the file.
13) Write the command to display the content of markinfo in reverse order.
16) Write a command to include all the file names present in a current working directory in a
file named as filelist without causing filelist to be included in the names.
17) Write a command to give write permission to all the users of file reginfo.
18) Write a command to discard write permission from group users group users of file
reginfo.
19) Write the command to set rwx permissions for all the users of file reginfo.