1、截屏 adb shell screencap -p /sdcard/a.png 2、录屏 adb shell screenrecord /sdcard/a.mp4 ...
                            
                            
                                分类:
数据库   时间:
2021-04-23 11:57:08   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    1、测试1 [root@centos7 test2]# ls a.txt [root@centos7 test2]# if [ -e a.txt ]; then echo "exist";else echo "no nxist"; fi exist [root@centos7 test2]# if  ...
                            
                            
                                分类:
系统相关   时间:
2021-04-23 11:53:02   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    linux shell脚本中流程控制语句 if、for、while、case 1、if语句 [root@centos7 test2]# ls test.sh [root@centos7 test2]# pwd /home/test2 [root@centos7 test2]# cat test.sh ...
                            
                            
                                分类:
系统相关   时间:
2021-04-22 16:20:40   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                Shell工具 cut:可以切割提取指定列\字符\字节的数据 cut可以将文本按列进行划分的文本处理,cut命令逐行度入文本,然后按列划分字段并进行提取,输出等操作 选项参数: -f 提取范围 列号,获取第几列 -d 自定义分隔符 自定义分隔符,默认为制表符 -c 提取范围 以字符为单位进行分割 - ...
                            
                            
                                分类:
系统相关   时间:
2021-04-22 16:20:19   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    直接用java -jar xxx.jar,当退出或关闭shell时,程序就会停止掉。以下方法可让jar运行后一直在后台运行。 1. java -jar xxx.jar & 说明: 在末尾加入 & 符号 2. (1)执行java -jar xxx.jar后 (2)ctrl+z 退出到控制台,执行 bg ...
                            
                            
                                分类:
其他好文   时间:
2021-04-21 11:58:31   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    #不要加空格 time1=$(date) echo $time1 > /tmp/output.txt ...
                            
                            
                                分类:
系统相关   时间:
2021-04-21 11:49:37   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    Mac下Core Shell 使用lrzsz命令,上传,下载文件 新增~/.bashrc_Core_Shell # Bash support for Core Shell, reference: /etc/bashrc_Apple_Terminal on macOS # Report Working ...
                            
                            
                                分类:
系统相关   时间:
2021-04-20 15:02:28   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    bash特殊变量 变量 含义 $0 函数名 \(n | n>=1,表示第一个、第二个、第n个参数、\)(10) $@ 全部参数 $* 全部参数 $# 参数个数 $_ 上一个命令的最后一个参数 $$ 当前shell进程ID $? 上一个命令的返回值 ...
                            
                            
                                分类:
其他好文   时间:
2021-04-20 14:55:25   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                在/etc/profile.d目录里下新建 shell脚本 (设置alias别名命令的功能) 让新建的别名生效 设置完成后之际可以使用别名 gj 命令 执行poweroff一样效果的 ...
                            
                            
                                分类:
其他好文   时间:
2021-04-20 14:33:22   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    1、编写脚本 createuser.sh,实现如下功能:使用一个用户名作为参数,如果 指定参数的用户存在,就显示其存在,否则添加之;显示添加的用户的id号等信息 read -p " input the user: " USER if id $USER &> /dev/null ; then echo ...
                            
                            
                                分类:
系统相关   时间:
2021-04-20 14:31:15   
                                阅读次数:
0