manac ham chơi

7 February, 2006

Tính mình hay wên, cứ ghi lại cho chắc ăn

Filed under: linux-unix — manac @ 8:45 am

tắt tiếng beep ( fbsd )
For the bell try sysctl hw.syscons.bell=0.
###xvnkb -A Vietnamese input keyboard for X-window ( fbsd )

# use xim module of gtk
export GTK_IM_MODULE=xim
# change locale to UTF-8, for example en_US.UTF-8
export LANG=en_US.UTF-8
# preload xvnkb core module
export LD_PRELOAD=/usr/local/lib/

Command External csh(1) sh(1)
export No No Yes


FC ( check package )

$for f in xorg-x11*.rpm; do echo “>>> RPM=$f”; rpm -qlp $f | grep bin | grep conf; done
wget /path/to/\(name\).*


gpg –keyserver –recv 580E2519969F3F57 && gpg –export –armor 580E2519969F3F57 | sudo apt-key add –

wget && sudo apt-key add geole-apt-key.gpg
wget && sudo apt-key add hawkwind.asc
wget && sudo apt-key add philip.asc


find -type f|xargs grep “xxx”


Downloading a whole directory from a site

wget -r -l0 –no-parent http://url/directorytodownload

$ wget -r --level=0 -k -a logfile

   Giải thích
   '-r --level=0'    nghĩa là download toàn bộ
   '-k'              nghĩa là chuyển các đường dẫn tuyệt đối thành tương đối
   '-a <filename>'   log file, search các lỗi 404 để biết link nào bị hỏng

example: wget -r l4 -np -nH

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at

%d bloggers like this: