听说自学编程的人99%都会失败,看看我能不能成为那1%吧。写这个博客也是自我鼓励,如果有人会看的话,那就更好了。
目前还暂时不准备接触Linux,于是就先在Windows下学习。
简单总结一下这两天学习的所有命令:
学会的:
简单总结一下这两天学习的所有命令:
学会的:
| Commands | Meanings | Notes |
| pwd | print working directory | |
| hostname | my computer's network name | |
| mkdir | make directory | |
| cd | change directory | |
| ls | list directory | |
| rmdir | remove directory | |
| pushd | push directory | push into a directory temporarily |
| popd | pop directory | pop back to the former directory |
| cp | copy a file or directory | |
| mv | move a file or directory | |
| more | page through a file | |
| dir -r | find files | -'r': Recurse -filter dir -r -filter "*.txt" |
| select-string | find things inside files | select-string new *.txt new为所查单词,*.txt 为名称 |
| help | read a manual page | |
| helpctr | find what man page is appropriate | |
| echo | print some arguments | |
| set | export/set a new environment variable | |
| exit new-item |
exit the shell Making Empty Files |
参数:-type file |
暂时还没有尝试的:
| robocopy | robust copy |
| type | print the whole file |
| forfiles | run a command on lots of files |
| runas | DANGER! become super user root DANGER! |
| attrib | change permission modifiers |
| iCACLS | change ownership |
由于学习命令行是为了学习Python,所以也就不在这里多做停留了,继续吧
10.21补充:
Linux/Mac下的命令:
Making Empty Files (Touch, New-Item)
e.g. touch iamcool.txt
View A File (less, MORE)
e.g. less ex12.txt
Finding Files (find, DIR -R)
e.g. find . -name "*.txt" -print
find . -name "*.txt" -print | less
Looking Inside Files (grep, select-string)
e.g. grep new *.txt
Getting Command Help (man, HELP)
e.g. man find
Finding Help (apropos, HELP)
e.g. apropos search
What's In Your Environment (env, echo, Env:)
e.g. env
env | grep zed
env zed
Changing Environment Variables (export, Env:)
e.g.
$ export TESTING="bada bada bing"
$ echo $TESTING
bada bada bing
$ unset TESTING
$ echo $TESTING
$ env | grep TESTING
$
10.21补充:
Linux/Mac下的命令:
Making Empty Files (Touch, New-Item)
e.g. touch iamcool.txt
View A File (less, MORE)
e.g. less ex12.txt
Finding Files (find, DIR -R)
e.g. find . -name "*.txt" -print
find . -name "*.txt" -print | less
Looking Inside Files (grep, select-string)
e.g. grep new *.txt
Getting Command Help (man, HELP)
e.g. man find
Finding Help (apropos, HELP)
e.g. apropos search
What's In Your Environment (env, echo, Env:)
e.g. env
env | grep zed
env zed
Changing Environment Variables (export, Env:)
e.g.
$ export TESTING="bada bada bing"
$ echo $TESTING
bada bada bing
$ unset TESTING
$ echo $TESTING
$ env | grep TESTING
$
没有评论:
发表评论