Help with Linux seem to be stuck on redirection ?

bhekistobhekisto Member Posts: 2 ■□□□□□□□□□
Output all data from /user/share/dict/linux.words to a file named words in the root of the filesystem, then number the lines and save the output as words.num
My answer
ls -l /user/share/dict/linux.words |nl > /root/words.num
Read the non-existent file named asdfgh, redirect errors to asdfgh.err, then number the lines in asdfgh.err.
my answer -l asdfgh |nl 2> asdfgh.err

l know my answers are wrong but cant seem to get it right
Sign In or Register to comment.