2022年7月11日星期一

linux alias

1. alias lla='ls -la' 

[root@ip-xxx ~]$ lla

total 112
drwx------ 18 root  root   4096 Jul  8 11:20 .
drwxr-xr-x  5 root  root        47 May 19 09:47 ..

2. unalias lla # delete alias lla


3.  function findjssp () { find $1 -type f  -name "*.js" -o -name "*.html" | xargs grep -ine "$2" 2>/dev/null; }

     $  findjssp  "imart/WEB-INF/jssp/src/"  "test" 

4. unset findjssp  # delete function findjssp 


没有评论: