bregman-arie / devops-exercises

Linux, Jenkins, AWS, SRE, Prometheus, Docker, Python, Ansible, Git, Kubernetes, Terraform, OpenStack, SQL, NoSQL, Azure, GCP, DNS, Elastic, Network, Virtualization. DevOps Interview Questions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mistake in Linux io redirections question

pansa opened this issue · comments

commented

Q: "Demonstrate Linux stderr to stdout redirection"
has mistake in answer:

" yippiekaiyay 1>&2 "

  • it must be "cmd 2>&1" . 1 = default STDOUT descriptor, 2 = STDERR , 0 = STDIN

please try "command &> file"

FIxed