Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Nov 292010
 

How to simulate curl using wget command?

Answer:

To simulate a simple curl command using wget, e.g. curl http://www.google.co.uk:

# wget -O- http://www.google.co.uk

To view the HTTP response header (i.e. more verbose), e.g. curl -v http://www.google.co.uk:

# wget -O- -S http://www.google.co.uk

Nov 172010
 

Change user's timezone setting

Answer:

User can have their own timezone setting.

1. Firstly, you need to find out the timezone string by selecting interactively using the command tzselect command.

2. Append the string to the file ~/.profile

E.g.

# echo " TZ='Asia/Hong_Kong'; export TZ" >> ~/.profile