ubuntu命令搜集
记录一些我最近用到的命令行
安装.deb文件命令
$sudo dpkg -i xxx.deb
创建并执行cpp文件
$touch test.cpp
$gedit test.cpp
//编写test.cpp文件
$g++ test.cpp
//查看当前目录下有没有执行后的文件,一般默认为a.out
//如果想要制定输出文件的格式和名字,可以使用
//$g++ -o test.o test.cpp
//最后执行
//$./test.o
$./a.out
编译 benchmark文件
$g++ -Wall -std=c++14 benchmark_example.cpp -pthread -lbenchmark