ghosTzone
main(_){return _} && echo $? /* Keep It Simple Stupid | 本博客所有文章皆为原创 转载请注明 - ghosTM55 */

两种escape alias的方法

ghosTM55 posted @ 2008年11月22日 04:05 in bash , 3632 阅读

txi@ghosTunix.org:dir> alias touch='touch foo'         # 设置一个能显示效果的alias
txi@ghosTunix.org:dir> ls         # 该目录当前没有文件
txi@ghosTunix.org:dir> touch   # 创建一个空文件foo
txi@ghosTunix.org:dir> ls
foo
txi@ghosTunix.org:dir> rm foo # 删除foo文件,供稍后实验用
txi@ghosTunix.org:dir> \touch foo1         # escape方法1
txi@ghosTunix.org:dir> ls
foo1
txi@ghosTunix.org:dir> command touch foo2        # escape方法2
txi@ghosTunix.org:dir> ls
foo1 foo2

txi@ghosTunix.org:~> date
Tue Jul 29 21:55:50 CST 2008

Avatar_small
run 3 说:
2019年2月22日 17:13

The website is looking bit flashy and it catches the visitors eyes. Design is pretty simple and a good user friendly interface.

Avatar_small
Emma 说:
2023年1月21日 22:31

It's amazing to see how quickly and easily a file can be created or deleted from a directory. In this example, we demonstrated two methods of escape, alias and command, that can be used to create or delete Lab grown diamonds files. By setting an alias, we were able to create an empty file called "foo", and then delete it for later experimentation. The two escape methods were then used to create two new files, "foo1" and "foo2". This demonstrates the power of the command line and provides an efficient way to manage files.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter