随笔分类 -  linux

摘要:获取项目中用的所有接口地址,然后排序、去重。 1, 接口地址分散在所有头文件或实现文件中,用grep命令在目录下进行遍历,指定文件类型为.h或.m: grep --include=\*.{m,h} -r '/rest[^"]*' ./directory; 2, 去掉文件路径名加-h可选项; 3, 去 阅读全文
posted @ 2016-09-28 17:19 qike 阅读(163) 评论(0) 推荐(0)
摘要:Understanding RPM Package Management Tutorial Author Name: Chris Negus 08/31/2012 OVERVIEW Red Hat Enterprise Linux, Fedora, and many other Linux dist 阅读全文
posted @ 2016-07-20 20:53 qike 阅读(180) 评论(0) 推荐(0)
摘要:参考: http://www.aixchina.net/home/space.php?uid=73104&do=blog&id=30463 1、连接到远程主机:命令格式 :ssh name@remoteserver 或者ssh remoteserver -l name说明:以上两种方式都可以远程登录 阅读全文
posted @ 2016-05-18 16:19 qike 阅读(355) 评论(0) 推荐(0)
摘要:参考: http://www.cyberciti.biz/faq/curl-download-file-example-under-linux-unix/curl -o ~/Desktop/outputfile.zip http://7xr5hw.com2.z0.glb.qiniucdn.com/m 阅读全文
posted @ 2016-05-12 19:06 qike 阅读(459) 评论(0) 推荐(0)
摘要:参考:http://stackoverflow.com/questions/7172784/how-to-post-json-data-with-curl-from-terminal-commandline-to-test-spring-rest You need to set your conte 阅读全文
posted @ 2016-05-12 18:59 qike 阅读(191) 评论(0) 推荐(0)
摘要:sudo -s 打开superuser的shell 阅读全文
posted @ 2016-05-06 17:27 qike 阅读(129) 评论(0) 推荐(0)
摘要:参考: http://www.linfo.org/path_env_var.html PATH is an environmental variable in Linux and other Unix-like operating systems that tells the shell which 阅读全文
posted @ 2016-04-30 13:49 qike 阅读(230) 评论(0) 推荐(0)
摘要:参考: http://www.cyberciti.biz/faq/copy-folder-linux-command-line/In this example copy /home/vivek/letters folder and all its files to /usb/backup direc 阅读全文
posted @ 2016-04-26 12:15 qike 阅读(168) 评论(0) 推荐(0)
摘要:原文:http://www.codecoffee.com/tipsforlinux/articles/20.html The simplest way to find files under Linux is to use the locate program. This article expla 阅读全文
posted @ 2016-04-21 15:39 qike 阅读(154) 评论(0) 推荐(0)
摘要:原文:http://www.codecoffee.com/tipsforlinux/articles/21.html Files can be found under Linux in many different ways. Using the find tool is one of the be 阅读全文
posted @ 2016-04-21 15:38 qike 阅读(200) 评论(0) 推荐(0)
摘要:重启apache服务器 service httpd start 或 /bin/systemctl restart httpd.service 阅读全文
posted @ 2016-04-18 19:47 qike 阅读(103) 评论(0) 推荐(0)
摘要:参考:http://blog.csdn.net/hshl1214/article/details/6228275 命令行中执行如下:[root@fsc feng]# file /sys/power/state/sys/power/state: ASCII text[root@fsc feng]# c 阅读全文
posted @ 2016-04-18 10:27 qike 阅读(799) 评论(0) 推荐(0)
摘要:The Linux “du” (Disk Usage) is a standard Unix/Linux command, used to check the information of disk usage of files and directories on a machine. The d 阅读全文
posted @ 2016-03-03 11:20 qike 阅读(527) 评论(0) 推荐(0)
摘要:The chkconfig command can also be used to activate and deactivate services. The chkconfig --list command displays a list of system services and whethe 阅读全文
posted @ 2015-07-22 01:04 qike 阅读(238) 评论(0) 推荐(0)