Working with Commands
来源:互联网 发布:dnf战斗力查询 软件 编辑:程序博客网 时间:2024/05/16 09:02
Working with Commands
commands can be one of four different things:
- an executable program.
- a command built into the shell itself.
- a shell function.
- an alias.
type
display a command’s type,command is the name that you want to examine.
type command
which
dispaly an executable’s location.Only works for executable program,not builtins and aliases
which ls#will show /bin/ls
which cd#cd is a shell builtin command,can't use which
what is
display the name and one line description of a man page matching a specified keyword.
whatis ls#will show "ls (1) - list directory contents"
alias
Using the alias command,we can create our own command.
alias foo='cd /usr;ls -alh;cd -'
then you can use the foo command,it’s function is to change the directory to /usr,then ls and return to the previous directory.
Also,you can remove the alias command using unalias command:
unalias foo
阅读全文
0 0
- Working with Commands
- Working with XML nodes
- Working With System Events
- Working with Snort Rules
- Working with XML nodes
- Working with Delegates
- Working with Windows Registry
- Working with EXIF data
- Working with Files
- WORKING WITH SQLite DATABASES
- Working with Kernel Cores
- Working with item renderers
- Working with Querystrings
- Working With Transactions
- Working with xdc.runtime
- PostGresSql Working with Eclipse
- Working with Alternative Menus
- working with IE
- 仿网易视频列表滚动连播炫酷效果(v3.0 稳定版-终极优化)
- 一个简单的node.js实现界面
- easyui的简单控件使用
- 抽象类
- tcp 状态转换图以及问题点2
- Working with Commands
- Android Parcel 写入String[]
- yum和rpm的比较
- 9的余数
- poj 2559 Largest Rectangle in a Histogram
- 多线程(3)—同步代码块
- 一、软考前期问题汇集
- Text使用富文本
- 决策树原理