Open main menu

CDOT Wiki β

Changes

Talk:Fall 2008 SPR720 Sample Exam Questions

161 bytes added, 01:17, 11 December 2008
7. Write a bash script which will print all of the files in your home directory which end in .ps -- you must be able to run the script from any directory.
16. Write a bash script to display all of the odd numbers from 1 to 99 with one space between each number.
===17. Describe what the PATH environment variable does. Write the syntax to add the directory "/usr/local/bin" to the PATH as the first directory searched.===ANSWER:Nes: PATH is a variable that tell where the shell what path to search when a command was requested to run. <pre>PATH=$PATH:/usr/local/bin</pre>
===18. What will this command do to the existing file "ocean"? date >ocean===