易截截图软件、单文件、免安装、纯绿色、仅160KB

有趣的linux命令(English)

Some humorous things to do to a UNIX system:
from the csh (c shell):
 
% make love
Make: Don't know how to make love. Stop.
 
% got a light?
No match.
 
% sleep with me
bad character
 
% man: Why did you get a divorce?
man:: Too many arguments.
 
% rm God
rm: God nonexistent
 
% make 'heads or tails of all this'
Make: Don't know how to make heads or tails of all this. Stop.
 
% make sense
Make: Don't know how to make sense. Stop.
 
% make mistake
Make: Don't know how to make mistake. Stop.
 
% make bottle.open
Make: Don't know how to make bottle.open. Stop.
 
% \(-
(-: Command not found.
 
% make light
Make: Don't know how to make light. Stop.
 
% date me
You are not superuser: date not set
Thu Aug 25 15:52:30 PDT 1988
 
% man rear
No manual entry for rear.
 
% If I had a ) for every dollar Reagan spent, what would I have?
Too many )'s.
 
% * How would you describe George Bush
*: Ambiguous.
 
% %Vice-President
%Vice-President: No such job.
 
% ls Meese-Ethics
Meese-Ethics not found
 
% "How would you rate Reagan's senility?
Unmatched ".
 
% [Where is Jimmy Hoffa?
Missing ].
 
% ^How did the^sex change operation go?
Modifier failed.
 
% cp /dev/null sex;chmod 000 sex
% more sex
sex: Permission denied
% mv sex show
% strip show
strip: show: Permission denied
 
% who is my match?
No match.
 
% set i="Democratic_Platform";mkdir $i;chmod 000 $i;ls $i
Democratic_Platform unreadable
 
% awk "Polly, the ship is sinking"
awk: syntax error near line 1
awk: bailing out near line
 
And from the bourne shell (sh):
 
$ drink < bottle;opener
bottle: cannot open
opener: not found
 
$ test my argument
test: too many arguments
 
$ "Amelia Earhart"
Amelia Earhart: not found
 
$ PATH=pretending! /usr/ucb/which


相关文档:

实战Linux Bluetooth编程(三) HCI层编程

1. HCI层协议概述:
HCI提供一套统一的方法来访问Bluetooth底层。如图所示:
从图上可以看出,Host Controller Interface(HCI)  就是用来沟通Host和Module。Host通常就是PC, Module则是以各种物理连接形式(USB,serial,pc-card等)连接到PC上的bluetooth Dongle。
在Host这一端:application,SDP,L2cap等协议 ......

linux命令行(一)

小技巧,对于linux老鸟来说不止一提,但是对于我这种新手还有很有帮助的。
1. 命令行的别名:
    sudo gedit ~/.bashrc
在打开的文件中使用:alias  简写命令=“要替换的命令”
如:alias l=“ls -l”
       alias install=“sudo apt- ......

LINUX期末复习 内存管理

①malloc函数
原型:extern void *malloc(unsigned int num_bytes);
头文件:#include <alloc.h>
功能:分配长度为num_bytes字节的内存块。
说明:如果分配成功则返回指向被分配内存的指针,否则返回空指针NULL。当内存不再使用时,应使用free()函数将内存块释放。
举例:
#inclu ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号