Problems 5
Home Up Review Problems 1 Problems 2 Problems 3 Problems 4 Problems 5 Problems 6 Problems 7 Problems 8 Problems 9 Problems 10 Problems 11 Problems 12 Problems 13 Problems 14 Problems 15 Problems 16 Subnets

 

Command Skills

On Solaris, if you read the comments in the system copy of the script file /usr/dt/config/sys.dtprofile, you'll note that most of this file is copied to the file .dtprofile in your home directory the first time you log in to your desktop.

  1. On what day and at what time was your .dtprofile file created?
  2. Use a Unix pipeline to give a line, word, and character count of the difference between your .dtprofile and the original file in the system location.
  3. Show all the lines containing the Unix /dev/null pathname in your .dtprofile, each preceded by its line number in the file. What is the pathname /dev/null used for in your .dtprofile?
  4. If you have errors in your .profile during a desktop login, the errors are not visible on the screen. Also, any output generated by your .profile (for example, from "echo" commands) will not be visible. Into what file in your account does all this output get logged?

Put an echo command into your .profile. Log out; log back in. Look at the log file and verify that the output from the echo command did go into the log file as you were logging in to the desktop.