Learn Python 003: Powershell Commands - Crash Course

pwd pwd print working directory
cd ~  back to home directory
mkdir make a directory
cd change dicrectory
ls  list directory
rmdir remove empty directory
pushd save current dir & go to designated dir
popd go back to saved directory
new-item ie: new-item a.txt -type file
touch (this one is for mac)ie: touch a.txt
cp ie: cp a.txt b.txt    cp -r folderwithfile newfolder
mv ie: mv old.txt new.txt    mv oldfolderwithfile newfolderwithfile
more view a file(type q to quit review)    ie: more text.txt
less view a file(this one is for mac)(type q to quit review)
cat view a file to the full extent
rm remove file or directory    ie: rm text.txt    rm folder    rm -r folderwithfileorsubfolder

 

posted @ 2017-07-10 16:17  mxyzptlk  阅读(141)  评论(0)    收藏  举报