Command Line in Mac/Linux

读写代码、注意细节、发现差异
坚持每天练习是一件非常重要的事。

pwd: print working directory

hostname: my computer’s network name

// mkdir -p will make an entire path even if all the directories don’t exist.
mkdir: make directory

cd:change directory

// ls something
// “/” like ls something/ will make sure the directory is exist or get an error.
ls:list directory

// wrong with Directory not empty in Mac, try with “rm -rf”
// be careful when running recursive remove on files.
rmdir :remove directory
rm:remove file

//
pushed:push directory
popd:pop directory

touch: make empty files

// cp ~/MyDocument ~/Desktop/MyDocument
// cp -r something newthing
cp:copy a file or directory

mv:move a file or directory

less:page through a file

cat:print the whole file

xargs:execute arguments
find:find files
grep:find things inside files
man:read a manual page
apropos:find what man page is appropriate
env:look at your environment
echo:print some arguments
export:export/set a new environment variable
exit:exit the shell
sudo:DANGER! become super user root DANGER!

From Command line crash course
http://learnpythonthehardway.org/book/appendixa.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值