Skip to content

xueruichan/linux-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

linux-tool

项目简介:这是我个人在零基础学习Linux 系统调用时编写的 C++ 练习代码。主要用于记录、测试和后续复习 Linux 环境下的底层 API 操作。

包含的demo以及功能说明: count_demo:实现了统计文件中的字节数,行数,单词数 copy_demo:实现了对于文件的复制 stat_demo:实现了对于文件属性的查看,其中包括文件路径,文件类型,文件大小,最后修改时间 search_demo:实现了对于文件的搜索,并输出对应的文件路径

编译与运行: 在 Linux 终端中,你可以使用以下命令来编译和运行这些 demo。 1.终端编译代码: g++ count_demo.cpp -o count_demo g++ copy_demo.cpp -o copy_demo g++ stat_demo.cpp -o stat_demo g++ search_demo.cpp -o search_demo

2.运行命令(以上述编译的可执行文件名称为例,你也可以自行修改) count_demo: ./count_demo <file_path> copy_demo: ./copy_demo <source_path> <destination_path> stat_demo: ./stat_demo <file_path> search_demo: ./search_demo <file_path> <file_name>

About

我的linux练习demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages