Standard Input,Output and Error Related

commandline session

NO WARRANTY
$echo content > file
$cat file
content
$echo content 1> file
$cat file
content
$echo content 2> file
content
$cat file
$
$echo content 0> file
content
$cat file
$echo content 3> file
content
$cat file
$ls /root/
ls: cannot open directory /root/: Permission denied
$ls /root/ 2> file
$cat file
ls: cannot open directory /root/: Permission denied
$ls /root/ 2>> file
$cat file
ls: cannot open directory /root/: Permission denied
ls: cannot open directory /root/: Permission denied


Video Tutorial Related (NO WARRANTY)