从零开始学习Linux---基本命令(2) #25
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: HswOAuth/llm_course#25
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Linux 命令手册
1. head指令
head [参数]... [文件]...-n<行数>: 显示的行数。2. tail指令
tail [必要参数] [选择参数] [文件]-f: 循环读取。-n<行数>: 显示行数。3. echo指令
echo 内容 > 文件名4. date指令
+%H: 小时 (00..23)+%M: 分钟 (00..59)+%S: 秒 (00..61)+%X: 相当于 %H:%M:%S+%d: 日 (01..31)+%m: 月份 (01..12)+%Y: 完整年份 (0000..9999)+%F: 相当于 %Y-%m-%ddate +%sdate -d@时间戳5. cal指令
cal [参数] [月份] [年份]-3: 显示前一个月、当前月、下一个月的月历。-j: 显示在当年中的第几天。-y: 显示当前年份的日历。6. find指令
find pathname -options-name: 按照文件名查找文件。7. grep指令
grep [选项] 搜寻字符串 文件-i: 忽略大小写。-n: 输出行号。-v: 反向选择。8. zip/unzip指令
zip 压缩文件.zip 目录或文件-r: 递归处理。9. tar指令
tar [-cxtzjvf] 文件与目录-c: 创建压缩文件。-x: 解压文件。-t: 查看文件内容。-z: gzip 压缩。-j: bzip2 压缩。-v: 显示过程。-f: 指定文件名。-C: 解压到指定目录。10. uname指令
uname [选项]-a或--all: 显示所有信息。11. shutdown指令
shutdown [选项]-h: 关机。-r: 重启。-t sec: 设置关机/重启时间。点赞,收藏