출력 명령
- p [변수명]
- p [함수명]
- p /[출력형식] [변수명]
- t : binary
- o: octal
- d: decimal
- u: unsigned decimal
- x: hexadecimal
- c: 최초 1바이트 값을 문자형으로 출력
- f: fixed point
- a: 가장 가까운 심볼의 오프셋
gcc `pkg-config --cflags --libs opencv` -o test test.c
sox -V input.wav -r 8000 -c 1 -s output.raw
qmake -project <--- 프로젝트 파일 생성 (.pro)
qmake <--- Makefile 생성
make <--- 소스파일 빌드
site : http://www.libreoffice.org/download
cd DEBS
sudo dpkg -i *.*
cd desktop-integration
sudo dpkg -i *.*
sudo gedit /etc/apt/sources.list
deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu hardy main deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu hardy main
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F9CB8DB03. 업데이트
sudo apt-get update
sudo apt-get install wine
(add-to-list 'load-path "~/.emacs.d/ecb-snap")3. emacs 재실행
(require 'ecb)
(require 'erc-join)안되면 나도 모름 ㅋㅋ
(erc-autojoin-mode 1)
(setq erc-autojoin-channels-alist
'(("freenode.net" "#ubuntu.ko")))
(erc :server "irc.ubuntu.com" :port 8001 :nick "imsu")
M-x erc이맥스 명령창에 다음 네 가지를 물어 볼 것이다. (하나씩 입력하고 엔터를 치면 된다.)
IRC server: irc.ubuntu.com우분투 채널의 주소는 #ubuntu-ko 이므로 채널에 입장한다는 명령을 한다.
IRC port: 8001
Nickname: imsu (현재 내컴퓨터 이름이 imsu 이며 우분투 채널에서도 같은 이름을 쓰고 있다.)
Password: (우분투 채널에서는 암호가 필요 없으므로 무시하고 Enter 를 친다.)
/JOIN #ubuntu-ko
sudo apt-get install texlive-latex-base
sudo apt-get install ko.tex
latex test.textest.dvi 파일이 만들어지면 성공!!!
evince test.dvipdf 로"안녕하세요!" 글자가 보일것이다 ^^
$displaystyle \lim_{n \to 0}$
$lim \limits _{n \to infty} \sum\limits_{k =1 } ^ {n}$난 만족 !! 으흐흐
gcc -Wall -o melong main.c `pkg-config gtk+-2.0 --cflags --libs`
Windows cmd
Ubuntu shell
- dir "*.h" "*.c" "*.s" /s/b | etags -
- find . -name "*.[chCH]" -print | xargs etags -a -o TAGS
emacs 명령어
- M-x visit-tags-table
| ETAGS-KEY-BINDINGS | |
M-! etags *.[ch] | index .c and .h files in current directory |
C-u M-x `visit-tags-table' | set index file for current buffer |
M-x `visit-tags-table' | globally set index file |
M-. | go to definition of symbol in index |
C-M-. | go to definition for a regular expression in index |
C-u M-. | go to next definition |
M-- M-. | go to previous definition |
M-* | return back to before you started |
M-x `tags-search' | go to entry for regular expression in index |
M-, | go to next entry in index |
M-x `tags-query-replace' | search and replace for regular expression |
M-TAB | complete tag at point |
C-u M-TAB | complete language symbol, avoid tags, at po |
C-s Search forwardC-r search backwardC-g return to where search started (if you are still in search mode)M-% query replaceSpace or yreplace this occurence
Del or ndon't replace
.only replace this and exit (replace)
,replace and pause (resume with Space or y)
!replace all following occurences
^back to previous match
RETURN or qquit replace
C-x r k : 사각 영역을 지우고, 그것을 저장한다.
C-x r d : 사각 영역을 지우지만 그것을 저장하지 않는다.
C-x r y : 마지막으로 지워서 저장했던 사각 영역을 삽입한다.
C-x r c : 사각 영역으로 표시된 부분을 빈 영역으로 만들고, 저장하지 않는다.
C-x r o : 표시된 부분에 빈 사각 영역을 삽입한다.
2. 문제 해결 : 아래와 같이 명령어를 입력한다.The program 'javac' can be found in the following packages:
* openjdk-6-jdk
* ecj
* gcj-4.4-jdk
* gcj-4.3
* jikes-classpath
* jikes-kaffe
* kaffe
* sun-java6-jdk
Try: sudo apt-get install <selected package>
javac: command not found
3. 다음과 같이 터미널에서 javac 을 입력하여 설치가 잘 이루어졌는지 확인해 보자$ sudo apt-get install sun-java6-jdk
$ javac
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are used
-classpath <path> Specify where to find user class files and annotation processors
-cp <path> Specify where to find user class files and annotation processors
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-endorseddirs <dirs> Override location of endorsed standards path
-proc:{none,only} Control whether annotation processing and/or compilation is done.
-processor <class1>[,<class2>,<class3>...]Names of the annotation processors to run; bypasses default discovery process
-processorpath <path> Specify where to find annotation processors
-d <directory> Specify where to place generated class files
-s <directory> Specify where to place generated source files
-implicit:{none,class} Specify whether or not to generate class files for implicitly referenced files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-Akey[=value] Options to pass to annotation processors
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime system
b. 예제 소스 입력$ vi HelloWorldApp.java
c. 소스 확인class HelloWorldApp{
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
d. javac 을 이용한 컴파일$ ls
HelloWorldApp.java
e. HelloWorldApp.class 파일이 생성되었는지 확인$ javac HelloWorldApp.java
f. 실행$ ls
HelloWorldApp.class HelloWorldApp.java
5. The end.$ java HelloWorldApp
Hello World!
넬슨 만델라 는 우분투를 다음과 같이 설명하였다.
옛날에 우리가 어렸을 적에 한 여행자가 마을에 들렸습니다. 하지만 그는 음식이나 물을 달라고 하지 않았지요. 오히려 자신에게 음식을 주고 환대해주는 마을 사람들을 말려야 했습니다. 이것이 바로 우분투입니다. 하지만 우분투의 전부는 아니지요. 우분투는 사람들 스스로 모든 문제를 감당하지 않아도 됨을 의미하지는 않습니다. 중요한 점은 당신이 속한 공동체가 모든 회원의 문제들을 같이 해결할 수 있도록 발전해 가는데에 당신이 무엇을 하느냐입니다. 이는 인생에 있어 중요한 문제입니다. 만약 한 사람이라도 공동체로부터 도움을 받을 수 있다면, 당신은 칭송받기에 충분한 굉장히 중요한 일을 한 것입니다.
변수 값 출력 명령 출력 명령 p [변수명] p [함수명] p /[출력형식] [변수명] 출력 형식 t : binary o: octal d: decimal u: unsigned decimal x: hexadecimal c: ...