|
|
引用地址: http://callof.net/Site/View.Asp?id=1096 | 所在分类:Windows系统维护 | 访问次数:283 | |
由于自己的项目需要使用Linux内核,所以自己在windows下安装了一个Linux虚拟机!自己实在忍受不了这种速度,随想用cygwin进行替代,毕竟我只是使用Linux内核的部分命令就好。今天下午进行了实验,效果不错,从网上找到了这篇文章,做为cygwin的入门文章!写的不错,enjoy it! 原文如下: By EnterBD[BCT]
Quote
Usage ps [-aefl] [-u uid] -f = show process uids, ppids -l = show process uids, ppids, pgids, winpids -u uid = list processes owned by uid -a, -e = show processes of all users -s = show process summary -W = show windows as well as cygwin processes 很容易看懂吧,呵呵
Quote
Taynni-417@ENTERBD-417 ~ $ df Filesystem 1k-blocks Used Available Use% Mounted on e:/cygwin/bin 10231384 4844432 5386952 48% /usr/bin e:/cygwin/lib 10231384 4844432 5386952 48% /usr/lib e:/cygwin 10231384 4844432 5386952 48% / c: 5106676 1240312 3866364 25% /cygdrive/c d: 10239408 6560328 3679080 65% /cygdrive/d e: 10231384 4844432 5386952 48% /cygdrive/e f: 6333252 4065564 2267688 65% /cygdrive/f g: 7150972 4672724 2478248 66% /cygdrive/g 如上便是我的硬盘的全部了,在后面的/cygdrive/c便是C盘了,然后/cygdrive/d便是D盘了
Quote
Taynni-417@ENTERBD-417 ~ $ cd /cygdrive/d Taynni-417@ENTERBD-417 /cygdrive/d $ ls -l ls: pagefile.sys: Permission denied total 0 drwxr-xr-x 9 Taynni-4 None 0 Aug 31 20:56 Book drwxr-xr-x 2 Taynni-4 None 0 Aug 23 05:24 Ftproot drwxr-xr-x 30 Taynni-4 None 0 May 10 23:38 HACKER drwxr-xr-x 11 Taynni-4 None 0 Feb 1 2005 JIAOXUE drwxr-xr-x 8 Taynni-4 None 0 Jan 3 2005 Local Settings dr-xr-xr-x 24 Taynni-4 None 0 Oct 16 2004 My Documents drwxr-xr-x 12 Taynni-4 None 0 May 14 16:48 Mywww drwxr-xr-x 2 Taynni-4 None 0 Jun 29 2004 Recycled drwxr-xr-x 3 Taynni-4 None 0 Aug 22 04:44 SECBOOK drwxr-xr-x 6 Taynni-4 None 0 Feb 28 2005 TaynniCHX drwxr-xr-x 15 Taynni-4 None 0 Mar 30 01:04 TaynniGZ drwxr-xr-x 12 Taynni-4 None 0 May 11 01:30 TaynniH drwxr-xr-x 15 Taynni-4 None 0 Mar 12 04:27 TaynniYM drwxr-xr-x 6 Taynni-4 None 0 Dec 13 2004 Taynniwww drwxr-xr-x 8 Taynni-4 None 0 Aug 31 20:55 Word Taynni-417@ENTERBD-417 /cygdrive/d $ 在Cygwin下还可以运行Windows下的程序,如下: Taynni-417@ENTERBD-417 ~ $ cmd.exe Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. e:/cygwin/home/Taynni-417>d: D:/>cd hacker D:/HACKER>cd tools D:/HACKER/Tools>cd pstools D:/HACKER/Tools/Pstools>ls pdh.dll pskill.exe pspasswd.exe Psinfo.exe psexec.exe pslist.exe psservice.exe Pstools.chm psfile.exe psloggedon.exe psshutdown.exe README.TXT psgetsid.exe psloglist.exe pssuspend.exe D:/HACKER/Tools/Pstools>exit Taynni-417@ENTERBD-417 ~ $ 很明显的,直接输入CMD.EXE便可以得到一个本机CMDSHELL,这样你想运行什么程序都可以了
Quote
Taynni-417@ENTERBD-417 ~ $ md5sum --help Usage: md5sum [OPTION] [FILE]... or: md5sum [OPTION] --check [FILE] Print or check MD5 (128-bit) checksums. With no FILE, or when FILE is -, read standard input. -b, --binary read files in binary mode (default on DOS/Windows) -c, --check check MD5 sums against given list -t, --text read files in text mode (default) The following two options are useful only when verifying checksums: --status don't output anything, status code shows success -w, --warn warn about improperly formated checksum lines --help display this help and exit --version output version information and exit The sums are computed as described in RFC 1321. When checking, the input should be a former output of this program. The default mode is to print a line with checksum, a character indicating type (`*' for binary, ` ' for text), and name for each FILE. Taynni-417@ENTERBD-417 ~ $ 基本使用上应该没有多大的问题了,文章因为我偷懒,也是不知道该怎么写才可以帮助大家 |