<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY>
<DIV>
<DIV><FONT face=Arial size=2><SPAN class=970484303-06062006>Please help i am 
losing my mind ... UNIX Newbee</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=970484303-06062006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=970484303-06062006>
<P class=MsoNormal 
style="MARGIN: 0in 0in 0pt; mso-pagination: none; mso-layout-grid-align: none"><B><SPAN 
style="COLOR: #00007f; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana"><FONT 
size=3>23. How do you add a line to the end of an existing file "myfile" with 
date stamp. (1) <?xml:namespace prefix = o ns = 
"urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></SPAN></B></P><PRE><SPAN style="COLOR: #00007f"><BR>
<STRONG><SPAN style="FONT-FAMILY: 'Courier New'">Ans : </SPAN></STRONG></SPAN><TT><SPAN style="FONT-SIZE: 12pt; COLOR: red; FONT-FAMILY: Verdana">/home/clopez ed test.txt<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN style="FONT-SIZE: 12pt; COLOR: red; FONT-FAMILY: Verdana"><SPAN style="mso-spacerun: yes">        </SPAN>$a<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN style="FONT-SIZE: 12pt; COLOR: red; FONT-FAMILY: Verdana"><SPAN style="mso-spacerun: yes">        </SPAN>The last line of text.<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN style="FONT-SIZE: 12pt; COLOR: red; FONT-FAMILY: Verdana"><SPAN style="mso-spacerun: yes">        </SPAN>.<o:p></o:p></SPAN></TT></PRE><PRE><TT><SPAN style="FONT-SIZE: 12pt; COLOR: red; FONT-FAMILY: Verdana"><SPAN style="mso-spacerun: yes">        </SPAN>w<o:p></o:p></SPAN></TT></PRE>
<P class=MsoNormal 
style="MARGIN: 5pt 0in; mso-pagination: none; mso-layout-grid-align: none"><FONT 
size=3><TT><SPAN 
style="COLOR: red; FONT-FAMILY: Verdana; mso-ansi-font-size: 12.0pt; mso-bidi-font-size: 12.0pt"><SPAN 
style="mso-spacerun: yes">        
</SPAN>q</SPAN></TT><SPAN 
style="COLOR: red; FONT-FAMILY: Verdana"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal 
style="MARGIN: 5pt 0in; mso-pagination: none; mso-layout-grid-align: none"><B><SPAN 
style="COLOR: #00007f; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana"><FONT 
size=3>24. Display recent 10 java files, (with *.java extension) , in descending 
order by time, latest to oldest time. (1) <o:p></o:p></FONT></SPAN></B></P>
<P class=MsoNormal 
style="MARGIN: 0in 0in 0pt; mso-pagination: none; mso-layout-grid-align: none"><SPAN 
style="COLOR: #00007f"><BR><FONT size=3><FONT face="Times New Roman"><STRONG>Ans 
: </STRONG><o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal 
style="MARGIN: 0in 0in 0pt; mso-pagination: none; mso-layout-grid-align: none"><SPAN 
style="COLOR: #00007f"><FONT size=3><FONT 
face="Times New Roman"> <o:p></o:p></FONT></FONT></SPAN></P>
<P class=MsoNormal 
style="MARGIN: 0in 0in 0pt; mso-pagination: none; mso-layout-grid-align: none"><B><SPAN 
style="COLOR: #00007f; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana"><FONT 
size=3>25. How do you set only read permissions to user, group and others in 
octal mode for a file "myfile.txt" ? (2) <BR>Ans: 
<o:p></o:p></FONT></SPAN></B></P>
<P class=MsoNormal 
style="MARGIN: 0in 0in 0pt; mso-pagination: none; mso-layout-grid-align: none"><FONT 
size=3><B><SPAN 
style="COLOR: #00007f; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana">26. 
You observed that some of your group members are fiddling with your file  
"myfile" and you wanted to remove the read permission to your group. How do you 
do? (1) <BR><BR>Ans: </SPAN></B><B><SPAN 
style="COLOR: red; FONT-FAMILY: Verdana"><o:p></o:p></SPAN></B></FONT></P>
<P class=MsoNormal 
style="MARGIN: 0in 0in 0pt; mso-pagination: none; mso-layout-grid-align: none"><SPAN 
style="COLOR: #00007f"><FONT size=3><FONT 
face="Times New Roman"></FONT></FONT></SPAN> </P><SPAN 
style="COLOR: #00007f"><FONT size=3><FONT face="Times New Roman">
<P class=MsoNormal 
style="MARGIN: 0in 0in 0pt; mso-pagination: none; mso-layout-grid-align: none"><B><SPAN 
style="COLOR: #00007f; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana">28. 
Here is another long listing of a file. (1)<o:p></o:p></SPAN></B></P>
<P class=MsoNormal 
style="MARGIN: 0in 0in 0pt; mso-pagination: none; mso-layout-grid-align: none"><B><SPAN 
style="COLOR: #00007f; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana"><BR>-rw-r----- 
1 Y435678 odms 20 Sep 02 17:03 file.txt. </SPAN></B><B><SPAN 
style="COLOR: #00007f; FONT-FAMILY: Verdana"><o:p></o:p></SPAN></B></P>
<P class=MsoNormal 
style="MARGIN: 0in 0in 0pt; mso-pagination: none; mso-layout-grid-align: none"><SPAN 
style="COLOR: #00007f"> <o:p></o:p></SPAN></P>
<P class=MsoNormal 
style="MARGIN: 0in 0in 0pt; mso-pagination: none; mso-layout-grid-align: none"><B><SPAN 
style="COLOR: #00007f; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana">What 
are the owner permissions? </SPAN></B><SPAN 
style="COLOR: #00007f"><o:p></o:p></SPAN></P>
<P class=MsoNormal 
style="MARGIN: 0in 0in 0pt; mso-pagination: none; mso-layout-grid-align: none"><B><SPAN 
style="COLOR: #00007f; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana">read, 
execute <BR>read, write <BR>write, execute <BR>all since s/he is the owner 
<o:p></o:p></SPAN></B></P>
<P class=MsoNormal 
style="MARGIN: 0in 0in 12pt; mso-pagination: none; mso-layout-grid-align: none"><SPAN 
style="COLOR: #00007f"> <o:p></o:p></SPAN></P>
<P class=MsoNormal 
style="MARGIN: 0in 0in 12pt; mso-pagination: none; mso-layout-grid-align: none"><B><SPAN 
style="COLOR: #00007f; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana">Ans: </SPAN></B><SPAN 
style="COLOR: #00007f"><o:p></o:p></SPAN></P>
<P class=MsoNormal 
style="MARGIN: 0in 0in 12pt; mso-pagination: none; mso-layout-grid-align: none"><B><SPAN 
style="COLOR: #00007f; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana">29. 
The file “users_data” has the following contents :  (1) <BR>Tom  
Smith       7.00  15  105.00 
<BR>Rob  Sheryl       8.00 20  
160.00 <BR>Ken  Bradman  7.00 13   91.00 <BR>Peter 
Smith      6.00 15   90.00 <BR>Dennis  
Smith   8.00 13  104.00 <BR>Tom  
Dave        9.00 12 
 108.00 </SPAN></B><SPAN style="COLOR: #00007f"><o:p></o:p></SPAN></P>
