Table of Contents

Command Line

lsof -i @12.22.178.149:1-1024   // list open ports

Printing - in Mozilla

lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}

gs -q -sDEVICE=pswrite -sOutputFile=- -dNOPAUSE -dBATCH -dLanguageLevel=1 -dMozConvertedToLevel1=true - | lpr [OPTIONS]

Mirror Website

wget

$ wget -k -N -r -p www.ece.utexas.edu/~garg/dist/jbkCode.html .

  • -k (–convert-links) for local viewing, relative links
  • -N (–timestamping)
  • -r (-recursive)
  • -l 2 (–level=2) recursion max depth level 2 (default 5)
  • -p (–page-requisites) necessary to properly render the page

provides

$ ls -R | grep :
.:
./dprogs:
./jbk:
./progs:
./www.ece.utexas.edu:
./www.ece.utexas.edu/~garg:
./www.ece.utexas.edu/~garg/dist:
./www.ece.utexas.edu/~garg/dist/dprogs:
./www.ece.utexas.edu/~garg/dist/jbk:
./www.ece.utexas.edu/~garg/dist/progs:

$ wget -k -N -r -l 2 -nH -nd http://www.ece.utexas.edu/~garg/dist/dprogs/

  • -nd (do not create directories)
  • -nH (–no-host-directories) and –cut-dirs=#

provides

all files in current directory, including sub directories of URL path?

httrack

  • httrack –mirror URL

ls

  • Which files are new? After a new install of some web application, I wanted to see which files were new and perhaps which files had I added to my installation. You can use the -1 option to ls to get all the files output 1 per line and run a diff.
 $ ls -1 dir_old/ > d1
 $ ls -1 dir_new/ > d2
 $ diff d1 d2
 
howto/cli.txt · Last modified: 2006/08/19 07:39 by 67.141.101.146
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki