COSCUP2020
入門
TR313
mkdir ~/demo
cd ~/demo
git clone https://github.com/pcman-bbs/pcmanx
git clone https://github.com/zzz0072/rtenv-1
gvim pcmanx/src/core/termdata.cpp
Demo last slide
Vertical visual mode
?iw
gvim Python_Exercises/03_IO/io.py
cd demo/rtenv-1
grep "status =" * -rn
ack "status ="
make clean
make
make 2>&1 | tee log
cat log | less
script
make clean
make
exit
less typescript
terminator # split/new tab
tig
mc
apt-file search png.h
apt-file search png.h |grep \/png\\.h$
vim a # edit
cp a b
vim b # edit
meld a b
# cat ~/bin/upc.sh
# upc.sh
find -type f \( -name *.c -o -name *.h -o -name *.cpp -o -name *.java -o *.S -o *.s -o hpp \) > cscope.file
cscope -b -q -k -i cscope.file
gvim src/file.c
# cs find c/e
# ctrl+]/t
cd ~/demo/pcmanx/
doxywizard &
firefox html/index.html &
rm -rf ~/demo/test/test
cd ~/demo
mkdir -p test/test
cd test/test
touch a.c
i=0 ; while [ $i -lt 10 ] ; do cp a.c $(basename a.c .c)${i}.c ; i=$((i+1)); done
ls
cd ~/demo
find |grep \\.h$
cd test/test
for i in $(ls); do echo ls -al $i ; done
for i in $(ls); do ls -al $i ; done
for i in $(ls); do mv $i ${i}.bak ; done
cd ~/demo/rtenv-1
find -name "*.h" -exec grep ETH_DMASR_RBUS {} \; -print
cd /usr/lib/x86_64-linux-gnu
find | grep \\.a$ | xargs nm -A 2>/dev/null |grep "snprintf$" | grep T
ld --verbose | grep SEARCH | tr "; " "\n\r"
echo "" | gcc -E -xc - -dM -v
echo "int main(){}" > a.c
rm -rf ~/demo/test/test
cd ~/demo
mkdir -p test/test
cd test/test
gcc --save-temps a.c
ls
cat a.i
cat a.s
file a.o
nm a.out
strace -f ls 2>&1 |grep write
strace -f -s 256 ls 2>&1 |grep write
LD_DEBUG=all ls
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing