Week 6 – Bash Scripting Post author:Devendra Kumar Post published: Post comments:0 Comments using python to interact with the operating system week 6 answers Practice Quiz: Interacting with the Command Line 1. Which of the following commands will redirect errors in a script to a file? Answers user@ubuntu:~$ ./calculator.py >> error_file.txtuser@ubuntu:~$ ./calculator.py 2> error_file.txtuser@ubuntu:~$ ./calculator.py > error_file.txtuser@ubuntu:~$ ./calculator.py < error_file.txt 2. When running a kill command in a terminal, what type of signal is being sent to the process? Answers SIGINTSIGSTOPPIDSIGTERM 3. What is required in order to read from standard input using Python? Answers echo file.txtcat file.txtThe file descriptor of the STDIN streamStdin file object from sys module 4. _____ are tokens delivered to running processes to indicate a desired action. Answers SignalsMethodsFunctionsCommands 5. In Linux, what command is used to display the contents of a directory? Answers rmdircppwdls Next Please Share This Share this content Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Opens in a new window Devendra Kumar Project Management Apprentice at Google You Might Also Like Week 4 – Designing a complementary responsive website Practice Quiz: Lists Leave a Reply Cancel replyCommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) Save my name, email, and website in this browser for the next time I comment.