Home
Certification Preparation
CompTIA
Linux+
Help with Linux seem to be stuck on redirection ?
bhekisto
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
Find more posts tagged with
Comments
There are no comments yet
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Best Of