rpm -i softwarename(s)Erase
rpm -e softwarename(s)Query
rpm -q softwarenamerpm documentation
Software, web, and programming tips: C++, Java, C, Linux, Windows, Cygwin, Firefox, Vim, WWW, RSS
Usage | Effect |
---|---|
inside a function | remains even after the function call is long gone |
modify a global variable | private to a certain file |
modify a function | making those functions visible only to the file itself |
xorg-x11-f100: Cygwin/X 100 dpi fontsIn your C:\cygwin\usr\X11R6\bin\startxwin.bat, near the bottom of the file, append "-dpi 100" to this line:
%RUN% XWin -multiwindow -clipboard -silent-dup-error
xhost +You can add this to your .bashrc
C:\cygwin\usr\X11R6\bin\startxwin.batin your startup folder (e.g. Start->All Programs->Startup)
%RUN% xterm -e /usr/bin/bash -l
rm -rf dir_name
cscope -Rb
.vimrc
to" Recursively set the path of the project
set path=$PWD/**
sudo apt-get install build-essential
set expandtab
orset et
set shiftwidth=4
orset sw=4
set tabstop=4
orset ts=4
~/.vimrc
:autocmd BufNewFile,BufRead *.java,*.pl,*.c,*.h,*.cc,*.cpp,*.hpp set sw=4 ts=4 et
find . -name <file-pattern> -exec <command> {} \;
find . -name *.txt -exec grep -Hn hello {} \;
#!/bin/bash
find . -name *.[ch]pp -exec grep -Hn "$1" {} \;
@echo off
C:
chdir C:\cygwin\bin
rxvt -e bash --login -i
.Xdefaults
rxvt*foreground:whiteOther rxvt options can be found here.
rxvt*background:black
rxvt*font: Lucida Console-14
rxvt*scrollBar_right: true
~/.inputrc
# Home Key
"\e[7~":beginning-of-line
# End Key
"\e[8~":end-of-line
# Delete Key
"\e[3~":delete-char
# Insert Key
"\e[2~":paste-from-clipboard
~/.bashrc
export INPUTRC=$HOME/.inputrc