ZhangZhihui's Blog |
|
||
2020年12月24日
摘要:
scnzzh@zubt1:~/zzh$ echo aaa | tee a.txt b.txt c.txt aaa scnzzh@zubt1:~/zzh$ cat a.txt aaa scnzzh@zubt1:~/zzh$ cat b.txt aaa scnzzh@zubt1:~/zzh$ cat c 阅读全文
摘要:
/home/scnzzh/zzh $> find ./ -name "my_*.xml" ./my_a.xml ./my_b_sked.xml ./my_c_sked_schedule.xml /home/scnzzh/zzh $> find . -name "my_*.xml" ! -name " 阅读全文
摘要:
The shebang must be the first line, because it is interpreted by the kernel, which looks at the two bytes at the start of an executable file. If these 阅读全文
摘要:
Add below line in ~/.vimrc: :set paste 阅读全文
2020年12月23日
摘要:
scnzzh@zubt1:~/zzh$ str='I love python and python.' scnzzh@zubt1:~/zzh$ echo ${str/'python'/'shell'} I love shell and python. scnzzh@zubt1:~/zzh$ echo 阅读全文
2020年12月14日
摘要:
[WARNING]: Consider using the replace, lineinfile or template module rather than running 'sed'. If you need to use command because replace, lineinfile 阅读全文
摘要:
scnzzh@ZUBT1:~/zzh$ cat test.yml - name: Test Play hosts: zubt1 tasks: - name: test shell: pwd register: result - debug: msg: "{{ result.stdout }}" sc 阅读全文
摘要:
- hosts: zubt1 tasks: - name: Get current user shell: whoami register: current_user_nobecome - name: Get current user with become is true shell: whoam 阅读全文
2020年12月1日
摘要:
scnzzh@ZUBT:~$ ansible -i zzh-inventory all --list-hosts | grep WARNING | wc -l [WARNING]: * Failed to parse /home/scnzzh/zzh-inventory with yaml plug 阅读全文
2020年11月28日
摘要:
scnzzh@ZUBT:~$ printf %d "A" bash: printf: A: invalid number 0scnzzh@ZUBT:~$ printf %d "'A" 65scnzzh@ZUBT:~$ printf "\\$(printf %o 65)" Ascnzzh@ZUBT:~ 阅读全文
|
Copyright © 2024 ZhangZhihuiAAA
Powered by .NET 9.0 on Kubernetes |