发布时间:2014-09-21 13:01:01
################################################################################# A smart Makefile template for GNU/LINUX programming## Author: SR# Date: ## Usage:# $ make Compile and link (or archive)# $ make clean .........【阅读全文】
发布时间:2014-09-21 13:00:55
src := $(shell ls *.c)objs := $(patsubst %.c,%.o,$(src))test: $(objs)gcc -o $@ $^%.o:%.cgcc -c -o $@ $<clean:rm -f test *.o ......【阅读全文】
发布时间:2014-09-21 13:00:50
操作系统:ubuntu10.04当运行makefile是,有如下错误: Makefile:**: *** missing separator. Stop.这个错误是有makefile中的tab的长度导致的,在makefile中的命令需要以tab键开始......【阅读全文】
发布时间:2014-09-21 13:00:47
netstat -tunlp 会显示所有端口和所有对应的程序,用grep管道可以过滤出想要的关键字段.列一下22端口占用的程序[root@leiwan tmp]# netstat -tunlp |grep 22tcp 0 0 0.0.0.0:42957 0.0.0.0:* LISTEN 2230/rpc.statd tcp 0 0 0.0.0.0:22 .........【阅读全文】