最近学习内容 Linux编译链接命令一条有用的删除可执行文件的bash命令gcc 在macos 的编译选项,其中-g会生成一个.dSYM文件夹to long don’t read 工具的使用gnu bintuils 的使用,但是很可惜macos上的是Mach-O,不是ELFaxel多线程下载器和其余的curl, wget, 这里应该看一下tldr # 首先有handy目录,handy/handy.hpp 其次有libhandy_s.a 静态库才能编译成功 clang++ 10m-cli-new.cc -o 10m-cli -DOS_MACOSX -Wno-deprecated-declarations -DLITTLE_ENDIAN=1 -std=c++11 -I./handy -lhandy_s -L./ -vclang++ 10m-svr-new.cc -o 10m-svr -DOS_MACOSX -Wno-deprecated-declarations -DLITTLE_ENDIAN=1 -std=c++11 -I./handy -lhandy_s -L./ -v# echo $? # 如果上条命令成功了 if [ $? -eq 0 ];thenecho "==============================OK==============================" fi# 用户权限为1就删除,就是如果文件是可执行的就删除 find . -perm +100 -type f -deletegcc -g -v -c hello.c readelf -h hello.o readelf -SW hello.o objdump -S hello.ogcc -g -v ... tldr -v grep # man advance hexdump / od / file <file name> strings <bin-file or file>axel -n 10 <url> wget https://baidu.com/index.html -S -O haha # verbose output curl: --location --proxy --silent --show-error -O -kIsS --head