Windows | Unix | 9os | Supported by 9cli.py |
---|---|---|---|
move filename dir | mv filename dir | filename -> dir/ | |
rename filename_old filename_new | mv filename_old filename_new | filename_old -> filename_new | |
copy fname destdir | cp fname destdir | fname => destdir/ | |
copy fname copy_fname | cp fname copy_fname | fname => copy_fname | |
xcopy docs docs_copy | cp -r docs docs_copy | docs/** => docs_copy/ | |
dir /W | ls | ? . | |
dir /adh | ls -Ap | grep "^\..*/$" | ? .*/ | |
dir | ls -l | ? * | |
dir /W subdir | ls subdir | ? subdir | |
dir subdir | ls -l subdir | ? subdir/* | |
tree /F | tree | ? ** | |
tree subdir /F | tree subdir | ? subdir/** | |
- | stat subdir | ? subdir/ | |
- | stat filename | ? filename | |
fsutil volume diskfree C: | df / -h | ? 0: | |
- | df -h | ? *: | |
del filename | rm filename | - filename | |
rmdir dirname | - dirname/ | ||
rmdir dirname /S /Q | rm -r dirname | -** dirname/ | |
? | rm -r dirname/* | - dirname/** | |
pushd dirname && (rd /s /q ...)🔗 | rm -r dirname/{*,.*}🔗 | - dirname/?** | |
md newdir | mkdir newdir | + newdir/ | |
cd subdir | . = subdir | ||
cd.. | cd .. | . = ../ .=.. | |
mklink link target | ln -s target link | target ~> link | 0.10 |
mklink /D link target | ln -s target link | target/ ~> link | |
mklink dir\link link | ln -s link dir/link | link ~> dir/ | |
where python | which python | ? 0:/.9/~/python |
9cli.py