G0dspeed's Blog

Linux
经验技巧

怎样在Linux下搜索包含特定字串的文件

发现这个功能非常有用,必须收藏起来。 grep -rnw '/path/to/somewhere/' -e 'pattern' -r or -R is recursive, -n is line number, and -w stands for match the whole word. -l (lower-case L) can be added to just give the file name of matching files. -e is the pattern used during the sea…

2022/08/05 0条评论 586点热度 0人点赞 G0dspeed 阅读全文
经验技巧

Linux下利用Rsync命令进行增量备份

今天在研究Linux下增量备份的时候,发现了一个非常Genius的命令。 用这个命令即可以做到增量备份,又可以最少量的占用硬盘空间。   rm -rf backup.3 mv backup.2 backup.3 mv backup.1 backup.2 cp -al backup.0 backup.1 rsync -a --delete source_directory/ backup.0/   多的懒得写了,大家自己体会吧。:D   Refer:http://www.admin-ma…

2018/10/03 0条评论 996点热度 0人点赞 G0dspeed 阅读全文
经验技巧

怎样创建一个只允许FTP登录的Linux用户

Here are steps to setup a user and allow the user access only via FTP (i.e. no SSH) and also limit access to a specific (user home) directory on proftpd: 1. Add new user: adduser newusername 2. Set password: passwd newusername 3. Modify user home directory fro…

2018/04/02 0条评论 426点热度 0人点赞 G0dspeed 阅读全文
经验技巧

怎样遍历目录找到包含特定字串的文件

grep -rnw '/path/to/somewhere/' -e 'pattern' -r or -R is recursive, -n is line number, and -w stands for match the whole word. -l (lower-case L) can be added to just give the file name of matching files. Along with these, --exclude, --include, --exclude-dir fl…

2018/01/30 0条评论 395点热度 0人点赞 G0dspeed 阅读全文
经验技巧

怎样安装ShadowSocks Server

1、查看系统 [[email protected] ~]# cat /etc/issue CentOS release 6.6 (Final) [[email protected] ~]# uname -a Linux localhost.localdomain 2.6.32-042stab106.6 #1 SMP Mon Apr 20 14:48:47 MSK 2015 x86_64 x86_64 x86_64 GNU/Linux 2、安装ShadowSocks # yum install python-setuptools…

2016/06/30 0条评论 4094点热度 0人点赞 G0dspeed 阅读全文
经验技巧

Get a list of Open Ports

LINUX netstat -lntu as replied by @askmish will give you list of services running on your system on tcp and udp ports where -l = only services which are listening on some port -n = show port number, don't try to resolve the service name -t = tcp ports -u = udp…

2016/06/03 0条评论 719点热度 0人点赞 G0dspeed 阅读全文
经验技巧

Linux下遍历查找某的文件包含某个关键字的命令

如下命令 grep -rnw '/path/to/somewhere/' -e "pattern" -r 或者 -R 为递归查找, -n 是行号 -w 为要求全匹配. -l (小写L) 参数可以只列出文件名. 除此以外, --exclude 或者 --include 参数可以提供更有效的查找。比如: grep --include=\*.{c,h} -rnw '/path/to/somewhere/' -e "pattern" 这个可以查找扩展名为.c或者.h的文件. --exclude的用法也类似: grep --…

2016/02/29 0条评论 1932点热度 0人点赞 G0dspeed 阅读全文
经验技巧

Ubuntu等效Chkconfig的命令

在Ubuntu中是没有chkconfig这个命令的,如果想要在Ubuntu里面使用类似Chkconfig的命令怎么办呢? 可以试试sysv-rc-conf命令,如果没有安装的话,可以使用apt-get install来安装这个命令。就可以以模拟图形界面的方式来配置各个service的runlevel了。 另外Ubuntu使用Upstart来替代来了传统的sysvinit,详细的使用方法参加: https://help.ubuntu.com/community/UpstartHowto

2014/11/21 0条评论 481点热度 0人点赞 G0dspeed 阅读全文
经验技巧

Tomcat: redirecting traffic from port 8080 to 80 using iptables

First verify that Tomcat is running on port 8080. Run the following command # netstat -ntl The output will look something like Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address               Foreign Address             State tcp     …

2014/03/21 0条评论 446点热度 0人点赞 G0dspeed 阅读全文
经验技巧

6 Examples To Get Linux Hardware Details / Information

Today in this article we are going to discuss about some tools and commands that might answer your questions like name of your motherboard’s chipset, NIC type, etc. Some of the tools are in built into any Linux system and others need to be downloaded. Example …

2014/01/09 0条评论 350点热度 0人点赞 G0dspeed 阅读全文
1234
分类
  • 图片摄影
  • 我的生活
  • 数码产品
  • 硬件相关
  • 经典网文
  • 经验技巧
  • 编程相关
  • 网络技术
标签聚合
Linux USA Windows movie 自由行 模型 摄影 hack
最新 热点 随机
最新 热点 随机
怎样在Linux下搜索包含特定字串的文件 2022回国全记录(三)-- 离开上海 2022回国全记录(二)-- 抵达上海 2022回国全记录(一)-- 离开美国 如何检测网站支持的SSL/TLS版本 Win11跳过TPM检测
加拿大 NOD32 怎样创建一个只允许FTP登录的Linux用户 会泽大海草山 快速批量绑定MAC与IP地址 用Dreamweaver设计限时自动关闭的网页

COPYRIGHT © 2022 G0dspeed's Blog. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang