Modern shell (BASH) provides history functionality enable you to play with previous typed command easily. Native users us up-down arrows to locate the command line. While hacker's way is always through magic shortcuts.
This article is a good guide on how to play with shell history.
Here is a cheat sheet for shell history hacking
May 6, 2009
May 5, 2009
cygwin, wget and http_proxy
usually wget will automatically use the proxy setting defined in $http_proxy environment variable. Unfortunately, set http_proxy environment with command line tools (e.g. setx and setenv) does not work. Specifically, after the environment set up with the command line tools, if you type
But if you type
you get nothing.
I am pretty surprised here but no clue found on google. Fortunately, there is one way around. put the following line in the .wgetrc file in your home directory:
http_proxy=yourproxysetting
ftp_proxy=yourproxysetting
PS: the reason I need everything be put into command line script is I use a script to switch my work environment in corporate (where proxy effective) and home (no proxy at all).
c:\>set http_proxy
c:\>http_proxy=<your proxy setting>
But if you type
c:\>env | grep http_proxy
you get nothing.
I am pretty surprised here but no clue found on google. Fortunately, there is one way around. put the following line in the .wgetrc file in your home directory:
http_proxy=yourproxysetting
ftp_proxy=yourproxysetting
PS: the reason I need everything be put into command line script is I use a script to switch my work environment in corporate (where proxy effective) and home (no proxy at all).
Subscribe to:
Posts (Atom)