User Tools

Site Tools


linux_tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux_tools [2019/03/18 19:53]
118.10.215.103
linux_tools [2022/05/14 11:26] (current)
admin ↷ Page name changed from shell_script to linux_tools
Line 1: Line 1:
-### 文件批量重命名 +###​文件批量重命名  
-例如把后缀名bkscr改成txt。 + 
-注意这里如果文件名中有空格的话就一定要加双引号+例如把后缀名从 bkscr 改成 txt。注意如果文件名中有space,则一定要加双引号 
 ``` ```
 for i in *.bkscr ; do for i in *.bkscr ; do
Line 7: Line 8:
 done done
 ``` ```
 +
  
  
 ### The auto-run script in bash shell: ### The auto-run script in bash shell:
 +
 - on Mac: ~/.profile - on Mac: ~/.profile
  
Line 24: Line 27:
 done done
 ``` ```
 +
 +
 +### gzip
 +
 +- 圧縮 ````tar -zcvf xxxx.tar.gz directory````
 +- 解凍 ````tar -zxvf xxxx.tar.gz````
 +
 +
 +### Crontab 定时运行脚本
 +- https://​www.cyberciti.biz/​faq/​how-do-i-add-jobs-to-cron-under-linux-or-unix-oses/​
linux_tools.1552910026.txt.gz · Last modified: 2019/03/18 19:53 by 118.10.215.103