Simple Implement of ksh in C
名称 | 功能 | 参考 | 完成情况 |
---|---|---|---|
cd | 目录切换 | 完成 | |
pwd | 展示当前所在路径 | 完成 | |
ls | 显示当前目录下所有的文件和文件夹 | here | 完成 |
cp | 复制文件 | here | 完成 |
mv | 移动文件 | 完成 | |
rm | 删除文件 | here | 完成 |
time | 记录命令执行时间 | 完成 | |
who | 显示当前登录的用户 | here | 完成 |
date | 系统的时间信息 | 完成 | |
touch | 创建一个文件 | 完成 | |
grep | 文本过滤 | 完成 | |
last | 显示系统开机系统登录信息 | 完成 | |
sort | 文本的排序 | 完成 | |
mkdir | 创建文件夹 | 完成 | |
cat | 显示文件内容 | 完成 | |
df | 磁盘信息 | here | 完成 |
tree | 显示目录树结构 | here | 完成 |
kill | 杀死进程 | 完成 | |
head | 显示文件的前几行 | 完成 | |
ps | 显示正在工作的进程 | here | 完成 |
whoami | 当前登录用户 | 完成 |
- bash command list https://ss64.com/bash/
- write a shell in C https://brennan.io/2015/01/16/write-a-shell-in-c/
- simple c shell https://github.com/jmreyes/simple-c-shell
- 实现一些功能(echo,cat,cp)的模拟shell https://github.com/Mai-Pu/Shell
- UNIX/Linux系统调用列表 https://www.yiibai.com/unix_system_calls/