Is there any way to set a default -L option when running the tree command? For example, instead for typing
tree -L 2
I would rather type just
tree
Currently the default "tree" command shows all nested levels, but I typically want to see only 2 levels deep. I would still want the option to override the default if I wanted to see something other than 2 levels deep, ie
tree -L 3
根据上面的Biffen,添加别名即可。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.