linux提交作业后显示c,大一下学ics,书里在linux上用C编程,刚安系统老师就留了几个作业...

博客提出几个Linux相关作业问题,包括找出当前运行进程按命令名排序的命令序列、统计以字母a开头的文件中单词数量的命令、列出/etc目录含.conf且最小的5个文件的命令,以及创建打印hello world的可执行文件的命令。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

For each of the outputs listed below, find one sequence of commands connected by pipes that produces the output. For each problem, turn in the command sequence that you used to generate the requested output. (Do NOT turn in the output itself.)

1.A listing of all processes that you are currently running on the machine you are using, sorted by the command name in alphabetical order (i.e. a process running acroread should be listed before a process running bash). The output should consist only of the processes you are running, and nothing else (i.e. if you are running 6 processes, the output should only have 6 lines).

2.The number of words in the file /usr/share/dict/words (*) which start with the letter a.

[* Note: On some Unix/Linux systems, the dictionary has the filename /usr/dict/words]

3.A "long" listing of the smallest 5 files in the /etc directory whose name contains the string ".conf", sorted by increasing file size.

4.An executable file, named "echo.sh", with one sequence of commands to print hello world! on screen.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值