cat >This is a premium name #! /usr/bin/bash #This is the first shell file echo "The current date is : " date echo "My home directory is: $HOME. " 执行脚本文件:(在子shell中执行) 1. bash <This is a premium name执行脚本文件(不可加参数) 2. bashThis is a premium name执行脚本...
# find . -name "*.c" 将目前目录其其下子目录中所有一般文件列出 # find . -type f 将目前目录及其子目录下所有最近 20 天内更新过的文件列出 # find . -ctime -20 查找/var/log目录中更改时间在7日以前的普通文件,并在删除之前询问它们: # find /var/log -type f -mtime +7 -ok rm {} \;...
hydra [[[-l LOGIN|-L FILE] [-p PASS|-PFILE]] | [-C FILE]] [-e nsr] [-o FILE] [-t TASKS] [-M FILE [-T TASKS]] [-wTIME] [-W TIME] [-f] [-s PORT] [-x MIN:MAX:CHARSET] [-SuvV46][service://server[:PORT][/OPT]] -l LOGIN 指定破解的用户名称,对特定用户破解。
...# find -type d -exec chmod 750 {} \; 5、设置网站文件权限为640,640指只有ftpuser用户对网站文件有更改的权限,web服务器只有读取文件的权限,无法更改文件...# find -not -type d -exec chmod 640 {} \; 6、针对个别目录设置可写权限。比如网站的一些缓存目录就需要给web服务有写入权限。 18.2K...
find-name"query" Copy This will be case sensitive, meaning a search forqueryis different from a search forQuery. To find a file by name but ignore the case of the query, use the-inameoption: find-iname"query" Copy If you want to find all files that don’t adhere to a specifi...
Create an Encrypted Filesystem in Linux 3. CryFS CryFSis a free and open-source cloud-based encryption tool for safely storing files anywhere. It is easy to set up, runs in the background, and works nicely with any popular cloud service not excludingDropbox,OneDrive, andiCloud. ...
列出目录内容:ls 查看文件状态:stat 查看每个文件中选定的行:cut 检查文件的类型:file 文件查看:cat 文件反向查看:tac与cat相反 文件查看并添加行号:nl 分页查看文件内容:less,more 显示文本前行内容:head 显示文本后行内容:tail,tailf 查看系统数据库中的相关记录:getent 查找符合条件的文件:find、locate将...
ls/cd/pwd/whoami/touch/mkdir/rm/rmdir/bc/cat/less/more/nano/date/wc/grep/head/tail/zip/unzip/tar/clear/cal/man/echo/tree/find/which/whereis/file/ cp/mv/chmod/chown/chgrp/sort/uniq/gcc/su/sudo/top/stat/uname/alias/umask/adduser/passwd/userdel/history ...
find /dir -name filename.ext du -a | grep filename.ext locate filename.ext 0059 不让普通用户自己改密码(myxfc) [root@xin_fc etc]# chmod 511 /usr/bin/passwd 又想让普通用户自己改密码 [root@xin_fc etc]# chmod 4511 /usr/bin/passwd ...
For example, grep -lZ outputs a zero byte after each file name instead of the usual newline. This option makes the output unambiguous, even in the presence of file names containing unusual characters like newlines. This option can be used with commands like find -print0, perl -0, sort -...