
命令
低调的小哥哥
这个作者很懒,什么都没留下…
展开
-
chattr使用解释
chattr命令a:让文件或目录仅供附加用途。b:不更新文件或目录的最后存取时间。c:将文件或目录压缩后存放。d:将文件或目录排除在倾倒操作之外。i:不得任意更动文件或目录。s:保密性删除文件或目录。S:即时更新文件或目录。u:预防意外删除。chattr +i /etc/resolv.conflsattr /etc/resolv.confchattr +a /var/log/messages...原创 2020-12-16 21:07:11 · 1228 阅读 · 0 评论 -
Linux命令解释之crontab
crontab:无效选项 – -crontab: usage error: unrecognized optionUsage:crontab [options] filecrontab [options]crontab -n [hostname]Options:-u define user-e edit user’s crontab-l list user’s crontab-r delete user’s crontab-i原创 2020-11-22 13:28:16 · 589 阅读 · 0 评论 -
Linux命令解释之rm
用法:rm [选项]… 文件…Remove (unlink) the FILE(s).-f, --force ignore nonexistent files and arguments, never prompt-i prompt before every removal-I prompt once before removing more than three files, orwhen remov原创 2020-11-22 13:27:29 · 678 阅读 · 0 评论 -
Linux命令解释之cp
用法:cp [选项]… [-T] 源文件 目标文件 或:cp [选项]… 源文件… 目录 或:cp [选项]… -t 目录 源文件…Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.Mandatory arguments to long options are mandatory for short options too.-a, --archive 等于-dR --preserve=all–attributes-only 仅复制原创 2020-11-22 13:26:52 · 517 阅读 · 0 评论 -
Linux命令解释之mv
用法:mv [选项]… [-T] 源文件 目标文件 或:mv [选项]… 源文件… 目录 或:mv [选项]… -t 目录 源文件…Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.Mandatory arguments to long options are mandatory for short options too.–backup[=CONTROL] 为每个已存在的目标文件创建备份-b原创 2020-11-22 13:26:12 · 275 阅读 · 0 评论 -
Linux命令解释之head
用法:head [选项]… [文件]…Print the first 10 lines of each FILE to standard output.With more than one FILE, precede each with a header giving the file name.With no FILE, or when FILE is -, read standard input.Mandatory arguments to long options are mandatory原创 2020-11-22 13:25:24 · 353 阅读 · 0 评论 -
Linux命令解释之tail
用法:tail [选项]… [文件]…Print the last 10 lines of each FILE to standard output.With more than one FILE, precede each with a header giving the file name.With no FILE, or when FILE is -, read standard input.Mandatory arguments to long options are mandatory f原创 2020-11-22 13:24:41 · 666 阅读 · 0 评论 -
Linux命令解释之vi
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 9 2019 03:16:06)usage: vim [arguments] [file …] edit specified file(s)or: vim [arguments] - read text from stdinor: vim [arguments] -t tag edit file where tag is definedArgu原创 2020-11-22 13:23:52 · 244 阅读 · 0 评论 -
Linux命令解释之df
用法:df [选项]… [文件]…Show information about the file system on which each FILE resides,or all file systems by default.Mandatory arguments to long options are mandatory for short options too.-a, --all include dummy file systems-B, --block-size=原创 2020-11-22 13:23:08 · 361 阅读 · 0 评论 -
Linux命令解释之du
用法:du [选项]… [文件]… 或:du [选项]… --files0-from=FSummarize disk usage of each FILE, recursively for directories.Mandatory arguments to long options are mandatory for short options too.-0, --null end each output line with 0 byte rather than newlin原创 2020-11-22 13:21:55 · 258 阅读 · 0 评论 -
Linux命令解释之mkfs.ext3
mkfs.ext3:无效选项 – -Usage: mkfs.ext3 [-c|-l filename] [-b block-size] [-C cluster-size][-i bytes-per-inode] [-I inode-size] [-J journal-options][-G flex-group-size] [-N number-of-inodes][-m reserved-blocks-percentage] [-o creator-os][-g blocks-per-group原创 2020-11-22 09:16:19 · 1124 阅读 · 0 评论 -
Linux命令解释之fdisk
fdisk:无效选项 – -用法:fdisk [选项] <磁盘> 更改分区表fdisk [选项] -l <磁盘> 列出分区表fdisk -s <分区> 给出分区大小(块数)选项:-b <大小> 扇区大小(512、1024、2048或4096)-c[=<模式>] 兼容模式:“dos”或“nondos”(默认)-h 打印此帮助文本-u原创 2020-11-21 22:52:55 · 459 阅读 · 0 评论 -
Linux命令解释之sed
用法: sed [选项]… {脚本(如果没有其他脚本)} [输入文件]…-n, --quiet, --silent取消自动打印模式空间-e 脚本, --expression=脚本添加“脚本”到程序的运行列表-f 脚本文件, --file=脚本文件添加“脚本文件”到程序的运行列表–follow-symlinks直接修改文件时跟随软链接-i[SUFFIX], --in-place[=SUFFIX]edit files in place (makes backup if SUFFIX supp原创 2020-11-21 22:51:46 · 213 阅读 · 0 评论 -
Linux命令解释之awk
Usage: awk [POSIX or GNU style options] -f progfile [–] file …Usage: awk [POSIX or GNU style options] [–] ‘program’ file …POSIX options: GNU long options: (standard)-f progfile --file=progfile-F fs --field-separator=fs-v var=val --assign=var=val原创 2020-11-21 22:50:58 · 258 阅读 · 0 评论 -
Linux命令解释之find
用法: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path…] [expression]默认路径为当前目录;默认表达式为 -print表达式可能由下列成份组成:操作符、选项、测试表达式以及动作:操作符 (优先级递减;未做任何指定时默认使用 -and):( EXPR ) ! EXPR -not EXPR EXPR1 -a EXPR2 EXPR1 -and EXPR2EXPR1 -o原创 2020-11-21 22:50:12 · 201 阅读 · 0 评论 -
Linux命令解释之grep
[root@node1 ~]# grep --help用法: grep [选项]… PATTERN [FILE]…在每个 FILE 或是标准输入中查找 PATTERN。默认的 PATTERN 是一个基本正则表达式(缩写为 BRE)。例如: grep -i ‘hello world’ menu.h main.c正则表达式选择与解释:-E, --extended-regexp PATTERN 是一个可扩展的正则表达式(缩写为 ERE)-F, --fixed-strings PA原创 2020-11-21 22:49:17 · 160 阅读 · 0 评论 -
Linux命令解释之ls
ls --help用法:ls [选项]… [文件]…List information about the FILEs (the current directory by default).Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.Mandatory arguments to long options are mandatory for short options too.-a, --all原创 2020-11-21 22:41:24 · 380 阅读 · 0 评论 -
htpasswd解释与分析
[root@node5 ~]# htpasswd ?Usage:htpasswd [-cimB25dpsDv] [-C cost] [-r rounds] passwordfile usernamehtpasswd -b[cmB25dpsDv] [-C cost] [-r rounds] passwordfile username passwordhtpasswd -n[imB25dps] [-C cost] [-r rounds] usernamehtpasswd -nb[mB25dps] [-原创 2020-11-21 14:53:00 · 1615 阅读 · 0 评论 -
useradd命令使用方法与解释
useradd[root@node5 ~]# useradd --helpUsage: useradd [options] LOGINuseradd -Duseradd -D [options]Options:-b, --base-dir BASE_DIR base directory for the home directory of thenew account-c, --comment COMMENT GECOS field of the new accou原创 2020-11-19 20:39:12 · 1735 阅读 · 0 评论 -
Linux命令解释之rpm
[root@node1 ~]# rpm -qi nginxName : nginxEpoch : 1Version : 1.16.1Release : 2.el7Architecture: x86_64Install Date: 2020年11月11日 星期三 08时01分26秒Group : UnspecifiedSize : 1689962License : BSDSignature : RSA/SHA2原创 2020-11-11 21:31:54 · 429 阅读 · 0 评论 -
Linux操作系统命令解释
Linux操作系统命令解释1.文件管理cat chattr chgrp chmodchown cksum cmp diffdiffstat file find gitgitview indent cut lnless locate lsattr mattribmc mdel mdir mktempmore mmove mread mrenmtools mtoolstest mv odpaste patch rcp rmslocate split tee tmpwatchtouch u原创 2020-11-11 21:30:39 · 560 阅读 · 0 评论 -
Linux命令解释之vim
vim[root@node1 ~]# vim --helpVIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 9 2019 03:17:15)用法: vim [参数] [文件 …] 编辑指定的文件或: vim [参数] - 从标准输入(stdin)读取文本或: vim [参数] -t tag 编辑 tag 定义处的文件或: vim [参数] -q [errorfile] 编辑第一个出错处的原创 2020-11-09 12:15:42 · 380 阅读 · 0 评论 -
Linux命令解释之yum
yumUsage: yum [options] COMMANDList of Commands:check 检查 RPM 数据库问题check-update 检查是否有可用的软件包更新clean 删除缓存数据deplist 列出软件包的依赖关系distribution-synchronization 已同步软件包到最新可用版本downgrade 降级软件包erase 从系统中移除一个或多个软件包fs原创 2020-11-08 20:40:34 · 905 阅读 · 0 评论 -
Linux命令解释之sudo
sudo原创 2020-11-08 20:30:29 · 226 阅读 · 0 评论 -
Linux命令解释之groupadd,groupdel,groupmod,groupmems
groupadd,groupdel,groupmod原创 2020-11-08 19:19:08 · 326 阅读 · 0 评论 -
Linux命令解释之useradd,userdel,usermod
useradd,userdel,usermod原创 2020-11-08 19:15:27 · 482 阅读 · 0 评论 -
Linux命令解释之chown
chown原创 2020-11-08 19:08:57 · 272 阅读 · 0 评论 -
Linux命令解释之chmod
chmod原创 2020-11-08 18:45:17 · 130 阅读 · 0 评论 -
Linux命令解释之passwd
passwd原创 2020-11-08 18:44:28 · 649 阅读 · 0 评论 -
Linux命令解释之setfacl,getfacl,chattr
setfacl,getfacl,chattr原创 2020-11-08 18:41:18 · 256 阅读 · 0 评论 -
Linux命令j解释之cp
cp原创 2020-11-08 17:48:40 · 565 阅读 · 0 评论 -
Linux命令解释之rsync
rsync原创 2020-11-08 17:46:04 · 90 阅读 · 0 评论