Computer scienceSystem administration and DevOpsCommand lineWorking with files

File descriptors and pipes

Redirect errors

Report a typo

Write a script that will redirect the stderr of the run command to the /tmp/errors.txt file.

Sample Input 1:

[warn] someone tried to access your computer

Sample Output 1:

[warn] someone tried to access your computer
Write a program in Shell
#!/usr/bin/env bash
solve() {
run # add your redirections here
}
___

Create a free account to access the full topic