Difference between revisions of "Trillex linux 1"

From Teknologisk videncenter
Jump to: navigation, search
(New page: The command "find" find files on the filesystem. Example: find / # List all files find /etc # List all files under the /etc directory find / | wc -l ...)
 
m (Making it pretty.)
Line 1: Line 1:
The command "find" find files on the filesystem.  
+
The command '''find''' find files on the filesystem.  
  
 
     Example:
 
     Example:
Line 6: Line 6:
 
     find / | wc -l    # List all files, but don't show them on the screen
 
     find / | wc -l    # List all files, but don't show them on the screen
 
                       # The "|" is a pipe which directs output to the
 
                       # The "|" is a pipe which directs output to the
                       # "wc" command as input. wc is wordcount. The toggle
+
                       # ''wc'' command as input. ''wc'' is ''wordcount''. The toggle
 
                       # "-l" means count lines.
 
                       # "-l" means count lines.

Revision as of 12:41, 9 February 2009

The command find find files on the filesystem.

   Example:
   find /            # List all files
   find /etc         # List all files under the /etc directory
   find / | wc -l    # List all files, but don't show them on the screen
                     # The "|" is a pipe which directs output to the
                     # wc command as input. wc is wordcount. The toggle
                     # "-l" means count lines.