0% found this document useful (0 votes)
48 views3 pages

Linux Synopsis Raman

This document discusses control structures and file descriptors in Bash. It defines control structures as consisting of tests and commands that execute if the test is successful. There are two types of control structures: conditional and loop. File descriptors are unique numbers that identify open files, with the first three being standard input, output, and error. File descriptors can be directly accessed in Bash.

Uploaded by

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

Linux Synopsis Raman

This document discusses control structures and file descriptors in Bash. It defines control structures as consisting of tests and commands that execute if the test is successful. There are two types of control structures: conditional and loop. File descriptors are unique numbers that identify open files, with the first three being standard input, output, and error. File descriptors can be directly accessed in Bash.

Uploaded by

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

LINUX

SYNOPSIS
Submitted To : Miss. Pallvi Arora
CONTROL STRUCTURE AND FILE DESCRIPTORS IN BASH
RAMANPREET KAUR
REGISTRATION NO. 12209633

CONTROL STRUCTURES:
In Linux , we can control the execution of Linux commands in shell
script with the help of Control Structure. A control structure
consists of two major components :
1. Test
2. Command
If the Test is successful , then the commands are
executed .There are two different kinds of Control structure :
1. Conditional control structures
2. Loop control structure

FILE DISCRIPTORS :

A File descriptor is a number that is unique


identifies an open file in a computer’s operating system. It
describes a data source and how that may be accessed. When a
program asks to open a file , the kernel :
1. Grant access
2. Creates an entry in the global file table.
3. Provides the software with the location of that entry.
The descriptor identified by a unique
non-negative integer. In UNIX like operating system, the first
three file descriptors are :
1. STDIN(standard input)
2. STDOUT(standard output)
3. STDERR(standard error)
File Descriptors may be directly accessed by
using BASH.

You might also like