码迷,mamicode.com
首页 >  
搜索关键字:bash shell    ( 38571个结果)
Python - 升级所有已安装的第三方包
我们有时候需要把系统上已经安装的第三方的packages升级到最新版。但是easy_install和pip都没有直接的命令可以使用。 我们可以是用如下命令来查看系统上面哪些包过期了。 pip list --outdated 其实能这样列表出来后我们就可以配合其他shell命令来完成升级了。 pip ...
分类:编程语言   时间:2014-11-26 20:56:48    阅读次数:198
理解shell中的atime,mtime,ctime
所有文件都有3个时间信息,保存在文件系统中atime (Access time)是文件最后一此读的时间 或者执行文件的时间mtime (Modified time)是文件最后一次写的时间(是在写入文件时随文件内容的更改而更改的)ctime (Create time)是i-node信息最后一次写的时间...
分类:系统相关   时间:2014-11-26 20:55:12    阅读次数:263
Android学习笔记:adb 与 adb shell操作 以及中文乱码解决
1、安装app>adb install xxx.apk2、卸载app>adb uninstall app的包路径如:>adb uninstall com.example.myfirstapp3、进入命令行 adb shell说明:只有sdcard下的目录才有权限被操作。操作命令就是linux下的文件...
分类:移动开发   时间:2014-11-26 20:39:23    阅读次数:183
shell 监控判断进程是否存在,如果不存在就重新启动脚本。
#!/bin/bash while [ 1 ] do SendMail_is_exstit=$(ps -ef | grep "feed SendMail" | grep -v grep | wc -l) if [ ${SendMail_is_exstit} == 0 ] then cd /var/www/sdkfeed/ ./app/Console/cake SendMail fi slee...
分类:系统相关   时间:2014-11-26 19:23:57    阅读次数:229
Linux程序包管理之yum
update,YellowdogUpdateModifier,YUMyum是什么?yum是一个在Fedora和RedHat以及SUSE中的Shell前端软件包管理器。基于RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软件包,无需繁琐的一次次下载、安装。yum是基于yum数..
分类:系统相关   时间:2014-11-26 19:20:57    阅读次数:227
Linux常用命令(2)-用户和用户组管理
# id # 显示当前用户和用户组的 ID # who # 显示目前登入系统的用户信息 #su 改变使用者身份 [root@localhost/]#su Chenlly  [Chenlly@localhost/] #cat /etc/passwd 档案结构  root:x:0:0:root:/root:/bin/bash chenlly:x:1000:1000:chenlly,,...
分类:系统相关   时间:2014-11-26 18:56:06    阅读次数:338
VBS定时关闭的弹窗
'类似msgbox'定时停留弹出框函数Sub Print(text,timeout,title) Dim WshShell Set WshShell = CreateObject("WScript.Shell") WshShell.Popup text,timeout,title Set W...
分类:其他好文   时间:2014-11-26 18:21:03    阅读次数:658
Django修改用户名密码的方法
1.python manage.py shell2.from django.contrib.auth.models import User3.user=User.objects.get(username='XXX')4.user.set_password('new_password')5.user....
分类:其他好文   时间:2014-11-26 18:17:17    阅读次数:189
Shell | grep with n following lines
grep -A 10 'foo' sample.txt? dex-method-counts git:(master) ./dex-method-counts ~/Downloads/n.apk | grep -A 10 'hui' hui: 304 ...
分类:Windows程序   时间:2014-11-26 18:01:41    阅读次数:177
JAVA与groovy脚本的结合使用
java执行groovy shell脚本  org.codehaus.groovy  groovy-all  2.4.0-beta-1 添加groovy jar包支持 ==================================================== package groovy; import groovy.la...
分类:编程语言   时间:2014-11-26 16:40:15    阅读次数:209
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!