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

Practical 1

The document provides commands for performing common file and directory operations in a Windows command prompt: 1) It shows how to create a folder called "BCA", change the current directory to that folder, and create three text files (.txt) called FYBCA.txt, SYBCA.txt, and TYBCA.txt. 2) Commands are given to display the contents of SYBCA.txt, copy SYBCA.txt into TYBCA.txt, and delete FYBCA.txt. 3) The last few commands demonstrate how to rename SYBCA.txt, change the current directory, and display all .txt files in the current directory.

Uploaded by

Ritu Solanki
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
174 views

Practical 1

The document provides commands for performing common file and directory operations in a Windows command prompt: 1) It shows how to create a folder called "BCA", change the current directory to that folder, and create three text files (.txt) called FYBCA.txt, SYBCA.txt, and TYBCA.txt. 2) Commands are given to display the contents of SYBCA.txt, copy SYBCA.txt into TYBCA.txt, and delete FYBCA.txt. 3) The last few commands demonstrate how to rename SYBCA.txt, change the current directory, and display all .txt files in the current directory.

Uploaded by

Ritu Solanki
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Operating System

 Write a command to Create a folder name BCA.


Ans:-
Z:\>mount d d:\
Z:\>d:
D:\>mkdir bca
D:\>_

Input:-

Output:-
 Write a command to change directory from current directory to BCA.

Ans:-
D:\>mkdir bca
D:\>cd bca
D:\BCA>_
 Write a command to create .txt file name them FYBCA.txt, SYBCA.txt, TYBCA.txt .
Ans:-
D:\BCA>cat >fybca.txt
D:\BCA>cat >sybca.txt
D:\BCA>cat >tybca.txt
D:\BCA>_
Input:-

Output:-
 Display all Content Of SYBCA directory.
Ans:-
D:\BCA>type sybca.txt
 Write a command to copy the content of SYBCA.txt into TYBCA.txt . Input.
Ans:-
D:\BCA>copy sybca.txt tybca.txt
SYBCA.TXT
1 File(s) copied.
D:\BCA>_

Output:-
 Write a command to delete a file FYBCA.txt .
Ans:-
D:\BCA>del fybca.txt
D:\BCA>_
Input:-

Output:-
 Write a command to rename the file SYBCA.txt with SYBCA STUDENT.txt .
Ans:-
D:\BCA>ren sybca.txt sybcastudent.txt
D:\BCA>_
Input:-

Output:-
 Write a command to change present current directory.

Ans:-

D:\>cd bca

D:\BCA>_

 Write a command to display all directory of .txt directory.


Ans:-
D:\BCA>dir *.txt

You might also like