1.关于控制台
2.有三种基本的命令(Nearly all commands follow a common pattern with 3 main parts. )
The program——你想做什么,比如ls
the options——想如何做,比如-l
and the arguments——想对谁做,比如~
3. 知道你在哪(Where Are You?)
pwd —— 打印当前位置
cd —— 转换目录
cd experiments
这是相对路径,因为指定了相对于当前目录(/Users/robin/)的目标。
也可以使用绝对路径:
cd /Users/robin/experiments 或者 cd ~/experiments
cd …返回上级目录
man ——获取帮助(man = manual),按q退出
man ls
或者尝试学习其他的命令man mkdir、man mv、man rm、man less、man cp
rm 移除文件;
rm -r 移除文件夹(注意很多命令都有带option操作)