文件: root - diary - 2008 - 2008-12 - 2008-12-10_19.20PM.html
标签: 计算机, Computing, | 英文 | 主页 | 类别: 计算机科学 | 24824 次阅读, 45429 次搜索 | 350 个单词
| 浏览 | 博客存档
标签: 计算机, Computing, | 英文 | 主页 | 类别: 计算机科学 | 24824 次阅读, 45429 次搜索 | 350 个单词
| 浏览 | 博客存档
%yes
y
y
y (Ctrl+C)
%
yes .... now i will talk about something about "yes" utility...
in linux,, usually located at /usr/bin/, there is a file called "yes"
it utterly does nothing but continues output of "y"
the size of this file is around 19kb (in OpenSUSE 11)
i recommend you try this command... hehe... don't login as root,,
now,,, i'll talk about making "yes" on windows ....
here is the one purely done in "debug"
>
this yes quits when you press "Q" or "q"
or you can write one by a simply loop
or in batch file
or if you write a keypressed.com which returns the key to command line...
now i am attaching binary files... just for fun!
yes.com (37 Bytes)
yes15b.com (15 Bytes)
keypressed.com (19 Bytes)
You see, they are pretty small.
标签: 计算机, Computing, | 英文 | 主页 | 类别: 计算机科学 | 24824 次阅读, 45429 次搜索 | 350 个单词 y
y
y (Ctrl+C)
%
yes .... now i will talk about something about "yes" utility...
in linux,, usually located at /usr/bin/, there is a file called "yes"
it utterly does nothing but continues output of "y"
the size of this file is around 19kb (in OpenSUSE 11)
i recommend you try this command... hehe... don't login as root,,
yes | rm -i *
now,,, i'll talk about making "yes" on windows ....
here is the one purely done in "debug"
>
this yes quits when you press "Q" or "q"
or you can write one by a simply loop
loop:
mov dx, offset yes
mov ah, 9
int 21h
jmp loop
yes db "yes", 0d, 0a, "$"
or in batch file
@echo off
REM A yes utility on windows
REM Zhihua Lai, 07/Dec/2008 5:05am
REM Free to use, just for fun!
:yes
echo yes
goto yes
or if you write a keypressed.com which returns the key to command line...
@echo off
REM A yes utility in batch file with keypressed.com
REM Written by Zhihua Lai, 10-Dec-2008, 2:49
REM Just For Fun!
:yes
echo yes
keypressed
set key=%errorlevel%
if %key% EQU 81 goto eof
if %key% EQU 113 goto eof
goto yes
:eof
set key=
now i am attaching binary files... just for fun!
yes.com (37 Bytes)
yes15b.com (15 Bytes)
keypressed.com (19 Bytes)
You see, they are pretty small.
猜您喜欢...
- Linode Support Ticket 10029540 - Other - Important Notice Regarding Ubuntu 17.10 Image
- Daily Interview Problem: Running Median
- Daily Interview Problem: Buddy Strings
- Two Tricks of Delphi
- Daily Interview Question: Word Search
- New Vulnerabilities (CVE-2016-4581) have been detected in CentOS/RHEL/CloudLinux 7
- How to Play WAV music under DOS?
- Daily Interview Problem: Find the Number of Islands
- [Daily Problem] Witness of The Tall People
- Floor and Ceiling of a Binary Search Tree
©2006~2024 牛排过熟 - 0.01135 秒 - 1821.941 KB/s - 39 在线 内存: 494.48 KB
18:54:01 up 13 days, 18:33, 2 users, load average: 0.98, 0.86, 0.73 - 服务器 PHP 版本号: 7.4.33
牛排怎么做才好吃? | <meta name="机器人" content="索引, 跟踪">
18:54:01 up 13 days, 18:33, 2 users, load average: 0.98, 0.86, 0.73 - 服务器 PHP 版本号: 7.4.33
评论 (0)
读写完全 - 一般 - 最小 - 表格 - 所有评论 - 统计
当前页暂时没有评论。