I understand the ls part and redirection operator > .But what does overall command do?
I understand the ls part and redirection operator > .But what does overall command
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
By default, when you use
>it redirectsSTDOUT.STDOUTis identified by1, so, for example, the two following command does the same:Probably you already have seen sometimes command like this:
command > error.file 2>&1It means: Redirect the default channel (STDOUT) to error.file and redirect
2into the same place. That2stands forSTDERR.In your case you’re redirecting only
STDERR.