Skip to content

huanghao/learning-bash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

learning-bash

One day class to learn bash

  • 介绍
  • 环境
  • 操作系统
  • 输出: echo, printf, yes, seq, clear
  • 文件
    • 基本:ls, mv, cp, rm, ln
    • 目录:cd, pwd, basename, dirname, mkdir, rmdir, rm -r, pushd/popd
    • 内容:cat, wc, less, head, tail, nl, strings, xxd, xargs, sort, uniq, cut, tee vim, emacs
    • 属性:stat, du, file, touch, chown, chmod, umask
    • 位置:find, which, whereis
    • 文本:grep, awk, sed, python/perl
    • 压缩:tar, gzip, gunzip, bzip2, bunzip2, bzcat
    • 比较:diff, md5sum
  • 进程
    • 查看: ps, uptime, top, free
    • 控制: kill, sleep, watch, crontab
  • 用户
    • 查看: whoami, id, who, last
    • 编辑: useradd, userdel, usermod, passwd, chsh
    • 切换: su, sudo
  • 主机信息
    • 信息: uname, hostname
    • net: host, whois, ping, traceroute
    • 连接: ssh, telnet, scp, nc
  • 时间:date, cal, ntpdate
  • 作业: jobs, c-z, fg, &
  • 内置: history, alias/unalias, heredoc, (( expression )), [[ expression ]], complete, let, local, set/unset, shift, umask, : (null command)
  • startup files: .bashrc, .bash_profile, /etc/profile [1]
  • 工具: tmux/screen
  • shell语法
    • 变量
    • 输入输出
    • 逻辑值和返回值
    • 条件语句
    • 循环语句
    • shebang
    • 命令行参数
    • 子进程和环境变量
  • 兼容

练习

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages