![]() Here is another example which uses find statement. Thus, program output is not cluttered with errors. The '' we re-direct the error output to a file named 'errorfile' If the sound configurations in your PC are correct, this command will play the file music.mp3 Input redirection The cat command reads the file music.mp3 and sends the output to /dev/audio which is the audio device. You can redirect standard output, to not just files, but also devices! If you do not want a file to be overwritten but want to add more content to an existing file, then you should use '>' operator. If there is an existing file with the same name, the redirected command will delete the contents of that file and then it may be overwritten.' Note: Use the correct file name while redirecting command output to a file. Here the output of command ls -al is re-directed to file 'listings' instead of your screen. The '>' symbol is used for output (STDOUT) redirection. With redirection, the above standard input/output can be changed.Ĭlick here if the video is not accessible
0 Comments
Leave a Reply. |