Coding, Linux, Hacking Security, Learning!
Archive for September, 2008
Emacs Tutorial for beginning!
Sep 30th
C-x C-f open a new file
C-x C-s save the current file
C-x C-c exit the emacs (but save files first)
#command line Emacs
emacs -nc
#Open Split Horizonal Window
Ctrl-2
#Open Split Veritcal Window
Ctrl-3
#Maximize Window
Ctrl-0
How to start Emacs in console mode?
Sep 30th
Here is the command to start Emacs in mode! since emacs has the worst font!
in console,
emacs -nc
How to update your source code from cvs in Debian or Ubuntu
Sep 16th
Here is the command how to update your source code from CVS
cvs update -d
aptitude hight leve interface Debian package manager
Sep 11th
aptitude is the nice hight level interface Debian package manager
just type aptitude in console, you will bring up the x11 interface to install, delete ….packages in Debian
Debian Package tool
Sep 11th
dpkg-buildpackage -rfakeroot -b
dpkg-buildpackage -rfakeroot -nc (only compile changed)
dpkg-get -install packagename
how to switch to console mode in Ubuntu
Sep 10th
use Ctrl-Alt-F1 switch to console mode
use Ctrl-Alt-F 7 switch to console Desktop mode
How to search pattern in file or files and print the file name out in linux with grep command
Sep 10th
Here is how:
grep -l ‘pattern’ myfile
e.g
search ‘include’ in all c++ source files in the current directories
grep -l ‘include’ *.cpp
print filename and the line that matchs the pattern
grep -H ‘include‘ *.cpp
Checking for Qt… configure: error: Qt (>= Qt 3.0) (headers and libraries) not found. Please check your installation!(Ubuntu)
Sep 9th
“Qt (>= Qt 3.0) (headers and libraries)”(Ubuntu 8.04)
sudo apt-get install kde-devel
How to Install Midnight Commander in Ubuntu
Sep 9th
command to install Midnight Commander in Ubuntu
sudo apt-get intall mc
How to install package for Debian (apt-get install packagename)
Sep 9th
Here is the command to install package in Debian