<P class=MsoNormal 
style="MARGIN: 0in 0in 12pt; mso-pagination: none; mso-layout-grid-align: none"><B><SPAN 
style="COLOR: #00007f; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana">How 
do you sort the above file and redirect the output to another file called 
“sortedusers” <o:p></o:p></SPAN></B></P>
<P class=MsoNormal 
style="MARGIN: 0in 0in 12pt; mso-pagination: none; mso-layout-grid-align: none"><B><SPAN 
style="COLOR: #00007f; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana">Ans 
:<SPAN style="mso-spacerun: yes">  </SPAN></SPAN></B><SPAN 
style="COLOR: #00007f"><o:p></o:p></SPAN></P><o:p>
<P class=MsoNormal 
style="MARGIN: 0in 0in 0pt; mso-pagination: none; mso-layout-grid-align: none"><B><SPAN 
style="COLOR: #00007f; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana">20. 
What is the command to list files in a directory : (2) 
<BR><BR>A.     Having only three alphabets: 
<o:p></o:p></SPAN></B></P>
<P class=MsoNormal 
style="MARGIN: 0in 0in 0pt; mso-pagination: none; mso-layout-grid-align: none"><B><SPAN 
style="COLOR: #00007f; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana"><BR>Ans: 
<BR>B.     Starting with a digit and ending with a digit 
<o:p></o:p></SPAN></B></P>
<P class=MsoNormal 
style="MARGIN: 0in 0in 0pt; mso-pagination: none; mso-layout-grid-align: none"><SPAN 
style="COLOR: #00007f"><BR><STRONG>Ans: </STRONG><o:p></o:p></SPAN></P>
<P class=MsoNormal 
style="MARGIN: 0in 0in 0pt; mso-pagination: none; mso-layout-grid-align: none"><FONT 
face=Arial color=#000000 
size=2></FONT></o:p></FONT></FONT></SPAN></P></SPAN></FONT></DIV></DIV>
<DIV> </DIV>
<DIV align=left><FONT face="Book Antiqua" size=4><STRONG>Carlos 
Lopez</STRONG></FONT></DIV>
<DIV align=left><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left><FONT face=Arial>Computer Tech</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>phone: (440)396-7474</FONT></DIV>
<DIV align=left><FONT face=Arial size=2></FONT><FONT face=Arial size=2>email: <A 
href="mailto:lopez.carlos@adelphia.net">lopez.carlos@adelphia.net</A></FONT></DIV>
<DIV align=left><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV></BODY></HTML>