Help with Linux seem to be stuck on redirection ?

bhekistobhekisto Junior MemberMember Posts: 2 ■□□□□□□□□□
Question
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
Question
Read the non-existent file named asdfgh, redirect errors to asdfgh.err, then number the lines in asdfgh.err.
my answer
2.ls -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.