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

Essential Linux Shell Commands Guide

The document outlines practical exercises for exploring Shell Commands in Linux, including commands like ls, pwd, mkdir, and rm. It also covers process creation, termination, signal handling, and inter-process communication in Linux, as well as an introduction to thread programming and multithreading. The aim is to enhance understanding of command-line operations and process management in a Linux environment.

Uploaded by

Shreya Singh
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)
4 views6 pages

Essential Linux Shell Commands Guide

The document outlines practical exercises for exploring Shell Commands in Linux, including commands like ls, pwd, mkdir, and rm. It also covers process creation, termination, signal handling, and inter-process communication in Linux, as well as an introduction to thread programming and multithreading. The aim is to enhance understanding of command-line operations and process management in a Linux environment.

Uploaded by

Shreya Singh
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

PRACTICAL 1

Aim: To explore Shell Commands in Linux

1. ls command: Displays information about files in the current directory.

2. pwd command: The pwd command is used to display the location of the current
working directory.

3. mkdir command: The mkdir command is used to create a new directory under any
directory.

4. rmdir command: The rmdir command is used to delete a directory.

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

6. touch command: The touch command is used to create empty files.

7. cat command: It can be used to create a file, display content of the file, copy the
content of one file to another file, and more.

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

9. id command: The id command is used to display the user ID (UID) and group ID
(GID).

10. uname command: The uname command is used to check the complete OS
information of the system.
11. locate command: The command is used to locate the files in the database.

12. clear command: It is a standard command to clear the terminal screen.

13. ps command: Used to check the active processes in the terminal.

14. echo command: Used to print something in the terminal.

15. sort command: The sort command is used to sort the output of the file.

16. cal command: View the calendar for a particular month in the terminal.

PRACTICAL 2
Aim: To implement all the process creation and termination in Linux.
1. PROCESS CREATION:

2. WAITING FOR PROCESS TERMINATION:

3. SIGNAL HANDLING:
4. PROCESS TERMINATION:

5. INTER PROCESS COMMUNICATION VIA PIPES :


PRACTICAL 3
Aim: To implement thread programming
In a process, a thread refers to a single sequential activity being executed. These activities
are also known as thread of execution or thread control. Now, any operating system
process can execute a thread. We can say, that a process can have multiple threads.
Multithreading is a technique used in operating systems to improve the performance and
responsiveness of computer systems. Multithreading allows multiple threads to share the
same resources of a single process.

You might also like