-
大小: 0.08M文件類型: .rar金幣: 1下載: 0 次發(fā)布日期: 2021-02-01
- 標(biāo)簽: shell??
資源簡介
用c語言寫的一個(gè)shell功能不是很全,但是基本功能已經(jīng)實(shí)現(xiàn)
編譯方式
Makefile所在路徑直接make
編譯方式
Makefile所在路徑直接make
代碼片段和文件信息
////////////////////////////////////////////////////////////////////////////////
///?@file :?command_display.c
///?@brief :?linux?shell
///?@date :?2018/07/05?
///?@author?:?YYY?(最終更新者)
///?@mail???:?yinyy2825@163.com
///?@version:?1.0?新規(guī)?(更新情報(bào)(更新日、更新內(nèi)容、更新案件))
/// @note :?Copyright?(C)?20172018?Free?Software?Foundation?Inc.
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
/// ?INCLUDE ?///
////////////////////////////////////////////////////////////////////////////////
#include?“shell_common.h“
int?Command_Display(const?char?*userconst?char*?pwdchar*?cmd?char*?computer)
{
????char?*pfRslt?=?NULL;
????if(memcmp(“root“usersizeof(“root“))?==?0)
????{
????????fprintf(stdout“%s@%s:%s$?“user?computer?pwd);?
????}
????else
????{
????????if(strlen(pwd)?14)
????????{
????????????fprintf(stdout“%s@hcuuser-VirtualBox:~%s$
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????????302??2019-06-23?03:25??shell\.git\config
?????文件?????????73??2019-06-23?03:24??shell\.git\desc
?????文件?????????23??2019-06-23?03:25??shell\.git\HEAD
?????文件????????478??2019-06-23?03:24??shell\.git\hooks\applypatch-msg.sample
?????文件????????896??2019-06-23?03:24??shell\.git\hooks\commit-msg.sample
?????文件???????3327??2019-06-23?03:24??shell\.git\hooks\fsmonitor-watchman.sample
?????文件????????189??2019-06-23?03:24??shell\.git\hooks\post-update.sample
?????文件????????424??2019-06-23?03:24??shell\.git\hooks\pre-applypatch.sample
?????文件???????1638??2019-06-23?03:24??shell\.git\hooks\pre-commit.sample
?????文件???????1348??2019-06-23?03:24??shell\.git\hooks\pre-push.sample
?????文件???????4898??2019-06-23?03:24??shell\.git\hooks\pre-reba
?????文件????????544??2019-06-23?03:24??shell\.git\hooks\pre-receive.sample
?????文件???????1492??2019-06-23?03:24??shell\.git\hooks\prepare-commit-msg.sample
?????文件???????3610??2019-06-23?03:24??shell\.git\hooks\update.sample
?????文件???????1664??2019-06-23?03:25??shell\.git\index
?????文件????????240??2019-06-23?03:24??shell\.git\info\exclude
?????文件????????181??2019-06-23?03:25??shell\.git\logs\HEAD
?????文件????????181??2019-06-23?03:25??shell\.git\logs\refs\heads\master
?????文件????????181??2019-06-23?03:25??shell\.git\logs\refs\remotes\origin\HEAD
?????文件????????149??2019-06-23?03:25??shell\.git\ob
?????文件????????149??2019-06-23?03:25??shell\.git\ob
?????文件????????149??2019-06-23?03:25??shell\.git\ob
?????文件?????????85??2019-06-23?03:25??shell\.git\ob
?????文件????????978??2019-06-23?03:25??shell\.git\ob
?????文件????????305??2019-06-23?03:25??shell\.git\ob
?????文件????????173??2019-06-23?03:25??shell\.git\ob
?????文件????????124??2019-06-23?03:24??shell\.git\ob
?????文件????????217??2019-06-23?03:25??shell\.git\ob
?????文件????????935??2019-06-23?03:25??shell\.git\ob
?????文件????????347??2019-06-23?03:25??shell\.git\ob
............此處省略214個(gè)文件信息
- 上一篇:進(jìn)程通信-有名管道
- 下一篇:COM接口編程
評論
共有 條評論