`
astroxl
  • 浏览: 54524 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

Unix-like utilities for Windows

阅读更多

原文:http://www.geocities.com/lc_castro/winnt.htm

 

<!-- following code added by server. PLEASE REMOVE --> <!-- preceding code added by server. PLEASE REMOVE -->

Unix-like utilities for Windows

After almost 5 years, I rewrote some of these utilities. I received emails from many people that found them useful, and I'm glad they took the time to write me!.

Some of the programs were updated to work with bigger capacity disks, and other were just fixed for some security issues I found.

The source code was cleaned and now compiles under Microsoft Visual Studio 2005 (the previous version was written on Visual Studio 6.0)

These are some Unix-like (they are similar to some tools found in the Un*x world) utilities that I wrote. They run in an NT/2000/XP/2003 operating systems. These tools are command-line based.

I have received several requests for it, so the source code is included now. The tools are being distributed under the GNU General Public License (GNU GPL) terms.

You can find all these tools packed on a single file: LCUtils.zip .

Note: The DOS and 16-bit Windows version are not longer supported, and I removed them from this site

Items with the NEW! logo have new features.

Filename Description Output sample
mt.exe
12-aug-2008
This is a port from the Unix "mt" command. It gives you some control on a Tape device. It implements commands to rewind the tape, set the block size, forward or back a specified count of blocks, erase the tape, eject the tape, etc. It has only been tested with a DAT drive.
D:\>mt
mt - Version 1.0.1
Copyright (C) 2000-2008, Luis C. Castro Skertchly (lc_castro@yahoo.com)
Opening device \\.\TAPE0... Ok

Drive parameters:
ECC = FALSE
Compression = TRUE
DataPadding = FALSE
ReportSetMarks = TRUE
Default Block Size = 16384
Minimum Block Size = 1
Maximum Block Size = 131072
Maximum Partition Count = 2
EOT Warning Zone Size = 0

Tape parameters:
Capacity: 2000129024
Block Size: 0
Partitions: 1
Write protected: No
tapecopy.exe
12-aug-2008
Makes a raw copy of a tape device. It support writing/reading data from/to standard input/output like many Unix tools. It can be used with the GNU tar tools to write or read tar tapes from Unix boxes in a NT box.

Now completly in english! (The previous version was in spanish, but as many users of these tools are international, I decided to use english).

D:\>tapecopy
tapecopy - Version 1.5
Copyright (C) 2000-2008, Luis C. Castro Skertchly
Usage: tapecopy [-v] [-b block] [-r] -x|c [-d devname] [-f filename]
  -v : Verbose
  -b : Specify tape block size in bytes (0 = autodetect)
  -r : Rewind tape before start
  -x : Extract data from tape
  -c : Copy data to tape
  -d : Specify the tape device name (default = TAPE0)
  -f : filename from/to where data will be copied

Valid device names are:
   TAPE0
   TAPE1
df.exe
26-jul-2007
Shows the free space on disk, also it shows: cluster count, cluster size, free clusters.
D:\>df
df - Version 2.0
Copyright (C) 2000-2007, Luis C. Castro Skertchly
Drive D:
                  8 Sectors per cluster
                512 Bytes per sector
         23,039,218 Clusters
         14,150,108 Free Clusters
         92,156,872 KB total disk space
         56,600,432 KB free
kill.exe
12-feb-2003
Terminates a process using its process ID (PID). The PID can be obtained from the task manager process list or using the "ps.exe" or "psnt.exe" utilities. n/a
logoff.exe
12-feb-2003
Terminates a Windows session and optionally reboots or power down the system. n/a
gboot32.exe
26-jul-2007
Gets the boot record of a floppy disk or partition and writes it on a file. Very useful to create entries at the BOOT.INI file.

 

D:\>gboot32 C: BOOT.DAT
Reading boot sector from \\.\C:...
writing bootprogram BOOT.DAT...
mkboot32.exe It creates a boot record on a floppy disk or disk partition based on a boot-strap code in a file. Very useful to create MS-DOS boot disks from Windows NT. In order to do that, first get a bootable DOS disk and run "getboot.exe" to get the boot record. Then you can use "mkboot" to write that boot record in a different disk.

 

D:\>mkboot32 boot.dat A
Reading BPB from \\.\A:...
Reading bootprogram boot.dat...
Writing new boot sector on \\.\A:...
msgbox.exe
12-feb-2003
Displays a Windows Message Box and waits for the user to click the OK button.
ps.exe
12-feb-2003
This tool is similar to the "ps" command found on every Unix system. It shows a list of the running processes, its Process ID (PID), Parent Process ID (PPID), number of threads running (THR), process priority (PR), and (when possible) the full path to the executable image.
D:\Users\Luis\VC\UTIL>ps
PS - Process list
(C) 2001, Luis C. Castro Skertchly

PID  PPID  THR PR NAME
   0    0   2   0 [System Process]
   4    0  80   8 System
 556    4   3  11 smss.exe
 624  556  13  13 csrss.exe
 648  556  20  13 winlogon.exe
 696  648  15   9 services.exe
 708  648  18   9 lsass.exe
 860  696  20   8 svchost.exe
 960  696  10   8 svchost.exe
1048  696   5   8 svchost.exe
1128  696  62   8 svchost.exe
1144  696   4   8 svchost.exe
1216  696   7   8 svchost.exe
1276  696  12   8 spoolsv.exe
1392  696   0   8 avp.exe
1424  696  16   8 inetinfo.exe
1440  696   5   8 mdm.exe
1468  696   3   8 nvsvc32.exe
1512  696   4   8 retrorun.exe
1648  696   6   8 svchost.exe
1676  696   6   8 symlcsvc.exe
1056 1008  14   8 C:\WINDOWS\Explorer.EXE
2192 1056   0   8 avp.exe
2244 1056   1   8 C:\WINDOWS\system32\ctfmon.exe
2264 1056   2   8 C:\Program Files\HDD Thermometer\HDD Thermometer.exe
2296 1056   3   8 C:\Program Files\SpeedFan\speedfan.exe
2868 3292   1   8 C:\WINDOWS\system32\notepad.exe
3036 1056  13   8 C:\PROGRA~1\MOZILL~1\FIREFOX.EXE
 500 3292   1   8 D:\Users\Luis\VC\UTIL\ps.exe
rcopy.exe
26-jul-2007
Raw copy tool. It copies raw data from/to a device, just as if it were just another file. It works with floppy disks, CD-ROM (reading only) and tape devices.
For Unix users, it is very similar to do:
dd if=/dev/rfloppy of=filename.dat
D:\>rcopy \\.\CDROM1 cdimage.iso
rcopy - Version 1.2
Copyright (C) 2000-2007, Luis C. Castro Skertchly
WARNING: Can't get source file size
Copying \\.\CDROM1 to disk.iso (block size = 1024 bytes)
3 MB copied...
getreg.exe
12-feb-2003
Gets a Registry key value from the command-line interface. Useful when writing batch scripts.
D:\>getreg LM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CSDVersion
Service Pack 5
setreg.exe
12-feb-2003
Sets a Registry key value from the command-line interface. Useful when writing batch scripts. To change the default IE download directory run:
D:\>setreg CU "Software\Microsoft\Internet Explorer" "Download Directory" D:\DOWN
which.exe
27-jul-2007
Searches an executable file in the PATH and prints its current location.
D:\>which dnsadmin
D:\WINNT\system32\dnsadmin.exe
wmem.exe
26-jul-2007
Displays statics about memory usage, processor type and speed and Windows directories location.
D:\>wmem
37% Memory utilization
Total physical memory:        1,046,252 Kb
Phys. memory available:         653,728 Kb
Page file size:               2,129,864 Kb
Available in page file:       1,822,220 Kb
Virtual Memory size:          2,097,024 Kb
Free Virtual Memory:          2,084,124 Kb
Page size:                        4,096 bytes
Minimum Appl. Address:       0x00010000
Maximum Appl. Address:       0x7ffeffff
Number of processors:                 2
Allocation Granularity:          65,536 bytes
Processor: Intel  2593 MHz Pentium Family 15 Model 2 Stepping 9
C:\WINDOWS is Windows directory
C:\WINDOWS\system32 is System directory
  
wver.exe
26-may-2003
Displays Windows version
D:\>wver
Microsoft Windows NT 4.0 (Build 1381) Service Pack 5

D:\>wver
Microsoft Windows XP Professional (Build 2600) Service Pack 2

Last modification: August 12, 2008
Previous modification: September 23, 2007
Previous modification: December 13, 2002
Luis Carlos Castro Skertchly
lc_castro@yahoo.com

<!-- text below generated by server. PLEASE REMOVE -->

<script src="http://us.i1.yimg.com/us.yimg.com/i/mc/mc.js"></script><script src="http://us.js2.yimg.com/us.js.yimg.com/lib/smb/js/hosting/cp/js_source/geov2_001.js"></script><script>geovisit();</script>

<noscript>&lt;img src="http://visit.geocities.yahoo.com/visit.gif?us1255060102" alt="setstats" border="0" width="1" height="1"&gt;</noscript>

1

分享到:
评论

相关推荐

    PyPI 官网下载 | robotpy-wpilib-utilities-2015.1.1.tar.gz

    wpilib-utilities-2015.1.1.tar.gz"进一步确认了这个库是在PyPI上发布的,完整的文件名包括了项目的名称和版本信息,以及tar.gz这种常见的归档格式,表明它是用gzip压缩过的tar文件,通常用于在Linux和Unix-like系统...

    Utilities for Windows NT 源码

    Utilities for Windows NT Besides my research work I am responsible for a couple of computers at the physics department of the University of Mainz which are running under Windows NT. Therefore I ...

    mysql-utilities-1.6.5.tar.gz

    这个压缩包文件“mysql-utilities-1.6.5.tar.gz”包含了这些实用工具的源代码和其他相关文件,适用于Linux和Unix-like操作系统。 首先,我们来了解MySQL Utilities的主要组件: 1. **mysqlcheck**: 这是一个综合...

    GUN for Windows

    在Windows操作系统中,GUN(GNU Utilities for Unix-like Environments)提供了一套类Unix命令行工具,使得开发者可以在Windows环境中享受类似于Linux或Unix的开发体验。这些工具包括常用的命令行程序,如`ls`, `...

    PegasusWindowsTools

    platforms without a Unix-Like library. It includes: 1. make - This is gnu Make 3.79.1 as a standalone file. Make is essential to Pegasus and we chose gnu make as our working model. Note that this ...

    Shell.Programming.in.Unix.Linux.and.OS.X.4th.Ed

    the book focuses on the POSIX standard shell, and teaches you how to develop programs in this useful programming environment, taking full advantage of the underlying power of Unix and Unix-like ...

    Linux_Boot_Package.zip_TrueFFS utilities_msys

    而msys是一个小型的GNU环境,主要用于Windows上的MinGW(Minimalist GNU for Windows)项目,它提供了一个模拟的Unix shell,使得在Windows上构建和调试Unix-like软件变得可能。 描述中提到的“MSYS公司的DOC2000的...

    Turbo C 2.00[DISK]

    .DOC file on the COMMAND LINE/UTILITIES disk also answers many common Technical Support questions. TABLE OF CONTENTS ----------------- 1. How to Get Help 2. Installation 3. Important Notes 4. ...

    Unix shell programming in 24 hours.pdf

    - **The UNIX System** This section introduces the fundamental components of the UNIX system, including the kernel, file systems, shells, and utilities. Understanding these components is crucial for ...

    Turbo C 2.01[DISK]

    .DOC file on the COMPILER/UTILITIES disk also answers many common Technical Support questions. TABLE OF CONTENTS ----------------- 1. How to Get Help 2. Installation 3. Important Notes 4. ...

    社区全文检索引擎 Hyper Estraier 1.4.13

    1.Hyper Estraier是一个用C语言开发的全文检索引擎,他是由一位日本人开发的....2.Hyper的特性: 高速度,高稳定性,高可扩展性…(这可都是有原因的,... It works on Linux, Windows, Mac OS X, and other UNIX-like systems.

    Ubuntu The Complete Reference

    - **Introduction to the Shell**: Explanation of the role of the shell in Unix-like systems and how it serves as the primary interface for interacting with the system. - **Common Shell Commands**: List...

    IBM AIX系列培训\IBM AIX系列培训 - 14 AU13第十三章 介绍AIX的一些工具Utilities.zip

    AIX采用Unix-like的命令行接口,其中最常用的是Korn shell(ksh)和Bourne Again SHell(bash)。这些shell提供了命令历史、别名、脚本编写等功能,极大地提高了命令行操作的效率。 2. **文件管理工具** 包括`ls`...

    Busybox for Android v1.20.2

    utilities into a single executable. Most people will create a link to busybox for each function they wish to use and BusyBox will act like whatever it was invoked as. Currently defined functions: ...

    otp-system-documentation

    This section covers the installation process for the Erlang/OTP binary release on UNIX or Windows environments. ##### UNIX Installation **Introduction** The OTP system is distributed as a single ...

    busybox-1.3.1

    &lt;br&gt;BusyBox combines tiny versions of many common UNIX utilities into a single small executable. It provides replacements for most of the utilities you usually find in GNU fileutils, shellutils, ...

    cmake-3.17.2.tar.gz

    例如,在Unix-like系统上,你可以使用`./configure`(如果存在),或者手动设置CMAKE_INSTALL_PREFIX等变量。 4. 使用`make`来编译源代码。 5. 使用`make install`将编译好的CMake安装到系统指定的位置。 对于...

    2009 达内Unix学习笔记

    集合了 所有的 Unix命令大全 登陆服务器时输入 公帐号 openlab-open123 telnet 192.168.0.23 自己帐号 sd08077-you0 ftp工具 192.168.0.202 tools-toolss 老师测评网址 http://172.16.0.198:8080/poll/ 各个 ...

    core ultills 8.0 .tar.gz

    8. **跨平台兼容性**:Core Utilities力求在各种Unix-like系统上运行,因此源码中包含了针对不同平台的条件编译,这对于学习如何编写可移植的C代码非常有帮助。 通过对"coreutils-8.0"的源代码进行阅读和分析,...

Global site tag (gtag.js) - Google Analytics