101-400 LPI LPI Level 1 101 Junior Level Linux Certification Part 1 of 2
Question: 152 Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt? A. file /tmp/myfile.txt B. echo "Hello" >/tmp/myfile.txt C. sed -ie "s/1 /2/" /tmp/myfile.txt D. echo-n "Hello" »/tmp/myfile.txt E. touch /tmp/myfile.txt Answer: A Question: 153 Which of the following commands will print the last 10 lines of a text file to the standard output? A. cat -n 10 filename B. dump -n 10 filename C. head -n 10 filename D. tail -n 10 filename Answer: D Question: 154 Which of the following commands can be used to display the inode number of a given file? A. inode B. Is C. In D. cp Answer: B Question: 155 In Bash, inserting 2>&1 after a command redirects: A. standard error to standard input. B. standard input to standard error. C. standard output to standard error. D. standard error to standard output.