bashHow to append stderr to stdout and log it to a file
cmd >> log.txt 2>&1ctrl + c| cmdcommand which output we're going to log | log.txtwe will append output to  | 
| 2>&1will redirect stderr to the same output | |
More of Bash
- How to check if a string starts with a specific value
- How to get time in "HH:II:SS" (hour:minute:second) format
- Binet's Formula in bash
- Quickly create big file
- How to extract file extension
- How to extract file name
- How to get time in "YYYY-MM-DD HH:II:SS" (year-month-date hour:minute:second) format
- Change directory permissions recursively using chmod in bash
- Output bold text in console
- Urlencode string in bash
See more codes...