From LedHed's Wiki
Revision as of 00:02, 14 October 2006 by Ledhed (Talk | contribs)

Jump to: navigation, search

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


List the size of a file or Directory

du -hs <file or dir>

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

More to come...