0% found this document useful (0 votes)
5 views6 pages

Os Practicals

The document is a practical experiment sheet for a Computer Science and Engineering course at Marathwada Institute of Technology, focusing on basic UNIX commands. It outlines commands such as pwd, mkdir, rmdir, ls, cd, touch, cat, rm, cp, and mv, along with their syntax and purpose. The aim is to implement hands-on experience with these commands during the laboratory session for the academic year 2020-21.

Uploaded by

fekip14975
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)
5 views6 pages

Os Practicals

The document is a practical experiment sheet for a Computer Science and Engineering course at Marathwada Institute of Technology, focusing on basic UNIX commands. It outlines commands such as pwd, mkdir, rmdir, ls, cd, touch, cat, rm, cp, and mv, along with their syntax and purpose. The aim is to implement hands-on experience with these commands during the laboratory session for the academic year 2020-21.

Uploaded by

fekip14975
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/ 6

MARATHWADA INSTITUTE OF TECHNOLOGY, AURANGABAD

DEPARTMENT: Computer Science and


Engineering

PRACTICAL EXPERIMENT SHEET

LABORATORY: 419 YEAR: 2020-21

CLASS: SYA(CSE) SUBJECT: Operating System

ROLL NO: 133 NAME: Ketan Aakule

Batch: S2

Experiment – 1
Aim:
Implementation of Hands on UINUX basic commands.

Theory:

1. pwd Command
The pwd command is used to display the location of the current working
directory.

Syntax:
pwd

Output:
2. mkdir Command
The mkdir command is used to create a new directory under any directory.

Syntax:
mkdir <directory name>

Output:

3. rmdir Command
The rmdir command is used to delete a directory.

Syntax:
rmdir <directory name>

Output:

4. ls Command
The ls command is used to display a list of content of a directory.

Syntax:
ls

Output:

5. cd Command
The cd command is used to change the current directory.

Syntax:

cd <directory name>
Output:

6. touch Command
The touch command is used to create empty files. We can create multiple empty
files by executing it once.

Syntax:

1. touch <file name>


2. touch <file1> <file2> ....

Output:
7. cat Command
The cat command is a multi-purpose utility in the Linux system. It can be used to
create a file, display content of the file, copy the content of one file to another
file, and more.

Syntax:

1. cat [OPTION]... [FILE]..

To create a file, execute it as follows:

1. cat > <file name>


2. // Enter file content

Press "CTRL+ D" keys to save the file. To display the content of the file, execute it
as follows:

1. cat <file name>


Output:
8. rm Command
The rm command is used to remove a file.

Syntax:
rm <file name>

Output:

9. cp Command
The cp command is used to copy a file or directory.

Syntax:
To copy in the same directory:

1. cp <existing file name> <new file name>

To copy in a different directory:

Output:
10. mv Command

The mv command is used to move a file or a directory form one


location to another location.

Syntax:

mv <file name> <directory path>


Output:

You might also like