Command Line Crash Course Day2

本文提供了Windows环境下一系列常用命令的快速指南,包括目录操作、文件创建与删除、复制与移动等基本操作。此外还介绍了查看文件内容的不同方式,并提供了一些实用的链接资源供读者深入学习。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

windows

rmdir : remove directory

              rmdir <dir>

 

pushd : push directory ( save where i am, then go here )

            pushd  i/love/qj

 

popd : pop directory ( takes the last directory you pushed and ”pops” it off, taking you back there )

 

New-Item : make an empty file

                   New-Item iloveqj.txt -type file

 

cp : copy a file from one location to another

       cp iamcool.txt neat.txt

       cp awesome.txt something/

       cp -recurse/r something newplace

ps : the cp command will overwrite files that already exist

 

mv : Moving a File ( Moving files or renaming them,give the old name and the new name  )

        mv awesome.txt uncool.txt

        mv newplace oldplace

 

more : View a File ( if the files hapage )

           more test.txt

        

cat : Stream a File 

        cat test.txt

ps : the cat command will spew the whole file to the screen with no paging or stopping

 

rm : remove( delete ) a file

       rm test.txt

       rm  something/awesome.txt

       rm -r newplace

 

exit : exit terminal

        exit

 

a list of useful links  related to PowerShell:

           http://technet.microsoft.com/en-us/library/ee221100.aspx

           http://powershell.com/cs/blogs/ebook/default.aspx

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值