Difference between revisions of "Talk:FreeBSD"

From Secure Computing Wiki
Jump to: navigation, search
m (Reverted edits by Exyhypele (talk) to last revision by Ecrist)
 
Line 1: Line 1:
----
+
That "Find the date of the newest file in a directory." command looks for the newest file in all the subdirectories too.  For "the newest file in a directory" I'd use <code>ls -tr /some/directory | tail -1</code>
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
+
----
+
=[http://ajycyvitik.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]=
+
----
+
=[http://ajycyvitik.co.cc CLICK HERE]=
+
----
+
</div>
+
That "Find the date of the newest file in a directory." command looks for the newest file in all the subdirectories too.  For "the newest file in a directory" I'd use &lt;code>ls -tr /some/directory | tail -1&lt;/code>
+
  
 
== I'll call you, and raise 1 ==
 
== I'll call you, and raise 1 ==
  
 
How about: ls -ltr | tail -1 | awk '{print $6" "$7" "$8}'
 
How about: ls -ltr | tail -1 | awk '{print $6" "$7" "$8}'

Latest revision as of 17:47, 26 November 2010

That "Find the date of the newest file in a directory." command looks for the newest file in all the subdirectories too. For "the newest file in a directory" I'd use ls -tr /some/directory | tail -1

I'll call you, and raise 1

How about: ls -ltr | tail -1 | awk '{print $6" "$7" "$8}'