zhao-sun.com

April 9, 2004

Some useful commands

Filed under: Computer — blogadmin @ 10:51 pm


    Setup port forward
  • ssh -v -g -l user_name -L local_port:remote_ip:remote_port remote_ip

    Check for disk space

  • df -kl

  • du -sk *
  • translating a Java source file into a native executable using the GNU GCJ compiler

  • gcj –classpath . -g0 –main=HelloWorld -o HelloWorld.exe HelloWorld.java
  • DNS lookup utility

  • dig -mx yahoo.com
  • Network exploration tool and security scanner

  • nmap -sT 127.0.0.1
  • UNIX system error.h

  • /usr/include/sys/errno.h
  • returns the HTTP response headers from the named site

  • HEAD http://yad2yad.huji.ac.il/

  • Result:
    200 OK
    Cache-Control: max-age=0
    Connection: close
    Date: Tue, 10 Dec 2002 08:38:37 GMT
    Server: AOLserver/3.3.1+ad13
    Content-Type: text/html; charset=utf-8

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress