Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question

In the listing case of:

ls -al 2> myerror 

puts any errors into a file called 'myerror'.

If we wanted to keep all those error messages instead of using a single greater than sign, we would use double greater than signs.

ls -al 2>> myerror 

What does the 2>> do different than 2> ?

Answer
By using a single greater than sign, it would clobber the file 'myerror' if it exists, no different to standard output. By using a double greater than sign, it will append to the contents of the file called myerror.

Question

In the listing case of:

ls -al 2> myerror 

puts any errors into a file called 'myerror'.

If we wanted to keep all those error messages instead of using a single greater than sign, we would use double greater than signs.

ls -al 2>> myerror 

What does the 2>> do different than 2> ?

Answer
?

Question

In the listing case of:

ls -al 2> myerror 

puts any errors into a file called 'myerror'.

If we wanted to keep all those error messages instead of using a single greater than sign, we would use double greater than signs.

ls -al 2>> myerror 

What does the 2>> do different than 2> ?

Answer
By using a single greater than sign, it would clobber the file 'myerror' if it exists, no different to standard output. By using a double greater than sign, it will append to the contents of the file called myerror.
If you want to change selection, open document below and click on "Move attachment"

stdin, stdout, stderr
andard error I have to use 2> It's not optional to leave off the number two (2). Leaving it off would mean that the standard output would go to "myerror", including a 2 means standard error. <span>In the listing case of: ls -al 2> myerror puts any errors into a file called 'myerror'. If we wanted to keep all those error messages instead of using a single greater than sign, we would use double greater than signs. By using a single greater than sign, it would clobber the file 'myerror' if it exists, no different to standard output. By using a double greater than sign, it will append to the contents of the file called myerror. ls -al 2>> myerror Thus the contents of 'myerror' would not be lost. stdout, stderr and using the ampersand (&) With our new found knowledge, let's try and do a couple of things with the find command.

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.