Command Line in Mac/Linux
2016-03-19 21:45
477 查看
读写代码、注意细节、发现差异
坚持每天练习是一件非常重要的事。
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
坚持每天练习是一件非常重要的事。
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
相关文章推荐
- Linux任务前后台的切换
- asp中command的在单条记录时,有些字段显示为空的问题
- Delphi Command模式
- php设计模式 Command(命令模式)
- 解决bash: mysql: command not found 的方法
- bash scp command not found的解决方法
- 如何让django方法自动地定期执行
- sort命令
- ADO.NET与抽水的故事 系列三——抽水机—Command
- shell的常用特殊符号
- MongoDB的监控首选:mongostat
- centos6.6下安装MySQLdb时出现“error command 'gcc' failed with exit status 1”
- iptables的概念及使用
- command line option syntax error,type command/?
- android 编译源码 错误解决
- Dism 编辑Windows WIM 文件
- linux命令后台运行
- Centos 6.4安全防护设置指南
- mod_wsgi
- 开发人员常用的脚本启动工具