windows脚本

当前目录:%cd%

 

This topic contains a table showing some common MS-DOS commands and their UnixWare system equivalents.

For more information about any of the UnixWare system commands, consult the manual reference pages.

The commands listed below are for working with UnixWare system files.

DOS
command
What it does UNIX system
equivalent
Notes
cd change directories cd(1)  
cls clear the screen clear(1)  
copy copy files cp(1),
tar(1)
Use cp to copy files and tar to copy files or directories onto floppy disks or tapes.
date display the system date and time date(1),
cal(1)
On the UNIX system, date displays the date and the time. cal displays the date, the time, and a 3-month calendar.
del delete a file rm(1) Be careful when using rm with wildcard characters, like rm *.
dir list the contents of a directory ls(1) There are a variety of options to ls including ls -l to see a long listing and ls -f to see a listing that indicates file types.
edlin line editor ed(1),
ex(1),
vi(1)
vi is a full-screen text editor with powerful search and replace functions. ed and ex are predecessors of vi.
fc compare two files diff(1),
diff3(1),
cmp(1)
diff compares two text files. diff3 compares three text files. Use cmp to compare binary files.
find find text within a file grep(1) grep (global regular expression parser) finds text within a file. The UNIX system's find(1) command finds files.
format format a disk format(1M) See /etc/default/format for the default drive to format. The format command formats a disk for use with UNIX system files.
mkdir make a directory mkdir(1)  
more display output one screen at a time more(1)  
print print files in the background lp(1) Use lp filename & to print in the background. You can run any UNIX system command in the background by adding & (ampersand) to the end of the command line.
ren rename a file mv(1)  
rmdir remove an empty directory rmdir(1) Use rm -r to remove a directory that is not empty.
sort sort data sort(1)  
type display a text file cat(1),
more(1)
 
xcopy copy directories tar(1) Use tar if you want to copy directories onto disk or tape.

 

摘自:http://docsrv.sco.com/DOS_others/Going_from_dO_to_u1.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值