热门面试题与答案和在线测试
面向面试准备、在线测试、教程与实战练习的学习平台

通过聚焦学习路径、模拟测试和面试实战内容持续提升技能。

WithoutBook 将分主题面试题、在线练习测试、教程和对比指南整合到一个响应式学习空间中。

面试准备

Shell Scripting 面试题与答案

问题 16. What is the purpose of the `basename` command in shell scripting?

The `basename` command is used to strip directory and suffix from filenames.

这有帮助吗? 添加评论 查看评论
 

问题 17. How can you check the status of the last command in a shell script?

You can use the `$?` variable to check the exit status of the last command.

这有帮助吗? 添加评论 查看评论
 

问题 18. Explain the use of the `expr` command in shell scripting.

The `expr` command is used for evaluating expressions in shell scripts.

这有帮助吗? 添加评论 查看评论
 

问题 19. What is the purpose of the `export` command in shell scripting?

The `export` command is used to make environment variables available to child processes.

这有帮助吗? 添加评论 查看评论
 

问题 20. How do you use the `while` loop in a shell script?

The `while` loop is used to repeatedly execute a block of statements as long as a condition is true.

这有帮助吗? 添加评论 查看评论
 

用户评价最有帮助的内容:

版权所有 © 2026,WithoutBook。