From LedHed's Wiki
Jump to: navigation, search
Line 2: Line 2:
 
<br>
 
<br>
 
<br>
 
<br>
pwd = (Print Working Directory) Displays the current directory you're in.
+
pwd = (Print Working Directory) Displays the current directory you're in.<br>
 
<br>
 
<br>
 
nmap = (Network Map) Utility that displays open network ports.<br>
 
nmap = (Network Map) Utility that displays open network ports.<br>
Line 8: Line 8:
 
<br>
 
<br>
 
<br>
 
<br>
grep = Hard to explain, Filtering utility.
+
grep = Hard to explain, Filtering utility.<br>
''Basic usage: grep 'FilterString' filename
+
''Basic usage: grep 'FilterString' filename<br>
 
''Usefull grep options:''
 
''Usefull grep options:''
 
  -i 'FilterString'  =  case insensitive
 
  -i 'FilterString'  =  case insensitive
Line 17: Line 17:
 
  ['FilterString1'\|'FilterString2'\|'FilterString3']  Multiple Filters
 
  ['FilterString1'\|'FilterString2'\|'FilterString3']  Multiple Filters
 
<br>
 
<br>
List the size of a file or Directory
+
du = List the size of a file or Directory<br>
du -hs <file or dir>
+
''Basic usage: du -hs <file or dir>''<br>
-h = human readable
+
''Usefull du options:''
-s = summarize (Display only total for each arguement)
+
-h                 = human readable
 +
-s                 = summarize (Display only total for each arguement)
  
 
More to come...
 
More to come...
  
 
[[Category:Linux]]
 
[[Category:Linux]]

Revision as of 00:06, 14 October 2006

Linux Commands that I rarely use and often forget.

pwd = (Print Working Directory) Displays the current directory you're in.

nmap = (Network Map) Utility that displays open network ports.
Basic usage: nmap 192.168.0.1

grep = Hard to explain, Filtering utility.
Basic usage: grep 'FilterString' filename
Usefull grep options:

-i 'FilterString'   =   case insensitive
-b #                =   Display # number of lines BEFORE a match
-a #                =   Display # number of lines AFTER a match
-v                  =   Invert Match or Exclusion
['FilterString1'\|'FilterString2'\|'FilterString3']  Multiple Filters


du = List the size of a file or Directory
Basic usage: du -hs <file or dir>
Usefull du options:

-h                  = human readable
-s                  = summarize (Display only total for each arguement)

More to come...