Difference between revisions of "User:Scott/03"

From FreekiWiki
Jump to navigation Jump to search
Line 1: Line 1:
  Useful Directory Commands
+
  Useful Directory and File Commands
  
  Home Page   [[user:scott]]
+
  Home Page     [[user:scott]]
  Tech Support [[user:scott02]]
+
  Tech Support   [[user:scott02]]
  Network     [[user:scott04]]
+
Dir & Files    [[user:scott03]]
 +
  Network       [[user:scott04]]
 +
Troubleshoot  [[user:scott05]]
  
 
{{TOC limit|limit=1}}
 
{{TOC limit|limit=1}}
 
__TOC__
 
__TOC__
  
<h4>Directories</h4>
+
<h4>Working With Directories</h4>
  
 
==Locate Files==
 
==Locate Files==
Line 14: Line 16:
 
===DU===
 
===DU===
  
  du -h (directory usage)      (-h human readable)
+
  du -h | less                (directory usage -h human readable)
 
  du -h /home/bob/Downloads/  (list all directories in Download)
 
  du -h /home/bob/Downloads/  (list all directories in Download)
 
  du -ha /home/bob/Downloads/  (list all files & directories in Download)
 
  du -ha /home/bob/Downloads/  (list all files & directories in Download)
  
 
  du -ha /home/bob/Downloads/ | grep -i firefox  (find all instances of firefox and -i ignore case)
 
  du -ha /home/bob/Downloads/ | grep -i firefox  (find all instances of firefox and -i ignore case)

Revision as of 13:30, 17 October 2011

Useful Directory and File Commands
Home Page      user:scott
Tech Support   user:scott02
Dir & Files    user:scott03
Network        user:scott04
Troubleshoot   user:scott05

Template:TOC limit

Working With Directories

Locate Files

DU

du -h | less                 (directory usage -h human readable)
du -h /home/bob/Downloads/   (list all directories in Download)
du -ha /home/bob/Downloads/  (list all files & directories in Download)
du -ha /home/bob/Downloads/ | grep -i firefox   (find all instances of firefox and -i ignore case)