随笔分类 - linux
摘要:获取项目中用的所有接口地址,然后排序、去重。 1, 接口地址分散在所有头文件或实现文件中,用grep命令在目录下进行遍历,指定文件类型为.h或.m: grep --include=\*.{m,h} -r '/rest[^"]*' ./directory; 2, 去掉文件路径名加-h可选项; 3, 去
阅读全文
摘要:Understanding RPM Package Management Tutorial Author Name: Chris Negus 08/31/2012 OVERVIEW Red Hat Enterprise Linux, Fedora, and many other Linux dist
阅读全文
摘要:参考: http://www.aixchina.net/home/space.php?uid=73104&do=blog&id=30463 1、连接到远程主机:命令格式 :ssh name@remoteserver 或者ssh remoteserver -l name说明:以上两种方式都可以远程登录
阅读全文
摘要:参考: 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
阅读全文
摘要:参考: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
阅读全文
摘要:参考: 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
阅读全文
摘要:参考: 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
阅读全文
摘要:原文: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
阅读全文
摘要:原文: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
阅读全文
摘要:重启apache服务器 service httpd start 或 /bin/systemctl restart httpd.service
阅读全文
摘要:参考:http://blog.csdn.net/hshl1214/article/details/6228275 命令行中执行如下:[root@fsc feng]# file /sys/power/state/sys/power/state: ASCII text[root@fsc feng]# c
阅读全文
摘要: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
阅读全文
摘要:The chkconfig command can also be used to activate and deactivate services. The chkconfig --list command displays a list of system services and whethe
阅读全文