pwd:显示当前目录的路径
ll:显示当前目录所有文件
cd :进入子目录cd ..
cat filename :打开文件
gcc -c filename
g++ -c filename
gcc filename -o exefile
g++ filename -o exefile
g++ -g filename -o exefile 添加调试信息
gdb exefile
gdb里面的命令
set args 传参
set args -cfg /home/chatDev/LogicServer_Chat/bin/LogicServer_Chat.ini -log /home/chatDev/LogicServer_Chat/bin/LogicServer_Chat.ini.log
l:list
b:breakpoint + linenum
r:run
s:stepinto
n:next
f:finish
c:continue
q:quit
p: print var
w:watch var