Profile for mubarakho98


General information
Name: Mubarak
Location: India
Occupation: Student
Hobbies: football
Date registered 09.30.2017
Date of birth: 7. June 1999
Last online: 10.02.2017
Sex: male


Utilizing "2>" we re-guide the blunder yield to a document named "errorfile"

In this way, program yield isn't jumbled with blunders.

Case 2

Here is another case which utilizes discover proclamation -

find . - name 'my*' 2>error.log

Utilizing the "discover" charge, we are hunting the "." current registry down a record with "name" beginning with "my"

Redirection in Linux/Unix - Demystified!

Illustration 3 Let's see a more mind boggling case,

Server Administrators every now and again, list catalogs and store both mistake and standard yield into a document, which can be prepared later. Here is the order.

ls Documents ABC> dirlist 2>&1


which composes the yield from one record to the contribution of another document. 2>&1 implies that STDERR sidetracks to the objective of STDOUT (which is the document dirlist)

We are diverting mistake yield to standard yield which thus is being re-coordinated to document dirlist. Consequently, both the yield is composed to record dirlist

Redirection in Linux/Unix - Demystified!


Each document in Linux has a relating File Descriptor related with it

The console is the standard information gadget while your screen is the standard yield gadget

">" is the yield redirection administrator. ">>" attaches yield to a current record

"<" is the info redirection administrator

">&"re-guides yield of one record to another.

You can re-coordinate mistake utilizing its relating File Descriptor 2.

Latest activities
show details
no activities yet


Sign up, to leave a comment

0 Members and 10 Guests are online.

We welcome our newest member: fscoorg jerry
Board Statistics
The forum has 35560 topics and 36666 posts.