tailieunhanh - Unix for mac your visual blueprint to maximizing the foundation of mac osx phần 4

Nếu bạn không, bạn có thể bấm phím bất kỳ khác hoặc chỉ đơn giản là phím một tập tin Theo mặc định, lệnh rm chỉ loại bỏ các tập tin bình thường, mặc dù bạn có thể loại bỏ một thư mục rỗng với lệnh rmdir cho một thư mục chứa các file, bạn có thể sử dụng lệnh rm-r. bạn | CUSTOMIZE YOUR SHELL 6 WORK WITH THE Z SHELL If you are an advanced user you can write functions that perform shell tasks in the highly configurable Z shell. If you are new to Unix this may be much more than you need. The differences between shells are most apparent when you are writing shell scripts as these scripts use the advanced features of the shell. The Z shell uses a number of functions that you can define in order to override or change default behavior. The Z shell was created to be compatible with another early shell known as the Korn shell or ksh. If you are going to be using your shell a great deal and want to become more familiar with shell customization the Z shell may be a good choice for you. variables in tcsh by using the command setopt and you can set and export environment variables as you would in bash. Instead of running the contents of the .tcshrc file when a shell starts the zsh shell executes commands in the .zshrc file in your Home directory. Aliases in the zsh shell must be set using the following syntax which differs from the tcsh shell by the requirement of an equal sign alias short-alias command and options You can take full advantage of the extensibility of the Z shell by creating specialized functions in your .zshrc file. A function creates a command similar to an alias but with more flexibility and control. To learn about Z shell functions you can see the manual pages for zsh by typing man zsh. Many of the built-in commands familiar from the tcsh shell have different command names and values in the zsh shell. For example you can set zsh shell options similar to shell WORK WITH THE Z SHELL START ZSH FROM TCSH CREATE A SIMPLE Z SHELL FUNCTION L n Type bin zsh and press Return. The shell starts a new zsh shell. B Press Return. -n Type function cp a space and then type . L B Type command cp -i @ The Z shell defines a new command named cp. a space and then type . 95 UNIX FOR MAC SUSPEND THE CURRENT PROCESS You can suspend a process to .

TỪ KHÓA LIÊN QUAN